Changes between Version 29 and Version 30 of GIR3.2_LAMP


Ignore:
Timestamp:
11/30/11 09:23:38 (12 years ago)
Author:
lnevers@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GIR3.2_LAMP

    v29 v30  
    151151'''3. Upload Slice Manifest'''. Upload your topology to allow services configuration within the UNIS system.
    152152
    153 This step requires upload the slice manifest, which can be generated with the omni tools as follows:
     153This step requires upload the slice manifest and your user credentials for the slich, which can be generated with the omni tools as follows:
    154154{{{
    155155 $ cd /path/to/gcf-1.4
    156156 $ ./src/omni.py -a https://www.emulab.net/protogeni/xmlrpc/am -o listresources lnevers-lamp-slice1
    157 }}}
    158 This command creates an output file named lnevers-lamp-slice1-rspec-www-emulab-net-protogeni.xml, renamed it lnevers-lamp-slice1-manifest.xml for conciseness.
    159 Also needed credential file which was generated as instructed with the ProtoGENI test tools:
     157 $ ./src/omni.py -o -a https://www.emulab.net/protogeni/xmlrpc/am getslicecred lnevers-lamp-slice1
     158}}}
     159The first omni command creates a manifest Rspec output file named lnevers-lamp-slice1-rspec-www-emulab-net-protogeni.xml, later renamed it lnevers-lamp-slice1-manifest.xml for conciseness. The second omni command generate a user credentials file for the slice which is named lnevers-lamp-slice1-cred.xml.
     160
    160161{{{
    161162 $ cd /path/to/protogeni-tests/
     
    166167To upload the manifest executed the following:
    167168{{{
     169  $ cd /path/to/protogeni-tests/
     170  $ cp /path/to/gcf-1.4/lnevers-lamp-slice1-rspec-www-emulab-net-protogeni.xml lnevers-lamp-slice1-manifest.xml
     171  $ cp /path/to/gcf-1.4/lnevers-lamp-slice1-cred.xml .
     172}}}
     173With the latest lamp-sendmanifest.py, you should use the syntax below, but due to a bug with support for RSpec V0.2, the command does not work:
     174{{{
    168175$ ./lamp-sendmanifest.py 0.2 lnevers-lamp-slice1-manifest.xml urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 lnevers-lamp-slice1-cred.xml 
    169 <?xml version="1.0" ?>
    170 <topology id="genitopo" xmlns="http://ogf.org/schema/network/topology/unis/20100528/" xmlns:pgeni="http://ogf.org/schema/network/topology/protogeni/20100716/" xmlns:psconfig="http://ogf.org/schema/network/topology/psconfig/20100716/">
    171         <domain id="urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1">
    172                 <node id="urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:node=node1">
    173                         <address type="dns">
    174                                 pc151.emulab.net
    175                         </address>
    176                         <nodePropertiesBag>
    177                                 <pgeni:nodeProperties 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+pc151" component_uuid="de98e45d-773e-102b-8eb4-001143e453fe" exclusive="1" sliver_urn="urn:publicid:IDN+emulab.net+sliver+62460" sliver_uuid="84a0623d-107e-11e1-b47a-001143e453fe" startup_command="/usr/local/etc/lamp/bootstrap.sh urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 urn:publicid:IDN+emulab.net+user+lnevers" virtualization_subtype="raw" virtualization_type="raw" xmlns:lamp="http://protogeni.net/resources/rspec/0.2/ext/lamp/1">       
    178                                         <pgeni:node_type type_name="pc" type_slots="1"/>
    179                                         <pgeni:disk_image name="urn:publicid:IDN+emulab.net+image+GeniSlices//UBUNTU91-LAMP"/>
    180                                         <pgeni:services>
    181                                          <pgeni:login authentication="ssh-keys" hostname="pc151.emulab.net" port="22" username="lnevers"/>     
    182                                         </pgeni:services>                                       
    183                                 </pgeni:nodeProperties>
    184                                 <psconfig:nodeProperties/>
    185                         </nodePropertiesBag>
    186                         <port id="urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:node=node1:port=iface0">
    187                                 <name>   eth3   </name>
    188                                 <portPropertiesBag>
    189                                         <pgeni:portProperties component_id="eth3" component_urn="urn:publicid:IDN+emulab.net+interface+pc151:eth3" sliver_urn="urn:publicid:IDN+emulab.net+sliver+62464" sliver_uuid="8762eaa1-107e-11e1-b47a-001143e453fe"/>
    190                                 </portPropertiesBag>
    191                                 <address type="mac">
    192                                  0002b365cd49
    193                                 </address>
    194                                 <address type="ipv4">
    195                                         10.10.1.1
    196                                 </address>
    197                         </port>
    198                 </node>
    199                 <node id="urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:node=node2">
    200                         <address type="dns">
    201                                 pc157.emulab.net
    202                         </address>
    203                         <nodePropertiesBag>
    204                                 <pgeni:nodeProperties 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+pc157" component_uuid="de994176-773e-102b-8eb4-001143e453fe" exclusive="1" sliver_urn="urn:publicid:IDN+emulab.net+sliver+62461" sliver_uuid="85797dab-107e-11e1-b47a-001143e453fe" startup_command="/usr/local/etc/lamp/bootstrap.sh urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 urn:publicid:IDN+emulab.net+user+lnevers" virtualization_subtype="raw" virtualization_type="raw" xmlns:lamp="http://protogeni.net/resources/rspec/0.2/ext/lamp/1">
    205                                        <pgeni:node_type type_name="pc" type_slots="1"/>
    206                                        <pgeni:disk_image name="urn:publicid:IDN+emulab.net+image+GeniSlices//UBUNTU91-LAMP"/>
    207                                      <pgeni:services>
    208                                                 <pgeni:login authentication="ssh-keys" hostname="pc157.emulab.net" port="22" username="lnevers"/>
    209                                        </pgeni:services>
    210                                 </pgeni:nodeProperties>
    211                                 <psconfig:nodeProperties/>
    212                         </nodePropertiesBag>
    213                         <port id="urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:node=node2:port=iface0">
    214                                 <name>
    215                                         eth3
    216                                 </name>
    217                                 <portPropertiesBag>
    218                                         <pgeni:portProperties component_id="eth3" component_urn="urn:publicid:IDN+emulab.net+interface+pc157:eth3" sliver_urn="urn:publicid:IDN+emulab.net+sliver+62465" sliver_uuid="8851fd87-107e-11e1-b47a-001143e453fe"/>
    219                                 </portPropertiesBag>
    220                                 <address type="mac">
    221                                         0002b335f753
    222                                 </address>
    223                                 <address type="ipv4">
    224                                         10.10.1.2
    225                                 </address>
    226                         </port>
    227                 </node>
    228                 <node id="urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:node=lamp">
    229                         <address type="dns">
    230                                 pc150.emulab.net
    231                         </address>
    232                         <nodePropertiesBag>
    233                                 <pgeni:nodeProperties 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+pc150" component_uuid="de98a21d-773e-102b-8eb4-001143e453fe" exclusive="1" sliver_urn="urn:publicid:IDN+emulab.net+sliver+62462" sliver_uuid="86285b18-107e-11e1-b47a-001143e453fe" startup_command="/usr/local/etc/lamp/bootstrap.sh urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 urn:publicid:IDN+emulab.net+user+lnevers" virtualization_subtype="raw" virtualization_type="raw" xmlns:lamp="http://protogeni.net/resources/rspec/0.2/ext/lamp/1">
    234                                         <pgeni:node_type type_name="pc" type_slots="1"/>
    235                                        <pgeni:disk_image name="urn:publicid:IDN+emulab.net+image+GeniSlices//UBUNTU91-LAMP"/>   
    236                                         <pgeni:services>
    237                                                      
    238                                                 <pgeni:login authentication="ssh-keys" hostname="pc150.emulab.net" port="22" username="lnevers"/>
    239                                                    
    240                                         </pgeni:services>
    241                                          
    242                                 </pgeni:nodeProperties>
    243                                 <psconfig:nodeProperties>
    244                                         <psconfig:service enable="true" type="lamp_portal"/>
    245                                         </psconfig:nodeProperties>
    246                         </nodePropertiesBag>
    247                 </node>
    248                 <link directed="false" id="urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:link=link1">
    249                         <type> ethernet  </type>
    250                         <linkPropertiesBag>
    251                                 <pgeni:linkProperties sliver_urn="urn:publicid:IDN+emulab.net+sliver+62463" sliver_uuid="86c7361d-107e-11e1-b47a-001143e453fe" vlantag="805">
    252                                        <pgeni:latency>   100    </pgeni:latency>
    253                                         <pgeni:packet_loss>  0.05    </pgeni:packet_loss> 
    254                                 </pgeni:linkProperties>
    255                         </linkPropertiesBag>
    256                         <relation type="endPoint">
    257                                 <portIdRef>
    258                                         urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:node=node1:port=iface0
    259                                 </portIdRef>
    260                         </relation>
    261                         <relation type="endPoint">
    262                                 <portIdRef>
    263                                         urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:node=node2:port=iface0
    264                                 </portIdRef>
    265                         </relation>
    266                 </link>
    267         </domain>
    268 </topology>
    269 
    270 }}}
    271 
    272 Later found out that the above was actually failing due to the fact that the lamp-sendmanifest.py was a version that supported RSpec v2.0 and
    273 not V0.2.  Got an earlier version of the [http://groups.geni.net/geni/attachment/wiki/GIR3.2_LAMP/lamp-sendmanifest.py  lamp-sendmanifest.py] script to upload the V.0.2 RSpec, which worked:
     176}}}
     177The failing lamp-sendmanifest.py is the version introduced to support RSpec v2.0, but it no longer works with V0.2 Rspecs.  The earlier version of the [http://groups.geni.net/geni/attachment/wiki/GIR3.2_LAMP/lamp-sendmanifest.py  lamp-sendmanifest.py] script was used to upload the V.0.2 RSpec, which worked using the following syntax:
    274178{{{
    275179$ ./lamp-sendmanifest.py lnevers-lamp-slice1-manifest.xml urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 lnevers-lamp-slice1-cred.xml