Changes between Version 36 and Version 37 of GENIExperimenter/ExperimentExample
- Timestamp:
- 08/22/12 15:05:27 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/ExperimentExample
v36 v37 73 73 Getting a list of resources from the !PlanetLab Princeton aggregate in GENI v3 rspec format: 74 74 {{{ 75 $ ./src/omni.py -o -a http://www.planet-lab.org:12346-t geni 3 --api-version 2 listresources76 INFO:omni:Loading config file omni_config77 INFO:omni:Using control framework pg eni75 $ ./src/omni.py -o -a plc -t geni 3 --api-version 2 listresources 76 INFO:omni:Loading config file /home/nriga/.gcf/omni_config 77 INFO:omni:Using control framework pg 78 78 INFO:omni:Saving output to a file. 79 INFO:omni:Substituting AM nickname plc with URL https://www.planet-lab.org:12346, URN unspecified_AM_URN 79 80 INFO:omni:Listed resources on 1 out of 1 possible aggregates. 80 81 INFO:omni:Writing to 'rspec-www-planet-lab-org.xml' … … 83 84 84 85 Options as run: 85 aggregate: http://www.planet-lab.org:12346 86 87 framework: pgeni 88 89 90 86 aggregate: plc 87 api_version: 2 88 framework: pg 89 native: True 90 output: True 91 rspectype: ('geni', '3') 91 92 92 93 Args: listresources 94 93 95 Result Summary: Retrieved resources from 1 aggregates. 94 96 Wrote rspecs from 1 aggregates to 1 files 95 Saved list Resources RSpec at unspecified_AM_URN to file rspec-www-planet-lab-org.xml.97 Saved listresources RSpec at 'unspecified_AM_URN' to file rspec-www-planet-lab-org.xml; . 96 98 INFO:omni: ============================================================ 97 99 }}} … … 119 121 }}} 120 122 121 You may use the output of these two ''listresources'' commands to generate rspecs to request resources. The above ''listresources'' commands use the default native rspec format rather than the deprecated omnispec format. Note that with native RSpecs, the {{{-a}}} flag or the {{{aggregates}}} entry in your {{{omni_config}}} is required to specify an aggregate manager.123 You may use the output of these two ''listresources'' commands to generate rspecs to request resources. 122 124 123 125 If you are planning to use MyPLC resources, you may query a MyPLC installation to get a list of available resources as follows: 124 126 {{{ 125 $ ./src/omni.py - a http://myplc.gpolab.bbn.com:12346 -o listresources126 INFO:omni:Loading config file omni_config127 INFO:omni:Using control framework pg eni127 $ ./src/omni.py -o -a plc-gpo listresources 128 INFO:omni:Loading config file /home/nriga/.gcf/omni_config 129 INFO:omni:Using control framework pg 128 130 INFO:omni:Saving output to a file. 131 INFO:omni:Substituting AM nickname plc-gpo with URL http://myplc.gpolab.bbn.com:12346/, URN unspecified_AM_URN 129 132 INFO:omni:Listed resources on 1 out of 1 possible aggregates. 130 INFO:omni:Writing to 'rspec-myplc-gpolab-bbn-com .xml'133 INFO:omni:Writing to 'rspec-myplc-gpolab-bbn-com-12346-.xml' 131 134 INFO:omni: ------------------------------------------------------------ 132 135 INFO:omni: Completed listresources: 133 136 134 137 Options as run: 135 aggregate: http://myplc.gpolab.bbn.com:12346 136 framework: pgeni 137 138 138 aggregate: plc-gpo 139 framework: pg 140 native: True 141 output: True 139 142 140 143 Args: listresources … … 142 145 Result Summary: Retrieved resources from 1 aggregates. 143 146 Wrote rspecs from 1 aggregates to 1 files 144 Saved listResources RSpec at unspecified_AM_URN to file rspec-myplc-gpolab-bbn-com.xml. 145 INFO:omni: ============================================================ 146 }}} 147 148 If you are planning to use University of Kentucky Emulab resources, you can query just this installation (instead of all PG aggregates, as we did in the example above) to get a list of available resources. Note the example below was collected with GPO pgeni.gpolab.bbn.com credentials: 149 {{{ 150 $ ./src/omni.py -a https://www.uky.emulab.net/protogeni/xmlrpc/am -o listresources 151 INFO:omni:Loading config file omni_config 152 INFO:omni:Using control framework pgeni 153 INFO:omni:Saving output to a file. 154 INFO:omni:Listed resources on 1 out of 1 possible aggregates. 155 INFO:omni:Writing to 'rspec-www-uky-emulab-net-protogeni.xml' 156 INFO:omni: ------------------------------------------------------------ 157 INFO:omni: Completed listresources: 158 159 Options as run: 160 aggregate: https://www.uky.emulab.net/protogeni/xmlrpc/am 161 framework: pgeni 162 native: True 163 output: True 164 165 Args: listresources 166 167 Result Summary: Retrieved resources from 1 aggregates. 168 Wrote rspecs from 1 aggregates to 1 files 169 Saved listResources RSpec at unspecified_AM_URN to file rspec-www-uky-emulab-net-protogeni.xml. 147 Saved listresources RSpec at 'unspecified_AM_URN' to file rspec-myplc-gpolab-bbn-com-12346-.xml; . 170 148 INFO:omni: ============================================================ 171 149 }}} … … 173 151 == Create a slice == 174 152 175 Since the [wiki:GENIExperimenter/ExperimentExample#OmniConfiguration omni_config] specifies using the credentials and the Clearinghouse for the GPO ProtoGENI,your slice will be created in the pgeni.gpolab.bbn.com namespace. For this example a slice named ''lnevers-1slice'' is created; you should choose a slice name that is meaningful to you. To avoid confusion, avoid creating a slice with the same name as your username (ie if your username is ''lnevers'', don't name your slice ''lnevers'' too).153 If you have an account with GPO's Clearinghouse then your slice will be created in the pgeni.gpolab.bbn.com namespace. For this example a slice named ''lnevers-1slice'' is created; you should choose a slice name that is meaningful to you. To avoid confusion, avoid creating a slice with the same name as your username (ie if your username is ''lnevers'', don't name your slice ''lnevers'' too). 176 154 177 155 {{{ … … 195 173 == Renew your slice == 196 174 197 Note in the above output that our new slice expires soon. Your resource reservations will not be longer then your slice life, and will go away when the reservation expires. For your experiment be sure to renew your slice for the duration of your experiment. Here we only slightly extend the slice lifetime.175 Note in the above output that our new slice expires soon. Any resources that you will reserve as part of your slice can not last longer than your slice, and will go away when the reservation expires. For your experiment be sure to renew your slice for the duration of your experiment. Here we only slightly extend the slice lifetime. 198 176 199 177 {{{ … … 218 196 }}} 219 197 220 == Add Emulab PG resources to GPO PGslice ==198 == Add Emulab PG resources to your slice == 221 199 222 200 To request two Emulab ProtoGENI nodes, the following rspec named emulab.rspec was used for this example; your rspec will be specific to your experiment requirements: … … 243 221 To request two ProtoGENI nodes, a sliver was created within the Emulab ProtoGENI aggregate with the RSpec above using the following command. Note the use of the {{{-o}}} argument, which saves the manifest RSpec to a file. The manifest contains your new host's IP address and login information. 244 222 {{{ 245 $ ./src/omni.py -a https://www.emulab.net/protogeni/xmlrpc/am-o createsliver lnevers-1slice emulab.rspec223 $ ./src/omni.py -a pg-utah -o createsliver lnevers-1slice emulab.rspec 246 224 INFO:omni:Loading config file omni_config 247 225 INFO:omni:Using control framework pgeni … … 276 254 --> 277 255 278 <rspec type="manifest" 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/request.xsd http://www.protogeni.net/resources/rspec/ext/emulab/1 http://www.protogeni.net/resources/rspec/ext/emulab/1/ptop _extension.xsd"> 279 <node component_id="urn:publicid:IDN+emulab.net+node+pc333" component_manager_id="urn:publicid:IDN+emulab.net+authority+cm" exclusive="true" sliver_id="urn:publicid:IDN+emulab.net+sliver+68392" virtual_id="geni1" virtualization_type="emulab-vnode" xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1"> 280 <sliver_type name="raw-pc"/> <emulab:vnode name="pc333"/> <host name="geni1.lnevers-1slice.pgeni-gpolab-bbn-com.emulab.net"/> <services> <login authentication="ssh-keys" hostname="pc333.emulab.net" port="22" username="lnevers"/> </services> </node> 256 <rspec type="manifest" 257 xmlns="http://www.protogeni.net/resources/rspec/2" 258 xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1" 259 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 260 xsi:schemaLocation="http://www.protogeni.net/resources/rspec/2 261 http://www.protogeni.net/ resources/rspec/2/request.xsd 262 http://www.protogeni.net/resources/rspec/ext/emulab/1 263 http://www.protogeni.net/resources/rspec/ext/emulab/1/ptop _extension.xsd"> 264 <node component_id="urn:publicid:IDN+emulab.net+node+pc333" 265 component_manager_id="urn:publicid:IDN+emulab.net+authority+cm" 266 exclusive="true" sliver_id="urn:publicid:IDN+emulab.net+sliver+68392" 267 virtual_id="geni1" virtualization_type="emulab-vnode" 268 xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1"> 269 270 <sliver_type name="raw-pc"/> 271 <emulab:vnode name="pc333"/> 272 <host name="geni1.lnevers-1slice.pgeni-gpolab-bbn-com.emulab.net"/> 273 <services> 274 <login authentication="ssh-keys" hostname="pc333.emulab.net" port="22" username="lnevers"/> 275 </services> 276 </node> 281 277 <node component_id="urn:publicid:IDN+emulab.net+node+pc350" component_manager_id="urn:publicid:IDN+emulab.net+authority+cm" exclusive="true" sliver_id="urn:publicid:IDN+emulab.net+sliver+68393" virtual_id="geni2" virtualization_type="emulab-vnode" xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1"> 282 278 <sliver_type name="raw-pc"/> <emulab:vnode name="pc350"/> <host name="geni2.lnevers-1slice.pgeni-gpolab-bbn-com.emulab.net"/> <services> <login authentication="ssh-keys" hostname="pc350.emulab.net" port="22" username="lnevers"/> </services> </node> … … 288 284 To request three PlanetLab nodes, the following rspec named planet.rspec was used for this example; your rspec will be specific to your experiment requirements. 289 285 290 This example uses ProtoGENI V2 RSpec format . Standard SFA formats are also acceptable. To generate the ProtoGENI V2 request from the Advertisement:286 This example uses ProtoGENI V2 RSpec format, to generate the ProtoGENI V2 request from the Advertisement: 291 287 * Change the rspec headers to specify that this is a request, using the headers shown below 292 288 * Pull out only the nodes you wish to reserve - ensure they say {{{available now="true"}}}