311 | | |
312 | | Since the installation is as documented in the README.txt it is not captured here. |
313 | | |
314 | | Next moved to ProtoGENI setup required to use the newly implemented Omni client features, instructions are available at the [http://gush.cs.williams.edu/trac/gush/wiki/ProtoGeniExample ProtoGENI Example] page. |
315 | | |
316 | | The following configurations were used in my experiment: |
317 | | |
318 | | '''To Be Captured ''' |
| 312 | Since the installation is as documented in the README.txt it is not captured here. Following are captures showing the use of GUSH within PlanetLab and ProtoGENI. All captured commands were completed using the following omni_config: |
| 313 | {{{ |
| 314 | [omni] |
| 315 | default_cf = pg |
| 316 | users = lnevers |
| 317 | |
| 318 | # ---------- Users ---------- |
| 319 | [lnevers] |
| 320 | urn = urn:publicid:IDN+pgeni.gpolab.bbn.com+user+lnevers |
| 321 | keys = ~/.ssh/id_rsa.pub |
| 322 | |
| 323 | # ---------- Frameworks ---------- |
| 324 | [plc] |
| 325 | type=sfa |
| 326 | authority=plc.bbn |
| 327 | user=plc.bbn.lnevers |
| 328 | cert=~/.gcf/plc.bbn.lnevers.gid |
| 329 | key=~/.gcf/lnevers.pkey |
| 330 | registry=http://www.planet-lab.org:12345 |
| 331 | slicemgr=http://www.planet-lab.org:12347 |
| 332 | |
| 333 | [pg] |
| 334 | type = pg |
| 335 | ch = https://www.pgeni.gpolab.bbn.com:443/protogeni/xmlrpc/ch |
| 336 | sa = https://www.pgeni.gpolab.bbn.com:443/protogeni/xmlrpc/sa |
| 337 | cert = ~/.ssl/encrypted-cleartext.pem |
| 338 | key = ~/.ssl/encrypted-cleartext.pem |
| 339 | }}} |
| 340 | |
| 341 | Request sliver status for an existing PlanetLab slice: |
| 342 | |
| 343 | {{{ |
| 344 | $ helper-scripts/handle-geni.py -f plc -a http://www.planet-lab.org:12346 sliverstatus bbn_gusheval |
| 345 | INFO:omni:Loading config file omni_config |
| 346 | INFO:omni:Using control framework plc |
| 347 | INFO:omni.sfa:SFA Registry: http://www.planet-lab.org:12345 |
| 348 | INFO:omni.sfa:SFA Slice Manager: http://www.planet-lab.org:12347 |
| 349 | INFO:omni:Sliver at http://www.planet-lab.org:12346: |
| 350 | <?xml version="1.0"?> |
| 351 | <gush> |
| 352 | <slice name="bbn_gusheval"> |
| 353 | <expires>2011-05-29 11:01:47</expires> |
| 354 | <user name=""/> |
| 355 | <node name="miranda.planetlab.cs.umd.edu"/> |
| 356 | <node name="node2.planetlab.mathcs.emory.edu"/> |
| 357 | <node name="plnode-03.gpolab.bbn.com"/> |
| 358 | <node name="osiris.planetlab.cs.umd.edu"/> |
| 359 | <node name="node2.lbnl.nodes.planet-lab.org"/> |
| 360 | <node name="node-2.mcgillplanetlab.org"/> |
| 361 | <node name="dplanet2.uoc.edu"/> |
| 362 | <node name="node2.planetlab.albany.edu"/> |
| 363 | <node name="nis-planet2.doshisha.ac.jp"/> |
| 364 | <node name="pl2.planet.cs.kent.edu"/> |
| 365 | <node name="mtuplanetlab2.cs.mtu.edu"/> |
| 366 | <node name="plnode-04.gpolab.bbn.com"/> |
| 367 | </slice> |
| 368 | </gush> |
| 369 | }}} |
| 370 | |
| 371 | Create a slice which was being authenticated by the pgeni.gpolab.bbn.com clearing house with compute resources from both PlanetLab and Emulab. |
| 372 | |
| 373 | 1. Get a list of resources available: |
| 374 | {{{ |
| 375 | $ helper-scripts/handle-geni.py -n -f pg -a https://www.emulab.net/protogeni/xmlrpc/am listresources >>emulab.txt |
| 376 | INFO:omni:Loading config file omni_config |
| 377 | INFO:omni:Using control framework pg |
| 378 | INFO:omni:Resources at https://www.emulab.net/protogeni/xmlrpc/am: |
| 379 | $ helper-scripts/handle-geni.py -n -f pg -a http://www.planet-lab.org:12346 listresources >>planetlab-resources.txt |
| 380 | INFO:omni:Loading config file omni_config |
| 381 | INFO:omni:Using control framework pg |
| 382 | INFO:omni:Resources at http://www.planet-lab.org:12346: |
| 383 | }}} |
| 384 | 2. Create rpsec based on available resources. |
| 385 | |
| 386 | 3. Create a slice and get resources for both PlanetLab and Emulab: |
| 387 | {{{ |
| 388 | $ helper-scripts/handle-geni.py -f pg createslice myslice |
| 389 | INFO:omni:Loading config file omni_config |
| 390 | INFO:omni:Using control framework pg |
| 391 | Created slice with Name myslice, URN urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+myslice |
| 392 | |
| 393 | $ helper-scripts/handle-geni.py -n -f pg -a https://www.emulab.net/protogeni/xmlrpc/am createsliver myslice emulab.rspec |
| 394 | INFO:omni:Loading config file omni_config |
| 395 | INFO:omni:Using control framework pg |
| 396 | Asked https://www.emulab.net/protogeni/xmlrpc/am to reserve resources. Result: |
| 397 | <?xml version="1.0" ?> |
| 398 | <rspec type="request" xmlns="http://www.protogeni.net/resources/rspec/0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.protogeni.net/resources/rspec/0.1 http://www.protogeni.net/resources/rspec/0.1/request.xsd"> |
| 399 | <node component_manager_urn="urn:publicid:IDN+emulab.net+authority+cm" component_manager_uuid="28a10955-aa00-11dd-ad1f-001143e453fe" component_urn="urn:publicid:IDN+emulab.net+node+pc485" component_uuid="1f7645ca-27e7-11df-8633-001143e453fe" exclusive="1" hostname="pc485.emulab.net" sliver_urn="urn:publicid:IDN+emulab.net+sliver+38450" sliver_uuid="3dd3588d-727b-11e0-b35d-001143e453fe" sshdport="22" virtual_id="geni1" virtualization_subtype="raw" virtualization_type="emulab-vnode"> |
| 400 | <disk_image name="urn:publicid:IDN+emulab.net+image+emulab-ops//FEDORA10-STD"/> |
| 401 | <services> <login authentication="ssh-keys" hostname="pc485.emulab.net" port="22" username="lnevers"/> </services> </node> |
| 402 | <node component_manager_urn="urn:publicid:IDN+emulab.net+authority+cm" component_manager_uuid="28a10955-aa00-11dd-ad1f-001143e453fe" component_urn="urn:publicid:IDN+emulab.net+node+pc499" component_uuid="a58f6b18-27e2-11df-8633-001143e453fe" exclusive="1" hostname="pc499.emulab.net" sliver_urn="urn:publicid:IDN+emulab.net+sliver+38451" sliver_uuid="3e6f903a-727b-11e0-b35d-001143e453fe" sshdport="22" virtual_id="geni2" virtualization_subtype="raw" virtualization_type="emulab-vnode"> |
| 403 | <disk_image name="urn:publicid:IDN+emulab.net+image+emulab-ops//FEDORA10-STD"/> |
| 404 | <services> <login authentication="ssh-keys" hostname="pc499.emulab.net" port="22" username="lnevers"/> </services> </node> |
| 405 | </rspec> |
| 406 | |
| 407 | $ helper-scripts/handle-geni.py -n -f pg -a http://www.planet-lab.org:12346 createsliver myslice planet-rspec.txt |
| 408 | INFO:omni:Loading config file omni_config |
| 409 | INFO:omni:Using control framework pg |
| 410 | Asked http://www.planet-lab.org:12346 to reserve resources. Result: <?xml version="1.0"?> |
| 411 | <RSpec type="SFA"> |
| 412 | <network name="plc"> |
| 413 | <site id="rit"> |
| 414 | <name>RIT</name> |
| 415 | <node id="n11503"> |
| 416 | <hostname>"planet2.cs.rit.edu</hostname> |
| 417 | <sliver /> |
| 418 | </node> |
| 419 | </site> |
| 420 | <site id="williams"> |
| 421 | <name>Williams College</name> |
| 422 | <node id="n10860"> |
| 423 | <hostname>planetlab3.williams.edu</hostname> |
| 424 | <sliver /> |
| 425 | </node> |
| 426 | </site> |
| 427 | <site id="bbn"> |
| 428 | <name>BBN Technologies</name> |
| 429 | <node id="n13627"> |
| 430 | <hostname>plnode-03.gpolab.bbn.com</hostname> |
| 431 | <sliver /> |
| 432 | </node> |
| 433 | </site> |
| 434 | </network> |
| 435 | </RSpec> |
| 436 | |
| 437 | INFO:omni:Please run the omni sliverstatus call on your slice to determine your login name to PL resources |
| 438 | }}} |
| 439 | |
| 440 | 4. Get slicer status and adjust slice expiration is possible: |
| 441 | {{{ |
| 442 | $ helper-scripts/handle-geni.py -f pg -a http://www.planet-lab.org:12346 sliverstatus (syntax problem unresolved) |
| 443 | $ helper-scripts/handle-geni.py -f pg -a https://www.emulab.net/protogeni/xmlrpc/am sliverstatus myslice |
| 444 | INFO:omni:Loading config file omni_config |
| 445 | INFO:omni:Using control framework pg |
| 446 | INFO:omni:Sliver at https://www.emulab.net/protogeni/xmlrpc/am: |
| 447 | <?xml version="1.0"?> |
| 448 | <gush> |
| 449 | <slice name="myslice"> |
| 450 | <expires>2011-04-29 16:09:36</expires> |
| 451 | <user name=""/> |
| 452 | <node name="pc499.emulab.net"/> |
| 453 | <node name="pc485.emulab.net"/> |
| 454 | </slice> |
| 455 | </gush> |
| 456 | $ helper-scripts/handle-geni.py -f pg -a https://www.emulab.net/protogeni/xmlrpc/am renewslice myslice "2011-04-30 16:09:36" |
| 457 | INFO:omni:Loading config file omni_config |
| 458 | INFO:omni:Using control framework pg |
| 459 | INFO:omni.protogeni:requesting new expiration '2011-04-30T16:09:36' |
| 460 | Slice myslice now expires at 2011-04-30 16:09:36 |
| 461 | $ helper-scripts/handle-geni.py -f pg -a http://www.planet-lab.org:12346 renewslice myslice "2011-04-30 16:09:36" |
| 462 | INFO:omni:Loading config file omni_config |
| 463 | INFO:omni:Using control framework pg |
| 464 | INFO:omni.protogeni:requesting new expiration '2011-04-30T16:09:36' |
| 465 | Slice myslice now expires at 2011-04-30 16:09:36 |
| 466 | }}} |
| 467 | |
| 468 | Using hte following directory.xml: |
| 469 | {{{ |
| 470 | <?xml version="1.0" encoding="UTF-8"?> |
| 471 | <gush> |
| 472 | <resource_manager type="geni"> |
| 473 | <port_map slice="bbn_gusheval" port="61414"/> |
| 474 | </resource_manager> |
| 475 | <resource_manager type="geni-pg"> |
| 476 | <port_map slice="luisa" port="61666"/> |
| 477 | </resource_manager> |
| 478 | </gush> |
| 479 | }}} |
| 480 | Note: "geni"=PlanetLab and "geni-pg"=ProtoGENI |
| 481 | |
| 482 | 5. Used gush to manage nodes: |
| 483 | {{{ |
| 484 | $ ./gush -P 15555 |
| 485 | gush> Gush has learned about the slice bbn_gusheval. |
| 486 | Gush has learned about the slice myslice. |
| 487 | Updated information on the slice bbn_gusheval is available. |
| 488 | Updated information on the slice myslice is available. |
| 489 | gush> connect slice myslice |
| 490 | Error: Unknown slice name. |
| 491 | gush> ??? |
| 492 | }}} |
| 493 | |
| 494 | |