26 | | Args: createslice lnevers-lamp-slice |
27 | | Result Summary: Created slice with Name lnevers-lamp-slice, URN urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+lnevers-lamp-slice, Expiration 2011-11-16 23:50:02 |
28 | | INFO:omni: ============================================================ |
29 | | |
30 | | $ ./src/omni.py -a https://www.emulab.net/protogeni/xmlrpc/am -n createsliver lnevers-lamp-slice lamp.rspec |
| 30 | Args: createslice lnevers-lamp-slice1 |
| 31 | Result Summary: Created slice with Name lnevers-lamp-slice1, URN urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1, Expiration 2011-11-17 00:09:25+00:00 |
| 32 | INFO:omni: ============================================================ |
| 33 | }}} |
| 34 | Modified the LAMP [http://groups.geni.net/geni/wiki/LAMP/Tutorial#a1.ModifytheRSpec example RSpec] to include my slice name and my user information: |
| 35 | {{{ |
| 36 | <rspec xmlns="http://protogeni.net/resources/rspec/0.2" |
| 37 | xmlns:lamp="http://protogeni.net/resources/rspec/0.2/ext/lamp/1"> |
| 38 | |
| 39 | <node virtual_id="node1" virtualization_type="raw" exclusive="1" |
| 40 | startup_command="/usr/local/etc/lamp/bootstrap.sh urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 urn:publicid:IDN+emulab.net+user+lnevers"> |
| 41 | |
| 42 | <node_type type_name="pc" type_slots="1"/> |
| 43 | |
| 44 | <disk_image name="urn:publicid:IDN+emulab.net+image+GeniSlices//UBUNTU91-LAMP" /> |
| 45 | |
| 46 | <lamp:config /> |
| 47 | |
| 48 | <interface virtual_id="iface0"/> |
| 49 | </node> |
| 50 | |
| 51 | <node virtual_id="node2" virtualization_type="raw" exclusive="1" |
| 52 | startup_command="/usr/local/etc/lamp/bootstrap.sh urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 urn:publicid:IDN+emulab.net+user+lnevers"> |
| 53 | |
| 54 | <node_type type_name="pc" type_slots="1"/> |
| 55 | <disk_image name="urn:publicid:IDN+emulab.net+image+GeniSlices//UBUNTU91-LAMP" /> |
| 56 | <lamp:config /> |
| 57 | <interface virtual_id="iface0"/> |
| 58 | </node> |
| 59 | |
| 60 | <link virtual_id="link1" > |
| 61 | <interface_ref virtual_node_id="node1" virtual_interface_id="iface0"/> |
| 62 | <interface_ref virtual_node_id="node2" virtual_interface_id="iface0"/> |
| 63 | <link_type type_name="ethernet" /> |
| 64 | <latency>100</latency> |
| 65 | <packet_loss>0.05</packet_loss> |
| 66 | </link> |
| 67 | |
| 68 | <node virtual_id="lamp" virtualization_type="raw" exclusive="1" |
| 69 | startup_command="/usr/local/etc/lamp/bootstrap.sh urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 urn:publicid:IDN+emulab.net+user+lnevers"> |
| 70 | |
| 71 | <node_type type_name="pc" type_slots="1"/> |
| 72 | <disk_image name="urn:publicid:IDN+emulab.net+image+GeniSlices//UBUNTU91-LAMP" /> |
| 73 | |
| 74 | <lamp:config> |
| 75 | <lamp:service type="lamp_portal" enable="true" /> |
| 76 | </lamp:config> |
| 77 | |
| 78 | </node> |
| 79 | </rspec> |
| 80 | }}} |
| 81 | Using the above RSpec created a slivers: |
| 82 | |
| 83 | {{{ |
| 84 | $ ./src/omni.py -a https://www.emulab.net/protogeni/xmlrpc/am -n createsliver lnevers-lamp-slice1 lamp.rspec |
32 | | INFO:omni:Using control framework pgeni |
33 | | INFO:omni:Slice urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+lnevers-lamp-slice expires within 1 day on 2011-11-16 23:50:02 UTC |
34 | | INFO:omni:Creating sliver(s) from rspec file lamp.rspec for slice urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+lnevers-lamp-slice |
35 | | ERROR:omni.protogeni:Call for Create Sliver urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+lnevers-lamp-slice at https://www.emulab.net/protogeni/xmlrpc/am failed. Server says: <Fault 2: "*** Node mapping precheck failed!*** Node mapping precheck failed!*** ERROR: mapper: Unretriable error. |
36 | | Giving up.\nseed = 1321505907\nPhysical Graph: 183\nCalculating shortest paths on switch fabric.\nVirtual Graph: 3\nGenerating physical equivalence classes:77\nType precheck:\nType precheck passed.\nNode mapping precheck:\n *** No possible mapping for lamp\n OS 'GeniSlices/UBUNTU91-LAMP' (OS-2283) does not run on this hardware type!\n *** No possible mapping for node1\n OS 'GeniSlices/UBUNTU91-LAMP' (OS-2283) does not run on this hardware type!\n *** No possible mapping for node2\n OS 'GeniSlices/UBUNTU91-LAMP' (OS-2283) does not run on this hardware type!\n*** Node mapping precheck failed!\nASSIGN FAILED:\nType precheck passed.\n *** No possible mapping for lamp\n OS 'GeniSlices/UBUNTU91-LAMP' (OS-2283) does not run on this hardware type!\n *** No possible mapping for node1\n OS 'GeniSlices/UBUNTU91-LAMP' (OS-2283) does not run on this hardware type!\n *** No possible mapping for node2\n OS 'GeniSlices/UBUNTU91-LAMP' (OS-2283) does not run on this hardware type!\n*** Node mapping precheck failed!\n"> |
| 86 | INFO:omni:Using control framework pg |
| 87 | INFO:omni:Slice urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 expires within 1 day on 2011-11-17 00:09:25 UTC |
| 88 | INFO:omni:Creating sliver(s) from rspec file lamp.rspec for slice urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 |
| 96 | INFO:omni: |
| 97 | <rspec xmlns="http://protogeni.net/resources/rspec/0.2" xmlns:lamp="http://protogeni.net/resources/rspec/0.2/ext/lamp/1"> |
| 98 | |
| 99 | <node component_manager_urn="urn:publicid:IDN+emulab.net+authority+cm" component_manager_uuid="28a10955-aa00-11dd-ad1f-001143e453fe" component_urn="urn:publicid:IDN+emulab.net+node+pc151" component_uuid="de98e45d-773e-102b-8eb4-001143e453fe" exclusive="1" hostname="pc151.emulab.net" sliver_urn="urn:publicid:IDN+emulab.net+sliver+62460" sliver_uuid="84a0623d-107e-11e1-b47a-001143e453fe" sshdport="22" startup_command="/usr/local/etc/lamp/bootstrap.sh urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 urn:publicid:IDN+emulab.net+user+lnevers" virtual_id="node1" virtualization_subtype="raw" virtualization_type="raw" xmlns:lamp="http://protogeni.net/resources/rspec/0.2/ext/lamp/1"> |
| 100 | |
| 101 | <node_type type_name="pc" type_slots="1"/> |
| 102 | <disk_image name="urn:publicid:IDN+emulab.net+image+GeniSlices//UBUNTU91-LAMP"/> |
| 103 | <lamp:config/> |
| 104 | <interface component_id="eth3" virtual_id="iface0"/> |
| 105 | <services> <login authentication="ssh-keys" hostname="pc151.emulab.net" port="22" username="lnevers"/> </services> </node> |
| 106 | |
| 107 | <node component_manager_urn="urn:publicid:IDN+emulab.net+authority+cm" component_manager_uuid="28a10955-aa00-11dd-ad1f-001143e453fe" component_urn="urn:publicid:IDN+emulab.net+node+pc157" component_uuid="de994176-773e-102b-8eb4-001143e453fe" exclusive="1" hostname="pc157.emulab.net" sliver_urn="urn:publicid:IDN+emulab.net+sliver+62461" sliver_uuid="85797dab-107e-11e1-b47a-001143e453fe" sshdport="22" startup_command="/usr/local/etc/lamp/bootstrap.sh urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 urn:publicid:IDN+emulab.net+user+lnevers" virtual_id="node2" virtualization_subtype="raw" virtualization_type="raw" xmlns:lamp="http://protogeni.net/resources/rspec/0.2/ext/lamp/1"> |
| 108 | |
| 109 | <node_type type_name="pc" type_slots="1"/> |
| 110 | <disk_image name="urn:publicid:IDN+emulab.net+image+GeniSlices//UBUNTU91-LAMP"/> |
| 111 | <lamp:config/> |
| 112 | <interface component_id="eth3" virtual_id="iface0"/> |
| 113 | <services> <login authentication="ssh-keys" hostname="pc157.emulab.net" port="22" username="lnevers"/> </services> </node> |
| 114 | |
| 115 | <link sliver_urn="urn:publicid:IDN+emulab.net+sliver+62463" sliver_uuid="86c7361d-107e-11e1-b47a-001143e453fe" virtual_id="link1" vlantag="805"> |
| 116 | <interface_ref IP="10.10.1.1" MAC="0002b365cd49" component_urn="urn:publicid:IDN+emulab.net+interface+pc151:eth3" sliver_urn="urn:publicid:IDN+emulab.net+sliver+62464" sliver_uuid="8762eaa1-107e-11e1-b47a-001143e453fe" virtual_interface_id="iface0" virtual_node_id="node1"/> |
| 117 | <interface_ref IP="10.10.1.2" MAC="0002b335f753" component_urn="urn:publicid:IDN+emulab.net+interface+pc157:eth3" sliver_urn="urn:publicid:IDN+emulab.net+sliver+62465" sliver_uuid="8851fd87-107e-11e1-b47a-001143e453fe" virtual_interface_id="iface0" virtual_node_id="node2"/> |
| 118 | <link_type type_name="ethernet"/> |
| 119 | <latency> 100 </latency> |
| 120 | <packet_loss> 0.05 </packet_loss> |
| 121 | </link> |
| 122 | |
| 123 | <node component_manager_urn="urn:publicid:IDN+emulab.net+authority+cm" component_manager_uuid="28a10955-aa00-11dd-ad1f-001143e453fe" component_urn="urn:publicid:IDN+emulab.net+node+pc150" component_uuid="de98a21d-773e-102b-8eb4-001143e453fe" exclusive="1" hostname="pc150.emulab.net" sliver_urn="urn:publicid:IDN+emulab.net+sliver+62462" sliver_uuid="86285b18-107e-11e1-b47a-001143e453fe" sshdport="22" startup_command="/usr/local/etc/lamp/bootstrap.sh urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 urn:publicid:IDN+emulab.net+user+lnevers" virtual_id="lamp" virtualization_subtype="raw" virtualization_type="raw" xmlns:lamp="http://protogeni.net/resources/rspec/0.2/ext/lamp/1"> |
| 124 | |
| 125 | <node_type type_name="pc" type_slots="1"/> |
| 126 | <disk_image name="urn:publicid:IDN+emulab.net+image+GeniSlices//UBUNTU91-LAMP"/> |
| 127 | |
| 128 | <lamp:config> |
| 129 | <lamp:service enable="true" type="lamp_portal"/> |
| 130 | </lamp:config> |
| 131 | |
| 132 | <services> <login authentication="ssh-keys" hostname="pc150.emulab.net" port="22" username="lnevers"/> </services> </node> |
| 133 | </rspec> |
57 | | $ |
58 | | |
59 | | |
60 | | }}} |
61 | | |
62 | | Used the LAMP [http://groups.geni.net/geni/wiki/LAMP/Tutorial#a1.ModifytheRSpec RSpec example] provided in the LAMP tutorial, no changes were made. |
| 144 | }}} |
| 145 | |
| 146 | '''2. Upload Slice Manifest''' |
| 147 | |
| 148 | This step requires upload the slice manifest, which can be generated as follows: |
| 149 | {{{ |
| 150 | $ ./src/omni.py -a https://www.emulab.net/protogeni/xmlrpc/am -o listresources lnevers-lamp-slice1 |
| 151 | }}} |
| 152 | This command creates an output file named lnevers-lamp-slice1-rspec-www-emulab-net-protogeni.xml, renamed it lnevers-lamp-slice1-manifest.xml for conciseness. |
| 153 | Also needed credential file which was generated as instructed: |
| 154 | {{{ |
| 155 | }}} |
| 156 | |
| 157 | To upload the manifest executed the following: |
| 158 | {{{ |
| 159 | $ ./lamp-sendmanifest.py 0.2 lnevers-lamp-slice1-manifest.xml urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 ln |
| 160 | evers-lamp-slice1-cred.xml |
| 161 | <?xml version="1.0" ?> |
| 162 | <topology id="genitopo" xmlns="http://ogf.org/schema/network/topology/unis/20100528/" xmlns:pgeni="http://ogf.org/schema/network/topology/protogeni/20100716/" xmlns:psconfig="http://ogf.org/schema/network/topology/psconfig/20100716/"> |
| 163 | <domain id="urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1"> |
| 164 | <node id="urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:node=node1"> |
| 165 | <address type="dns"> |
| 166 | pc151.emulab.net |
| 167 | </address> |
| 168 | <nodePropertiesBag> |
| 169 | <pgeni:nodeProperties component_manager_urn="urn:publicid:IDN+emulab.net+authority+cm" component_manager_uuid="28a10955-aa00-11dd-ad1f-001143e453fe" component_urn="urn:publicid:IDN+emulab.net+node+pc151" component_uuid="de98e45d-773e-102b-8eb4-001143e453fe" exclusive="1" sliver_urn="urn:publicid:IDN+emulab.net+sliver+62460" sliver_uuid="84a0623d-107e-11e1-b47a-001143e453fe" startup_command="/usr/local/etc/lamp/bootstrap.sh urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 urn:publicid:IDN+emulab.net+user+lnevers" virtualization_subtype="raw" virtualization_type="raw" xmlns:lamp="http://protogeni.net/resources/rspec/0.2/ext/lamp/1"> |
| 170 | |
| 171 | |
| 172 | |
| 173 | <pgeni:node_type type_name="pc" type_slots="1"/> |
| 174 | |
| 175 | |
| 176 | |
| 177 | <pgeni:disk_image name="urn:publicid:IDN+emulab.net+image+GeniSlices//UBUNTU91-LAMP"/> |
| 178 | |
| 179 | |
| 180 | |
| 181 | |
| 182 | |
| 183 | |
| 184 | |
| 185 | |
| 186 | <pgeni:services> |
| 187 | |
| 188 | <pgeni:login authentication="ssh-keys" hostname="pc151.emulab.net" port="22" username="lnevers"/> |
| 189 | |
| 190 | </pgeni:services> |
| 191 | |
| 192 | </pgeni:nodeProperties> |
| 193 | <psconfig:nodeProperties/> |
| 194 | </nodePropertiesBag> |
| 195 | <port id="urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:node=node1:port=iface0"> |
| 196 | <name> |
| 197 | eth3 |
| 198 | </name> |
| 199 | <portPropertiesBag> |
| 200 | <pgeni:portProperties component_id="eth3" component_urn="urn:publicid:IDN+emulab.net+interface+pc151:eth3" sliver_urn="urn:publicid:IDN+emulab.net+sliver+62464" sliver_uuid="8762eaa1-107e-11e1-b47a-001143e453fe"/> |
| 201 | </portPropertiesBag> |
| 202 | <address type="mac"> |
| 203 | 0002b365cd49 |
| 204 | </address> |
| 205 | <address type="ipv4"> |
| 206 | 10.10.1.1 |
| 207 | </address> |
| 208 | </port> |
| 209 | </node> |
| 210 | <node id="urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:node=node2"> |
| 211 | <address type="dns"> |
| 212 | pc157.emulab.net |
| 213 | </address> |
| 214 | <nodePropertiesBag> |
| 215 | <pgeni:nodeProperties component_manager_urn="urn:publicid:IDN+emulab.net+authority+cm" component_manager_uuid="28a10955-aa00-11dd-ad1f-001143e453fe" component_urn="urn:publicid:IDN+emulab.net+node+pc157" component_uuid="de994176-773e-102b-8eb4-001143e453fe" exclusive="1" sliver_urn="urn:publicid:IDN+emulab.net+sliver+62461" sliver_uuid="85797dab-107e-11e1-b47a-001143e453fe" startup_command="/usr/local/etc/lamp/bootstrap.sh urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 urn:publicid:IDN+emulab.net+user+lnevers" virtualization_subtype="raw" virtualization_type="raw" xmlns:lamp="http://protogeni.net/resources/rspec/0.2/ext/lamp/1"> |
| 216 | |
| 217 | |
| 218 | |
| 219 | <pgeni:node_type type_name="pc" type_slots="1"/> |
| 220 | |
| 221 | |
| 222 | <pgeni:disk_image name="urn:publicid:IDN+emulab.net+image+GeniSlices//UBUNTU91-LAMP"/> |
| 223 | |
| 224 | |
| 225 | |
| 226 | |
| 227 | |
| 228 | |
| 229 | <pgeni:services> |
| 230 | |
| 231 | <pgeni:login authentication="ssh-keys" hostname="pc157.emulab.net" port="22" username="lnevers"/> |
| 232 | |
| 233 | </pgeni:services> |
| 234 | |
| 235 | </pgeni:nodeProperties> |
| 236 | <psconfig:nodeProperties/> |
| 237 | </nodePropertiesBag> |
| 238 | <port id="urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:node=node2:port=iface0"> |
| 239 | <name> |
| 240 | eth3 |
| 241 | </name> |
| 242 | <portPropertiesBag> |
| 243 | <pgeni:portProperties component_id="eth3" component_urn="urn:publicid:IDN+emulab.net+interface+pc157:eth3" sliver_urn="urn:publicid:IDN+emulab.net+sliver+62465" sliver_uuid="8851fd87-107e-11e1-b47a-001143e453fe"/> |
| 244 | </portPropertiesBag> |
| 245 | <address type="mac"> |
| 246 | 0002b335f753 |
| 247 | </address> |
| 248 | <address type="ipv4"> |
| 249 | 10.10.1.2 |
| 250 | </address> |
| 251 | </port> |
| 252 | </node> |
| 253 | <node id="urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:node=lamp"> |
| 254 | <address type="dns"> |
| 255 | pc150.emulab.net |
| 256 | </address> |
| 257 | <nodePropertiesBag> |
| 258 | <pgeni:nodeProperties component_manager_urn="urn:publicid:IDN+emulab.net+authority+cm" component_manager_uuid="28a10955-aa00-11dd-ad1f-001143e453fe" component_urn="urn:publicid:IDN+emulab.net+node+pc150" component_uuid="de98a21d-773e-102b-8eb4-001143e453fe" exclusive="1" sliver_urn="urn:publicid:IDN+emulab.net+sliver+62462" sliver_uuid="86285b18-107e-11e1-b47a-001143e453fe" startup_command="/usr/local/etc/lamp/bootstrap.sh urn:publicid:IDN+emulab.net+slice+lnevers-lamp-slice1 urn:publicid:IDN+emulab.net+user+lnevers" virtualization_subtype="raw" virtualization_type="raw" xmlns:lamp="http://protogeni.net/resources/rspec/0.2/ext/lamp/1"> |
| 259 | <pgeni:node_type type_name="pc" type_slots="1"/> |
| 260 | <pgeni:disk_image name="urn:publicid:IDN+emulab.net+image+GeniSlices//UBUNTU91-LAMP"/> |
| 261 | <pgeni:services> |
| 262 | |
| 263 | <pgeni:login authentication="ssh-keys" hostname="pc150.emulab.net" port="22" username="lnevers"/> |
| 264 | |
| 265 | </pgeni:services> |
| 266 | |
| 267 | </pgeni:nodeProperties> |
| 268 | <psconfig:nodeProperties> |
| 269 | <psconfig:service enable="true" type="lamp_portal"/> |
| 270 | </psconfig:nodeProperties> |
| 271 | </nodePropertiesBag> |
| 272 | </node> |
| 273 | <link directed="false" id="urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:link=link1"> |
| 274 | <type> ethernet </type> |
| 275 | <linkPropertiesBag> |
| 276 | <pgeni:linkProperties sliver_urn="urn:publicid:IDN+emulab.net+sliver+62463" sliver_uuid="86c7361d-107e-11e1-b47a-001143e453fe" vlantag="805"> |
| 277 | <pgeni:latency> 100 </pgeni:latency> |
| 278 | <pgeni:packet_loss> 0.05 </pgeni:packet_loss> |
| 279 | </pgeni:linkProperties> |
| 280 | </linkPropertiesBag> |
| 281 | <relation type="endPoint"> |
| 282 | <portIdRef> |
| 283 | urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:node=node1:port=iface0 |
| 284 | </portIdRef> |
| 285 | </relation> |
| 286 | <relation type="endPoint"> |
| 287 | <portIdRef> |
| 288 | urn:ogf:network:domain=emulab.net+slice+lnevers-lamp-slice1:node=node2:port=iface0 |
| 289 | </portIdRef> |
| 290 | </relation> |
| 291 | </link> |
| 292 | </domain> |
| 293 | </topology> |
| 294 | |
| 295 | }}} |