Changes between Version 11 and Version 12 of GiB-gettingStarted


Ignore:
Timestamp:
09/27/12 17:23:15 (7 years ago)
Author:
Vic Thomas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GiB-gettingStarted

    v11 v12  
    4545Look at the Result Summary from Omni.  You'll see that Omni found one aggregate available to you at URL {{{http://geni-in-a-box.net:8001}}}.  This is the aggregate you will use to run your experiments.
    4646
    47 3. Now, let's find out the GENI AM API version and GENI Rspecs version supported by this aggregate using the command {{{omni.py -a http://geni-in-a-box.net:8001}}}:
     473. Now, let's find out the resources advertised by this aggregate using the command {{omni.py -a http://geni-in-a-box.net:8001 list resources}}:
     48{{{
     49$ omni.py -a http://geni-in-a-box.net:8001 listresources
     50INFO:omni:Loading config file /home/gibuser/.gcf/omni_config
     51INFO:omni:Using control framework gib_ch
     52INFO:omni:Listed resources on 1 out of 1 possible aggregates.
     53INFO:omni:<?xml version="1.0" ?>
     54INFO:omni:  <!-- Resources at AM:
     55        URN: unspecified_AM_URN
     56        URL: http://geni-in-a-box.net:8001
     57 -->
     58INFO:omni:  <!-- Resources at AM:
     59        URN: urn:publicid:IDN+geni-in-a-box.net+authority+cm
     60        URL: http://localhost:8001
     61 --><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 ">     
     62      <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">           
     63              <hardware_type name="openVZ container">                 
     64              </hardware_type>           
     65              <sliver_type name="virtual-pc">                 
     66                  <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"/>                 
     67                  <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"/>                 
     68              </sliver_type>           
     69              <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth0" role="control">                 
     70                      <emulab:interface name="eth0"/>                 
     71              </interface>           
     72              <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth1" role="experimental">                 
     73                      <emulab:interface name="eth2"/>                 
     74              </interface>           
     75              <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth2" role="experimental">                 
     76                      <emulab:interface name="eth3"/>                 
     77              </interface>           
     78              <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth3" role="experimental">                 
     79                      <emulab:interface name="eth1"/>                 
     80              </interface>       
     81              <location country="Molvania"/>           
     82      </node>     
     83     
     84      ...
     85
     86      <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">           
     87              <hardware_type name="openVZ container">                 
     88              </hardware_type>           
     89              <sliver_type name="virtual-pc">                 
     90                  <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"/>                 
     91                  <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"/>                 
     92              </sliver_type>           
     93              <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc106:eth0" role="control">                 
     94                      <emulab:interface name="eth0"/>                 
     95              </interface>           
     96              <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc106:eth1" role="experimental">                 
     97                      <emulab:interface name="eth2"/>                 
     98              </interface>           
     99              <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc106:eth2" role="experimental">                 
     100                      <emulab:interface name="eth3"/>                 
     101              </interface>           
     102              <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc106:eth3" role="experimental">                 
     103                      <emulab:interface name="eth1"/>                 
     104              </interface>       
     105              <location country="Molvania"/>           
     106      </node>     
     107</rspec>
     108INFO:omni: ------------------------------------------------------------
     109INFO:omni: Completed listresources:
     110
     111  Options as run:
     112                aggregate: ['http://geni-in-a-box.net:8001']
     113                framework: gib_ch
     114                getversionCacheName: /home/gibuser/.gcf/get_version_cache.json
     115
     116  Args: listresources
     117
     118  Result Summary: Queried resources from 1 of 1 aggregate(s).
     119 
     120INFO:omni: ============================================================
     121$
     122}}}
     123
     124The 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).  Look at the description of the first resource:
     125{{{
     126<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">           
     127              <hardware_type name="openVZ container">                 
     128              </hardware_type>           
     129              <sliver_type name="virtual-pc">                 
     130                  <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"/>                 
     131                  <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"/>                 
     132              </sliver_type>           
     133              <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth0" role="control">                 
     134                      <emulab:interface name="eth0"/>                 
     135              </interface>           
     136              <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth1" role="experimental">                 
     137                      <emulab:interface name="eth2"/>                 
     138              </interface>           
     139              <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth2" role="experimental">                 
     140                      <emulab:interface name="eth3"/>                 
     141              </interface>           
     142              <interface component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth3" role="experimental">                 
     143                      <emulab:interface name="eth1"/>                 
     144              </interface>       
     145              <location country="Molvania"/>           
     146      </node>
     147}}}
     148This 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.
     149
     1503. Now, let's find out the GENI AM API version and GENI Rspecs version supported by this aggregate using the command {{{omni.py -a http://geni-in-a-box.net:8001 get version}}}:
    48151{{{
    49152$omni.py  -a http://geni-in-a-box.net:8001 getversion