Changes between Version 25 and Version 26 of GENIRacksHome/InstageniRacks/XenTestStatus/IG-XN-2


Ignore:
Timestamp:
08/22/13 07:58:45 (6 years ago)
Author:
lnevers@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIRacksHome/InstageniRacks/XenTestStatus/IG-XN-2

    v25 v26  
    7297292. From the sliver manifest determine information that is relevant for the creation of the custom images:
    730730{{{
    731 <node client_id="BSD82" component_id="urn:publicid:IDN+utah.geniracks.net+node+pc3"
    732 component_manager_id="urn:publicid:IDN+utah.geniracks.net+authority+cm" exclusive="false"
    733 sliver_id="urn:publicid:IDN+utah.geniracks.net+sliver+24388">   
    734 <sliver_type name="emulab-xen">     
    735 <disk_image name="urn:publicid:IDN+utah.geniracks.net+image+emulab-ops:FBSD82-STD" os="FreeBSD" version="8.2"/>     
    736 </sliver_type>   
    737 <rs:vnode name="pcvm3-1" xmlns:rs="http://www.protogeni.net/resources/rspec/ext/emulab/1"/>   
    738 <host name="BSD82.lnxenos.ch-geni-net.utah.geniracks.net"/>   
    739 <services><login authentication="ssh-keys" hostname="pc3.utah.geniracks.net" port="30010" username="lnevers"/>   
    740 </services>  </node> 
     731<node client_id="BSD82" exclusive="false" component_id="urn:publicid:IDN+utah.geniracks.net+node+pc3" component_manager_id="urn:publicid:IDN+utah.geniracks.net+authority+cm"
     732sliver_id="urn:publicid:IDN+utah.geniracks.net+sliver+25287">
     733<sliver_type name="emulab-xen">
     734<disk_image name="urn:publicid:IDN+utah.geniracks.net+image+emulab-ops:FBSD82-STD" os="FreeBSD" version="8.2"/>
     735</sliver_type>
     736...
    741737
    742738}}}
    7437393. Before creating a custom image verify your current list of custom images:
    744740{{{
     741$ omni.py listimages -a ig-utah
     74216:58:31 INFO     omni: Loading config file /home/lnevers/.gcf/omni_config
     74316:58:31 INFO     omni: Using control framework portal
     74416:58:31 INFO     omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm
     74516:58:31 INFO     omni: ListImages using creator_urn 'urn:publicid:IDN+ch.geni.net+user+lnevers'
     74616:58:31 INFO     omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm
     74716:58:33 INFO     omni:  (PG log url - look here for details on any failures: https://boss.utah.geniracks.net/spewlogfile.php3?logfile=fbb1637edb0207024a4cf31b692a7312)
     74816:58:33 INFO     omni: []
     74916:58:33 INFO     omni:  ------------------------------------------------------------
     75016:58:33 INFO     omni:  Completed listimages:
     751
     752  Options as run:
     753                aggregate: ['ig-utah']
     754                framework: portal
     755                project: ln-prj
     756
     757  Args: listimages
     758
     759  Result Summary: Images created by urn:publicid:IDN+ch.geni.net+user+lnevers at https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0:
     760[]
     76116:58:33 INFO     omni:  ============================================================
     762}}}
     763No custom images exist.
     764
     7654. Now create a custom image:
     766{{{
     767$ omni.py createimage -a ig-utah lnxenos lncustbsd82 -u urn:publicid:IDN+utah.geniracks.net+sliver+25287
     76817:09:05 INFO     omni: Loading config file /home/lnevers/.gcf/omni_config
     76917:09:05 INFO     omni: Using control framework portal
     77017:09:05 INFO     omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm
     77117:09:06 INFO     omni: Slice urn:publicid:IDN+ch.geni.net:ln-prj+slice+lnxenos expires on 2013-08-28 20:55:47 UTC
     77217:09:06 INFO     omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm
     77317:09:09 INFO     omni:  (PG log url - look here for details on any failures: https://boss.utah.geniracks.net/spewlogfile.php3?logfile=6fd74f3f0f4746b7029ea6e9d13961c3)
     77417:09:09 INFO     omni: Snapshotting disk on urn:publicid:IDN+utah.geniracks.net+sliver+25287 at https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, creating public image ['urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustbsd82', 'https://boss.utah.geniracks.net/image_metadata.php?uuid=eb4b57b8-0aa5-11e3-970d-000000000000']
     77517:09:09 INFO     omni:  ------------------------------------------------------------
     77617:09:09 INFO     omni:  Completed createimage:
     777
     778  Options as run:
     779                aggregate: ['ig-utah']
     780                framework: portal
     781                project: ln-prj
     782                slivers: ['urn:publicid:IDN+utah.geniracks.net+sliver+25287']
     783
     784  Args: createimage lnxenos lncustbsd82
     785
     786  Result Summary: Snapshotting disk on urn:publicid:IDN+utah.geniracks.net+sliver+25287 at https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, creating public image ['urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustbsd82', 'https://boss.utah.geniracks.net/image_metadata.php?uuid=eb4b57b8-0aa5-11e3-970d-000000000000']
     78717:09:09 INFO     omni:  ============================================================
     788
     789}}}
     7905. Verify that custom image is available via list image command:
     791{{{
    745792$ omni.py listimages -a ig-utah
    746 15:33:03 INFO     omni: Loading config file /home/lnevers/.gcf/omni_config
    747 15:33:03 INFO     omni: Using control framework portal
    748 15:33:03 INFO     omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm
    749 15:33:04 INFO     omni: ListImages using creator_urn 'urn:publicid:IDN+ch.geni.net+user+lnevers'
    750 15:33:04 INFO     omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm
    751 15:33:06 INFO     omni:  (PG log url - look here for details on any failures: https://boss.utah.geniracks.net/spewlogfile.php3?logfile=199760ad7a63039aaaa411fc3b40bbf4)
    752 15:33:06 INFO     omni: [
    753   {
    754     "url": "https://boss.utah.geniracks.net/image_metadata.php?uuid=6a60c597-0112-11e3-970d-000000000000",
    755     "urn": "urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustfed15"
     79317:09:39 INFO     omni: Loading config file /home/lnevers/.gcf/omni_config
     79417:09:39 INFO     omni: Using control framework portal
     79517:09:39 INFO     omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm
     79617:09:39 INFO     omni: ListImages using creator_urn 'urn:publicid:IDN+ch.geni.net+user+lnevers'
     79717:09:39 INFO     omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm
     79817:09:41 INFO     omni:  (PG log url - look here for details on any failures: https://boss.utah.geniracks.net/spewlogfile.php3?logfile=9680b36cbf922c3a4f477ccc1485f932)
     79917:09:41 INFO     omni: [
     800  {
     801    "url": "https://boss.utah.geniracks.net/image_metadata.php?uuid=eb4b57b8-0aa5-11e3-970d-000000000000",
     802    "urn": "urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustbsd82"
    756803  }
    757804]
    758 15:33:06 INFO     omni:  ------------------------------------------------------------
    759 15:33:06 INFO     omni:  Completed listimages:
     80517:09:41 INFO     omni:  ------------------------------------------------------------
     80617:09:41 INFO     omni:  Completed listimages:
    760807
    761808  Options as run:
     
    769816[
    770817  {
    771     "url": "https://boss.utah.geniracks.net/image_metadata.php?uuid=6a60c597-0112-11e3-970d-000000000000",
    772     "urn": "urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustfed15"
     818    "url": "https://boss.utah.geniracks.net/image_metadata.php?uuid=eb4b57b8-0aa5-11e3-970d-000000000000",
     819    "urn": "urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustbsd82"
    773820  }
    774821]
    775 15:33:06 INFO     omni:  ============================================================
    776 }}}
    777 One custom image exists from other test.
    778 
    779 4. Now create a custom image:
    780 {{{
    781 $ omni.py createimage -a ig-utah lnxenos lncustbsd82 -u urn:publicid:IDN+utah.geniracks.net+sliver+24388
    782 15:40:46 INFO     omni: Loading config file /home/lnevers/.gcf/omni_config
    783 15:40:46 INFO     omni: Using control framework portal
    784 15:40:46 INFO     omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm
    785 15:40:47 INFO     omni: Slice urn:publicid:IDN+ch.geni.net:ln-prj+slice+lnxenos expires on 2013-08-14 13:19:02 UTC
    786 15:40:47 INFO     omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm
    787 15:40:50 INFO     omni:  (PG log url - look here for details on any failures: https://boss.utah.geniracks.net/spewlogfile.php3?logfile=cb1ab6bc5a3a50f3d0ad71f1bf34af94)
    788 15:40:50 INFO     omni: Snapshotting disk on urn:publicid:IDN+utah.geniracks.net+sliver+24388 at https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, creating public image ['urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustbsd82', 'https://boss.utah.geniracks.net/image_metadata.php?uuid=976773ef-012b-11e3-970d-000000000000']
    789 15:40:50 INFO     omni:  ------------------------------------------------------------
    790 15:40:50 INFO     omni:  Completed createimage:
    791 
    792   Options as run:
    793                 aggregate: ['ig-utah']
    794                 framework: portal
    795                 project: ln-prj
    796                 slivers: ['urn:publicid:IDN+utah.geniracks.net+sliver+24388']
    797 
    798   Args: createimage lnxenos lncustbsd82
    799 
    800   Result Summary: Snapshotting disk on urn:publicid:IDN+utah.geniracks.net+sliver+24388 at https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, creating public image ['urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustbsd82', 'https://boss.utah.geniracks.net/image_metadata.php?uuid=976773ef-012b-11e3-970d-000000000000']
    801 15:40:50 INFO     omni:  ============================================================
    802 }}}
    803 5. Verify that custom image is available via list image command:
    804 {{{
    805 $ omni.py listimages -a ig-utah
    806 15:41:24 INFO     omni: Loading config file /home/lnevers/.gcf/omni_config
    807 15:41:24 INFO     omni: Using control framework portal
    808 15:41:24 INFO     omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm
    809 
    810 15:41:24 INFO     omni: ListImages using creator_urn 'urn:publicid:IDN+ch.geni.net+user+lnevers'
    811 15:41:24 INFO     omni: Substituting AM nickname ig-utah with URL https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0, URN urn:publicid:IDN+utah.geniracks.net+authority+cm
    812 15:41:26 INFO     omni:  (PG log url - look here for details on any failures: https://boss.utah.geniracks.net/spewlogfile.php3?logfile=4ca1636573f8ca3b5fbb349549f1a05b)
    813 15:41:26 INFO     omni: [
    814   {
    815     "url": "https://boss.utah.geniracks.net/image_metadata.php?uuid=6a60c597-0112-11e3-970d-000000000000",
    816     "urn": "urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustfed15"
    817   },
    818   {
    819     "url": "https://boss.utah.geniracks.net/image_metadata.php?uuid=976773ef-012b-11e3-970d-000000000000",
    820     "urn": "urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustbsd82"
    821   }
    822 ]
    823 15:41:26 INFO     omni:  ------------------------------------------------------------
    824 15:41:26 INFO     omni:  Completed listimages:
    825 
    826   Options as run:
    827                 aggregate: ['ig-utah']
    828                 framework: portal
    829                 project: ln-prj
    830 
    831   Args: listimages
    832 
    833   Result Summary: Images created by urn:publicid:IDN+ch.geni.net+user+lnevers at https://boss.utah.geniracks.net:12369/protogeni/xmlrpc/am/2.0:
    834 [
    835   {
    836     "url": "https://boss.utah.geniracks.net/image_metadata.php?uuid=6a60c597-0112-11e3-970d-000000000000",
    837     "urn": "urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustfed15"
    838   },
    839   {
    840     "url": "https://boss.utah.geniracks.net/image_metadata.php?uuid=976773ef-012b-11e3-970d-000000000000",
    841     "urn": "urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustbsd82"
    842   }
    843 ]
    844 15:41:26 INFO     omni:  ============================================================
     82217:09:41 INFO     omni:  ============================================================
    845823}}}
    8468246. An email will be sent to you to let you know that the image cloning has successfully completed and should look as follows:
    847825{{{
    848826
     827xxx
    849828
    850829}}}
    8518307. Create an RSpec that uses nodes with the Free BSD82 custom image, node definitions are as follows:
    852 8. Create a slice and sliver using the custom Free BSD82 image 
     831{{{
     832 <node client_id="cust-bsd82-1" exclusive="false">
     833      <sliver_type name="emulab-xen">
     834      <disk_image name="urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustbsd82" />
     835      </sliver_type>
     836      <interface client_id="cust-bsd82-1:if0" />
     837  </node>
     838
     839  <node  client_id="cust-bsd82-2" exclusive="false">
     840      <sliver_type name="emulab-xen">
     841      <disk_image name="urn:publicid:IDN+utah.geniracks.net+image+ch-geni-net:lncustbsd82" />
     842      </sliver_type>
     843      <interface client_id="cust-bsd82-2:if0" />
     844  </node>
     845
     846}}}
     8478. Create a slice and sliver using the custom Free BSD82 image:
     848{{{
     849omni.py createslice lnxenbsd82cust
     850
     851omni.py createsliver lnxenbsd82cust -a ig-utah ./insta-xen-cust-bsd82.rspec
     852}}}
     853
     854
    8538559. Once the sliver is ready login to host verify that customizations are present and that there is connectivity to the two customized hosts:
    85485610. Delete the customized image: