167 | | 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}}}. 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. |
| 167 | 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}}: |
| 168 | {{{ |
| 169 | $ omni.py --api-version 2 -a http://geni-in-a-box.net:8001 createsliver myslice two-nodes-iperf.rspec |
| 170 | INFO:omni:Loading config file /home/gibuser/.gcf/omni_config |
| 171 | INFO:omni:Using control framework gib_ch |
| 172 | WARNING:omni:Slice urn:publicid:IDN+geni:gpo:gcf+slice+myslice expires in <= 3 hours |
| 173 | INFO:omni:Slice urn:publicid:IDN+geni:gpo:gcf+slice+myslice expires on 2012-10-02 16:32:42 UTC |
| 174 | INFO:omni:Creating sliver(s) from rspec file two-nodes-iperf.rspec for slice urn:publicid:IDN+geni:gpo:gcf+slice+myslice |
| 175 | INFO:omni:Got return from CreateSliver for slice myslice at http://geni-in-a-box.net:8001: |
| 176 | INFO:omni:<?xml version="1.0" ?> |
| 177 | INFO:omni: <!-- Reserved resources for: |
| 178 | Slice: myslice |
| 179 | at AM: |
| 180 | URN: unspecified_AM_URN |
| 181 | URL: http://geni-in-a-box.net:8001 |
| 182 | --> |
| 183 | INFO:omni: <rspec generated="2012-09-11T16:29:16Z" generated_by="Flack" type="manifest"> |
| 184 | <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"> |
| 185 | <sliver_type name="virtual-pc"> |
| 186 | <disk_image name="urn:publicid:geni-in-a-box.net+image//FEDORA15-STD"/> |
| 187 | </sliver_type> |
| 188 | <services> |
| 189 | <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"/> |
| 190 | <execute command="/local/iperf-execute-script.sh" shell="sh"/> |
| 191 | <login authentication="ssh-keys" hostname="pc101.geni-in-a-box.net" port="22" username="alice"/> |
| 192 | <login authentication="ssh-keys" hostname="pc101.geni-in-a-box.net" port="22" username="bob"/> |
| 193 | </services> |
| 194 | <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"> |
| 195 | <ip address="10.0.3.101"/> |
| 196 | </interface> |
| 197 | <rs:vnode name="pc101" xmlns:rs="http://www.protogeni.net/resources/rspec/ext/emulab/1"/> |
| 198 | <host name="pc101.geni-in-a-box.net"/> |
| 199 | </node> |
| 200 | ... |
| 201 | <link client_id="left-right-lan"> |
| 202 | <component_manager name="urn:publicid:IDN+geni-in-a-box.net+authority+cm"/> |
| 203 | <interface_ref client_id="left:if0" component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth1" sliver_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc101:eth1"/> |
| 204 | <interface_ref client_id="right:if0" component_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc102:eth1" sliver_id="urn:publicid:IDN+geni-in-a-box.net+interface+pc102:eth1"/> |
| 205 | <property dest_id="right:if0" source_id="left:if0"/> |
| 206 | <property dest_id="left:if0" source_id="right:if0"/> |
| 207 | <link_type name="lan"/> |
| 208 | </link> |
| 209 | </rspec> |
| 210 | INFO:omni: ------------------------------------------------------------ |
| 211 | INFO:omni: Completed createsliver: |
| 212 | |
| 213 | Options as run: |
| 214 | aggregate: ['http://geni-in-a-box.net:8001'] |
| 215 | framework: gib_ch |
| 216 | getversionCacheName: /home/gibuser/.gcf/get_version_cache.json |
| 217 | |
| 218 | Args: createsliver myslice two-nodes-iperf.rspec |
| 219 | |
| 220 | Result Summary: Got Reserved resources RSpec from geni-in-a-box-net-8001 |
| 221 | INFO:omni: ============================================================ |
| 222 | $ |
| 223 | }}} |
| 224 | |
| 225 | |
| 226 | |
| 227 | [[BR]] |
| 228 | [[BR]] |
| 229 | [[BR]] |
| 230 | [[BR]] |
| 231 | [[BR]] |
| 232 | [[BR]] |
| 233 | [[BR]] |
| 234 | |