391 | | [[Image(flack-preview.png, 50%)]] |
392 | | |
393 | | |
394 | | |
395 | | == 3. Make a ProtoGENI sliver == |
396 | | The first resource we are going to add to our slice is a ProtoGENI host. |
397 | | |
398 | | === 3a. Createsliver === |
399 | | Under the ''Tutorials/Omni/<username>'' directory, there is a directory called |
| 391 | [[Image(flack-preview.png, 20%)]] |
| 392 | |
| 393 | You can clear your canvas by clicking at the eraser button. You can also choose to load an already saved RSpec, but clicking at the Import button. |
| 394 | |
| 395 | [[Image(flack-import.png, 20%)]] |
| 396 | |
| 397 | Choose import from file. Navigate under your user folder (/Tutorials/ExptWorkflow/gpousr##) and under the folder rspecs. Choose the protogeni RSpec and click OK. You should see only one node appear in your canvas. Click at the (i) button to check what attributes this RSpec has set about the node. Note that the RSpec requests for a specific image, provides a URL for downloading software and also specify the install script that should be run when initializing the node. |
| 398 | |
| 399 | Now lets go back to Omni and see how createsliver works there. |
| 400 | |
| 401 | Under the ''Tutorials/ExptWorkflow/gpousr##'' directory, there is a directory called |
405 | | (nickname: pg-utah), and use '''rspecs/final/protogeni_utah_<username>.rspec''' |
406 | | |
407 | | * If your ProtoGENI host is in the '''pgeni.gpolab.bbn.com'''(e.g. |
408 | | pc1.pgeni.gpolab.bbn.com), namespace then it belongs to GPO's cluster and you |
409 | | should use GPO's AM (nickname: pg-gpo), and use |
410 | | '''rspecs/final/protogeni_gpo_<username>_v02.rspec''' |
411 | | |
412 | | * '''Advanced Option''': If you are interested in creating your own RSpecs |
413 | | follow the instructions under [#ReservingProtoGENInodeswithFlack Reserving |
414 | | ProtoGENI nodes with Flack]. Then skip to the [#a3b.Sliverstatus Next Step]. |
415 | | |
416 | | gpousr21 was assigned host pc1.pgeni.gpolab.bbn.com so she should use |
417 | | pg_gpo.rspec: |
418 | | {{{ |
419 | | #!xml |
| 407 | (nickname: pg-utah), and use '''rspecs/final/protogeni_gpousr##.rspec''' |
| 408 | To figure out which AM is used for your node. open the RSpec file and look at the top where the AM is listed. |
| 409 | |
| 410 | For example gpousr25 was assigned host pc4.pgeni.gpolab.bbn.com so she should use |
| 411 | the pg_gpo AM. The rspec looks like |
| 412 | {{{ |
428 | | <rspec type="request" |
429 | | xsi:schemaLocation="http://www.protogeni.net/resources/rspec/2 |
430 | | http://www.protogeni.net/resources/rspec/2/request.xsd" |
431 | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
432 | | xmlns="http://www.protogeni.net/resources/rspec/2"> |
433 | | |
434 | | <node client_id="pc1" |
435 | | component_manager_id="urn:publicid:IDN+pgeni.gpolab.bbn.com+authority+cm" |
436 | | component_id="urn:publicid:IDN+pgeni.gpolab.bbn.com+node+pc1" |
437 | | component_name="pc1" exclusive="true"> |
| 421 | <rspec type="request" |
| 422 | xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/request.xsd" |
| 423 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 424 | xmlns="http://www.geni.net/resources/rspec/3"> |
| 425 | |
| 426 | <node client_id="pc4" |
| 427 | component_manager_id="urn:publicid:IDN+pgeni.gpolab.bbn.com+authority+cm" |
| 428 | component_id="urn:publicid:IDN+pgeni.gpolab.bbn.com+node+pc4" |
| 429 | component_name="pc4" exclusive="true"> |
468 | | geni@geni-vm:~/omni_tutorial$ omni.py createsliver -a |
469 | | http://www.emulab.net/protogeni/xmlrpc/am aliceslice rspecs/pg_utah.rspec |
470 | | |
471 | | FILL IN HERE |
472 | | |
473 | | }}} |
474 | | |
475 | | === 3b. Sliverstatus === |
| 456 | geni@geni-vm:~/Tutorials/ExptWorkflow/gpousr25$ omni.py createsliver testomni25 rspecs/protogeni_gpousr25.rspec -a pg-gpo |
| 457 | INFO:omni:Loading config file omni_config |
| 458 | INFO:omni:Using control framework pgeni |
| 459 | INFO:omni:Slice urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+testomni25 expires within 1 day on 2012-03-13 20:32:02 UTC |
| 460 | INFO:omni:Substituting AM nickname pg-gpo with URL https://pgeni.gpolab.bbn.com/protogeni/xmlrpc/am, URN urn:publicid:IDN+pgeni.gpolab.bbn.com+authority+am |
| 461 | INFO:omni:Substituting AM nickname pg-gpo with URL https://pgeni.gpolab.bbn.com/protogeni/xmlrpc/am, URN urn:publicid:IDN+pgeni.gpolab.bbn.com+authority+am |
| 462 | INFO:omni:Creating sliver(s) from rspec file rspecs/protogeni_gpousr25.rspec for slice urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+testomni25 |
| 463 | INFO:omni:Asked https://pgeni.gpolab.bbn.com/protogeni/xmlrpc/am to reserve resources. Result: |
| 464 | INFO:omni:<?xml version="1.0" ?> |
| 465 | INFO:omni:<!-- Reserved resources for: |
| 466 | Slice: testomni25 |
| 467 | At AM: |
| 468 | URL: https://pgeni.gpolab.bbn.com/protogeni/xmlrpc/am |
| 469 | --> |
| 470 | INFO:omni:<rspec type="manifest" xmlns="http://www.geni.net/resources/rspec/3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/request.xsd"> |
| 471 | |
| 472 | <node client_id="pc4" component_id="urn:publicid:IDN+pgeni.gpolab.bbn.com+node+pc4" component_manager_id="urn:publicid:IDN+pgeni.gpolab.bbn.com+authority+cm" component_name="pc4" exclusive="true" sliver_id="urn:publicid:IDN+pgeni.gpolab.bbn.com+sliver+1136"> |
| 473 | <sliver_type name="raw-pc"> |
| 474 | <disk_image name="urn:publicid:IDN+pgeni.gpolab.bbn.com+image+emulab-ops:UBUNTU1004-STD"/> |
| 475 | </sliver_type> |
| 476 | <services> |
| 477 | <execute command="cd /tmp;sudo ./config_dir/install.sh" shell="sh"/> |
| 478 | <install install_path="/tmp" url="http://192.1.249.166:8383/gec13tutorial_ubuntu.tar.gz"/> |
| 479 | <login authentication="ssh-keys" hostname="pc4.pgeni.gpolab.bbn.com" port="22" username="gpousr25"/> </services> |
| 480 | <rs:vnode name="pc4" xmlns:rs="http://www.protogeni.net/resources/rspec/ext/emulab/1"/> <host name="pc4.testomni25.pgeni-gpolab-bbn-com.pgeni.gpolab.bbn.com"/> </node> |
| 481 | |
| 482 | </rspec> |
| 483 | INFO:omni: ------------------------------------------------------------ |
| 484 | INFO:omni: Completed createsliver: |
| 485 | |
| 486 | Options as run: |
| 487 | aggregate: pg-gpo |
| 488 | framework: pgeni |
| 489 | native: True |
| 490 | |
| 491 | Args: createsliver testomni25 rspecs/protogeni_gpousr25.rspec |
| 492 | |
| 493 | Result Summary: Slice urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+testomni25 expires within 1 day(s) on 2012-03-13 20:32:02 UTC |
| 494 | Reserved resources on https://pgeni.gpolab.bbn.com/protogeni/xmlrpc/am. |
| 495 | INFO:omni: ============================================================ |
| 496 | geni@geni-vm:~/Tutorials/ExptWorkflow/gpousr25$ |
| 497 | |
| 498 | }}} |
483 | | omni.py sliverstatus -a <AM_NICKNAME> gposlice## |
484 | | }}} |
485 | | |
| 506 | omni.py sliverstatus -a <AM_NICKNAME> sliceomni## |
| 507 | }}} |
| 508 | |
| 509 | For user gpousr25 this would look like : |
| 510 | {{{ |
| 511 | geni@geni-vm:~/Tutorials/ExptWorkflow/gpousr25$ omni.py sliverstatus sliceomni25 -a pg-gpo |
| 512 | INFO:omni:Loading config file omni_config |
| 513 | INFO:omni:Using control framework pgeni |
| 514 | INFO:omni:Slice urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+testomni25 expires within 1 day on 2012-03-13 20:32:02 UTC |
| 515 | INFO:omni:Substituting AM nickname pg-gpo with URL https://pgeni.gpolab.bbn.com/protogeni/xmlrpc/am, URN urn:publicid:IDN+pgeni.gpolab.bbn.com+authority+am |
| 516 | INFO:omni:Status of Slice urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+testomni25: |
| 517 | INFO:omni:Sliver status for Slice urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+testomni25 at AM URL https://pgeni.gpolab.bbn.com/protogeni/xmlrpc/am |
| 518 | INFO:omni:{'geni_resources': [{'geni_error': '', |
| 519 | 'geni_status': 'changing', |
| 520 | 'geni_urn': 'urn:publicid:IDN+pgeni.gpolab.bbn.com+sliver+1136', |
| 521 | 'pg_manifest': {'attributes': {'client_id': 'pc4', |
| 522 | 'component_id': 'urn:publicid:IDN+pgeni.gpolab.bbn.com+node+pc4', |
| 523 | 'component_manager_id': 'urn:publicid:IDN+pgeni.gpolab.bbn.com+authority+cm', |
| 524 | 'component_name': 'pc4', |
| 525 | 'exclusive': 'true', |
| 526 | 'sliver_id': 'urn:publicid:IDN+pgeni.gpolab.bbn.com+sliver+1136', |
| 527 | 'xmlns': 'http://www.geni.net/resources/rspec/3'}, |
| 528 | 'children': [{'attributes': {'name': 'raw-pc'}, |
| 529 | 'children': [{'attributes': {'name': 'urn:publicid:IDN+pgeni.gpolab.bbn.com+image+emulab-ops:UBUNTU1004-STD'}, |
| 530 | 'children': [], |
| 531 | 'name': 'disk_image'}], |
| 532 | 'name': 'sliver_type'}, |
| 533 | {'attributes': {}, |
| 534 | 'children': [{'attributes': {'command': 'cd /tmp;sudo ./config_dir/install.sh', |
| 535 | 'shell': 'sh'}, |
| 536 | 'children': [], |
| 537 | 'name': 'execute'}, |
| 538 | {'attributes': {'install_path': '/tmp', |
| 539 | 'url': 'http://192.1.249.166:8383/gec13tutorial_ubuntu.tar.gz'}, |
| 540 | 'children': [], |
| 541 | 'name': 'install'}, |
| 542 | {'attributes': {'authentication': 'ssh-keys', |
| 543 | 'hostname': 'pc4.pgeni.gpolab.bbn.com', |
| 544 | 'port': 22, |
| 545 | 'username': 'gpousr25'}, |
| 546 | 'children': [], |
| 547 | 'name': 'login'}], |
| 548 | 'name': 'services'}, |
| 549 | {'attributes': {'name': 'pc4', |
| 550 | 'xmlns:rs': 'http://www.protogeni.net/resources/rspec/ext/emulab/1'}, |
| 551 | 'children': [], |
| 552 | 'name': 'rs:vnode'}, |
| 553 | {'attributes': {'name': 'pc4.testomni25.pgeni-gpolab-bbn-com.pgeni.gpolab.bbn.com'}, |
| 554 | 'children': [], |
| 555 | 'name': 'host'}], |
| 556 | 'name': 'node'}, |
| 557 | 'pg_status': 'changing'}], |
| 558 | 'geni_status': 'unknown', |
| 559 | 'geni_urn': 'urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+sliceomni25', |
| 560 | 'pg_expires': '2012-03-13 16:32:02', |
| 561 | 'pg_status': 'changing'} |
| 562 | INFO:omni: ------------------------------------------------------------ |
| 563 | INFO:omni: Completed sliverstatus: |
| 564 | |
| 565 | Options as run: |
| 566 | aggregate: pg-gpo |
| 567 | framework: pgeni |
| 568 | native: True |
| 569 | |
| 570 | Args: sliverstatus testomni25 |
| 571 | |
| 572 | Result Summary: Slice urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+sliceomni25 expires within 1 day(s) on 2012-03-13 20:32:02 UTC |
| 573 | Returned status of slivers on 1 of 1 possible aggregates. |
| 574 | INFO:omni: ============================================================ |
| 575 | geni@geni-vm:~/Tutorials/ExptWorkflow/gpousr25$ |
| 576 | }}} |