Changes between Version 35 and Version 36 of GiB-gettingStarted


Ignore:
Timestamp:
10/15/12 22:50:21 (12 years ago)
Author:
Vic Thomas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GiB-gettingStarted

    v35 v36  
    51513. Now, let's find out the resources advertised by this aggregate using omni.
    5252{{{
    53 $ omni.py -a http://geni-in-a-box.net:8001 listresources
     53$  omni.py -a http://geni-in-a-box.net:8001 listresources
    5454INFO:omni:Loading config file /home/gibuser/.gcf/omni_config
    5555INFO:omni:Using control framework gib_ch
    5656INFO:omni:Listed resources on 1 out of 1 possible aggregates.
    57 INFO:omni:<?xml version="1.0" ?>
     57INFO:omni:<?xml version="1.0" encoding="UTF-8"?>
    5858INFO:omni:  <!-- Resources at AM:
    5959        URN: unspecified_AM_URN
    6060        URL: http://geni-in-a-box.net:8001
    6161 -->
    62 INFO:omni:  <!-- Resources at AM:
     62INFO:omni: 
     63<!-- Resources at AM:
    6364        URN: urn:publicid:IDN+geni-in-a-box.net+authority+cm
    64         URL: http://localhost:8001
    65  --><rspec expires="2013-08-20T22:26:14Z" generated="2012-07-16T22:26:14Z" type="advertisement" xmlns="http://www.protogeni.net/resources/rspec/2" xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.protogeni.net/resources/rspec/2 http://www.protogeni.net/resources/rspec/2/ad.xsd ">     
    66       <node component_id="urn:publicid:IDN+geni-in-a-box.net+node+pc101" component_manager_id="urn:publicid:IDN+geni-in-a-box.net+authority+cm" component_name="pc101" exclusive="true">           
    67               <hardware_type name="openVZ container">                 
    68               </hardware_type>           
    69               <sliver_type name="virtual-pc">                 
    70                   <disk_image description="Standard 32-bit Fedora 15 image" name="urn:publicid:IDN+geni-in-a-box.net+image:FEDORA15-STD" os="Fedora" version="15"/>                 
    71                   <disk_image default="true" description="Standard 32-bit Fedora 15 image" name="urn:publicid:IDN+geni-in-a-box.net+image:FEDORA15-STD" os="Fedora" version="15"/>                 
    72               </sliver_type>           
    73               <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth0" role="control">                 
    74                       <emulab:interface name="eth0"/>                 
    75               </interface>           
    76               <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth1" role="experimental">                 
    77                       <emulab:interface name="eth2"/>                 
    78               </interface>           
    79               <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth2" role="experimental">                 
    80                       <emulab:interface name="eth3"/>                 
    81               </interface>           
    82               <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth3" role="experimental">                 
    83                       <emulab:interface name="eth1"/>                 
    84               </interface>       
    85               <location country="Molvania"/>           
    86       </node>     
    87      
     65        URL: http://geni-in-a-box.net:8001
     66 -->
     67<rspec expires="2013-12-20T22:26:14Z" type="advertisement" xmlns="http://www.geni.net/resources/rspec/3"
     68       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     69       xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/ad.xsd" >
     70  <node component_id="urn:publicid:IDN+geni-in-a-box.net+node+pc101" component_manager_id="urn:publicid:IDN+geni-in-a-box.net+authority+cm" component_name="pc101" exclusive="true">   
     71      <hardware_type name="openVZ container">     
     72      </hardware_type>   
     73      <sliver_type name="virtual-pc">     
     74      <disk_image description="Standard 32-bit Fedora 15 image" name="urn:publicid:IDN+geni-in-a-box.net+image:FEDORA15-STD" os="Fedora" version="15"/>     
     75      <disk_image default="true" description="Standard 32-bit Fedora 15 image" name="urn:publicid:IDN+geni-in-a-box.net+image:FEDORA15-STD" os="Fedora" version="15"/>     
     76      </sliver_type>   
     77      <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth0" role="control">     
     78          <emulab:interface name="eth0"/>     
     79      </interface>   
     80      <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth1" role="experimental">     
     81          <emulab:interface name="eth2"/>     
     82      </interface>   
     83      <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth2" role="experimental">     
     84          <emulab:interface name="eth3"/>     
     85      </interface>   
     86      <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth3" role="experimental">     
     87          <emulab:interface name="eth1"/>     
     88      </interface>
     89      <location country="Molvania" />   
     90  </node>       
    8891      ...
    89 
    90       <node component_id="urn:publicid:IDN+geni-in-a-box.net+node+pc106" component_manager_id="urn:publicid:IDN+geni-in-a-box.net+authority+cm" component_name="pc106" exclusive="true">           
    91               <hardware_type name="openVZ container">                 
    92               </hardware_type>           
    93               <sliver_type name="virtual-pc">                 
    94                   <disk_image description="Standard 32-bit Fedora 15 image" name="urn:publicid:IDN+geni-in-a-box.net+image:FEDORA15-STD" os="Fedora" version="15"/>                 
    95                   <disk_image default="true" description="Standard 32-bit Fedora 15 image" name="urn:publicid:IDN+geni-in-a-box.net+image:FEDORA15-STD" os="Fedora" version="15"/>                 
    96               </sliver_type>           
    97               <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc106:eth0" role="control">                 
    98                       <emulab:interface name="eth0"/>                 
    99               </interface>           
    100               <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc106:eth1" role="experimental">                 
    101                       <emulab:interface name="eth2"/>                 
    102               </interface>           
    103               <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc106:eth2" role="experimental">                 
    104                       <emulab:interface name="eth3"/>                 
    105               </interface>           
    106               <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc106:eth3" role="experimental">                 
    107                       <emulab:interface name="eth1"/>                 
    108               </interface>       
    109               <location country="Molvania"/>           
    110       </node>     
     92  <node component_id="urn:publicid:IDN+geni-in-a-box.net+node+pc106" component_manager_id="urn:publicid:IDN+geni-in-a-box.net+authority+cm" component_name="pc106" exclusive="true">   
     93      <hardware_type name="openVZ container">     
     94      </hardware_type>   
     95      <sliver_type name="virtual-pc">     
     96      <disk_image description="Standard 32-bit Fedora 15 image" name="urn:publicid:IDN+geni-in-a-box.net+image:FEDORA15-STD" os="Fedora" version="15"/>     
     97      <disk_image default="true" description="Standard 32-bit Fedora 15 image" name="urn:publicid:IDN+geni-in-a-box.net+image:FEDORA15-STD" os="Fedora" version="15"/>     
     98      </sliver_type>   
     99      <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc106:eth0" role="control">     
     100          <emulab:interface name="eth0"/>     
     101      </interface>   
     102      <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc106:eth1" role="experimental">     
     103          <emulab:interface name="eth2"/>     
     104      </interface>   
     105      <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc106:eth2" role="experimental">     
     106          <emulab:interface name="eth3"/>     
     107      </interface>   
     108      <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc106:eth3" role="experimental">     
     109          <emulab:interface name="eth1"/>     
     110      </interface>
     111      <location country="Molvania" />   
     112  </node>
    111113</rspec>
     114
    112115INFO:omni: ------------------------------------------------------------
    113116INFO:omni: Completed listresources:
     
    125128$
    126129}}}
    127 The output of the command is the ''advertisement rspec'' from the GENI-in-a-Box aggregate.  You'll see the aggregate advertises six compute resources.   Only two are shown here for readability reasons but you will find the complete advertisement rspec [attachment:gib-advert.rspec here].  Look at the description of the first resource in the rspec.   This compute resources is an openVZ container running Fedora 15 image (or an Ubuntu 10 image if you are using the Ubuntu flavor of GENI-in-a-Box).  The  resource has four network interfaces: {{{eth0}}} through {{{eth3}}}.  {{{eth0}}} is a control interface and is not available to the experimenter.  All six compute resources advertised by this aggregate are identical.  You can therefore use this aggregate to create experiment topologies with up to six nodes and up to three links per node.
    128 
    129 Notice the {{{-a}}} option to Omni that gave it the URL of the aggregate manager on which we wish to invoke {{{list resources}}}.  To save us from having to type this URL every time we use an Omni command that acts on this aggregate manager, we have defined a ''nickname'' {{{gib}}} for this aggregate.  This nickname is defined in the file {{{~/.gcf/omni_config}}}.  From now on we'll use this nickname instead of the aggregate manager URL with Omni commands that require an aggregate URL.
     130The output of the command is the ''advertisement rspec'' from the GENI-in-a-Box aggregate.  You'll see the aggregate advertises six compute resources.   Only two are shown here for readability reasons but you will find the complete advertisement rspec [attachment:gib-advert.rspec here].  Look at the description of the first resource in the rspec.   This compute resource is an openVZ container running Fedora 15 image (or an Ubuntu 10 image if you are using the Ubuntu flavor of GENI-in-a-Box).  The  resource has four network interfaces: {{{eth0}}} through {{{eth3}}}.  {{{eth0}}} is a control interface and is not available to the experimenter.  All six compute resources advertised by this aggregate are identical.  You can therefore use this aggregate to create experiment topologies with up to six nodes and up to three links per node.
     131
     132Notice the {{{-a}}} option to Omni that gave it the URL of the aggregate manager on which we wish to invoke {{{list resources}}}.  To save us from having to type this URL every time we use an Omni command that acts on this aggregate manager, we have defined a ''nickname'' {{{gib}}} for this aggregate.  This nickname is defined in the file {{{~/.gcf/omni_config}}}.  From now on we will use this nickname instead of the aggregate manager URL with Omni commands that require an aggregate URL.
    130133
    131134=== 2.2 Acquire and Configure Resources ===