Changes between Version 40 and Version 41 of GiB-gettingStarted
- Timestamp:
- 10/16/12 10:03:54 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GiB-gettingStarted
v40 v41 150 150 [[Image(ResourcesRequested.png, 45%)]] 151 151 152 The {{{<install>}}} element in the rspec asks the GENI-in-a-Box aggregate manager to download a [attachment:iperf-script.sh script] from the specified URL, uncompress and untar it, and save it in the /localdirectory. The {{{<execute>}}} element asks the aggregate to execute the specified script when the hosts come up. In this case the script to be executed is the one that was installed in {{{/local}}}.152 The {{{<install>}}} element in the rspec asks the GENI-in-a-Box aggregate manager to download a [attachment:iperf-script.sh script] from the specified URL, uncompress and untar it, and save it in the {{{/local}}} directory. The {{{<execute>}}} element asks the aggregate to execute the specified script when the hosts come up. In this case the script to be executed is the one that was installed in {{{/local}}}. 153 153 154 154 The following steps will walk us through acquiring the resources for our experiment: … … 177 177 2. We now send our [attachment:two-nodes-iperf.rspec request rspec] to the GENI-in-a-Box aggregate manager using the command {{{omni.py -a http://geni-in-a-box.net:8001 createsliver myslice two-nodes-iperf.rspec}}}. ''This command will take many minutes to complete because it configures and boots up the requested virtual machines; does some additional configuration; and download, installs, and runs iperf.'' If our request is successful, the aggregate manager will allocate the requested resources to our slice. In GENI parlance the resources allocated to our slice are called slivers. The {{{createsliver}}} request returns a manifest spec that provides details of the resources allocated to us. The following is a snippet of the manifest your will get back from {{{createsliver}}}: 178 178 {{{ 179 $ omni.py -a http://geni-in-a-box.net:8001 createsliver myslice two-nodes-iperf.rspec179 $ omni.py -a gib createsliver myslice two-nodes-iperf.rspec 180 180 INFO:omni:Loading config file /home/gibuser/.gcf/omni_config 181 181 INFO:omni:Using control framework gib_ch 182 182 WARNING:omni:Slice urn:publicid:IDN+geni:gpo:gcf+slice+myslice expires in <= 3 hours 183 INFO:omni:Slice urn:publicid:IDN+geni:gpo:gcf+slice+myslice expires on 2012-10-02 16:32:42 UTC 183 INFO:omni:Slice urn:publicid:IDN+geni:gpo:gcf+slice+myslice expires on 2012-10-16 14:51:59 UTC 184 INFO:omni:Substituting AM nickname gib with URL http://geni-in-a-box.net:8001, URN unspecified_AM_URN 185 INFO:omni:Substituting AM nickname gib with URL http://geni-in-a-box.net:8001, URN unspecified_AM_URN 184 186 INFO:omni:Creating sliver(s) from rspec file two-nodes-iperf.rspec for slice urn:publicid:IDN+geni:gpo:gcf+slice+myslice 185 187 INFO:omni:Got return from CreateSliver for slice myslice at http://geni-in-a-box.net:8001: … … 191 193 URL: http://geni-in-a-box.net:8001 192 194 --> 193 INFO:omni: <rspec generated="2012-09-11T16:29:16Z" generated_by="Flack" type="manifest">195 INFO:omni: <rspec type="manifest" xmlns="http://www.geni.net/resources/rspec/3" xmlns:flack="http://www.protogeni.net/resources/rspec/ext/flack/1" xmlns:planetlab="http://www.planet-lab.org/resources/sfa/ext/planetlab/1" 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/manifest.xsd"> 194 196 <node client_id="left" 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" exclusive="false" sliver_id="urn:publicid:IDN+geni-in-a-box.net+sliver+101"> 195 197 <sliver_type name="virtual-pc"> 196 <disk_image name="urn:publicid:geni-in-a-box.net+image //FEDORA15-STD"/>198 <disk_image name="urn:publicid:geni-in-a-box.net+image+//FEDORA15-STD" os="Linux" version="10"/> 197 199 </sliver_type> 198 200 <services> 199 < install file_type="tar.gz" install_path="/local" url="http://groups.geni.net/geni/attachment/wiki/GiB-gettingStarted/iperf-execute-script.tar.gz?format=raw"/>200 < execute command="/local/iperf-execute-script.sh" shell="sh"/>201 <login authentication="ssh-keys" hostname="pc101.geni-in-a-box.net" port="22" username=" alice"/>201 <execute command="/local/iperf-script.sh" shell="sh"/> 202 <install install_path="/local" url="http://www.gpolab.bbn.com/experiment-support/geni-in-a-box/iperf-script.tar.gz"/> 203 <login authentication="ssh-keys" hostname="pc101.geni-in-a-box.net" port="22" username="gibuser"/> 202 204 </services> 203 205 <interface client_id="left:if0" component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth1" mac_address="00:0C:29:B4:DF:A7" sliver_id="urn:publicid:IDN+geni-in-a-box.net+sliver+1011"> … … 207 209 <host name="pc101.geni-in-a-box.net"/> 208 210 </node> 209 ... 211 ... 210 212 <link client_id="left-right-lan"> 211 213 <component_manager name="urn:publicid:IDN+geni-in-a-box.net+authority+cm"/> … … 221 223 222 224 Options as run: 223 aggregate: [' http://geni-in-a-box.net:8001']225 aggregate: ['gib'] 224 226 framework: gib_ch 225 227 getversionCacheName: /home/gibuser/.gcf/get_version_cache.json … … 229 231 Result Summary: Got Reserved resources RSpec from geni-in-a-box-net-8001 230 232 INFO:omni: ============================================================ 231 $ 232 }}} 233 Notice the manifest rspec is essentially your request rspec annotated with information about the resources that got allocated to you. For example, the {{{<node>}}} element of the manifest includes the MAC and IP addresses assigned to each network interface on the node (host) and information you will need to ssh into the nodes (e.g. the fully qualified domain name of the host ). 233 ]0;gibuser@GiB:~/geni-in-a-box[gibuser@GiB geni-in-a-box]$ 234 }}} 235 Notice the manifest rspec is essentially your request rspec annotated with information about the resources that got allocated to you. For example, the {{{<node>}}} element of the manifest includes the MAC and IP addresses assigned to each network interface on the node (host) and information you will need to ssh into the nodes (e.g. the fully qualified domain name of the host ). The following figure illustrates the resource allocation made by the GENI-in-a-Box aggregate. 236 237 [[Image(ResourcesAllocated.png, 45%)]] 234 238 235 239 === 2.3 Using your Resources ===