72 | | Using the RSpec [http://groups.geni.net/geni/browser/trunk/GENIRacks/InstaGENI/Spiral4/RSpecs/AcceptanceTests/IG-EXP-1/IG-EXP-1.rspec IG-EXP-1.rspec] that includes 1 FreeBSD, and 1 Ubuntu node, create a slice and sliver: |
73 | | |
74 | | {{{ |
75 | | $ omni.py createslice IG-EXP-1 |
76 | | $ omni.py -a insta-utah createsliver IG-EXP-1 IG-EXP-1.rspec --api-version 2 -t GENI 3 |
| 81 | The RSpec [http://groups.geni.net/geni/browser/trunk/GENIRacks/InstaGENI/Spiral4/RSpecs/AcceptanceTests/IG-EXP-1/IG-EXP-1-gpo.rspec IG-EXP-1-gpo.rspec] that includes 1 FreeBSD and 1 Ubuntu node was used to create a slice and sliver at the GPO InstaGENI: |
| 82 | |
| 83 | {{{ |
| 84 | $ omni.py createslice IG-EXP-1 |
| 85 | INFO:omni:Loading config file /home/lnevers/.gcf/omni_config |
| 86 | INFO:omni:Using control framework pg |
| 87 | INFO:omni:Created slice with Name IG-EXP-1, URN urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+IG-EXP-1, Expiration 2013-01-25 21:04:16+00:00 |
| 88 | INFO:omni: ------------------------------------------------------------ |
| 89 | INFO:omni: Completed createslice: |
| 90 | Options as run: |
| 91 | framework: pg |
| 92 | |
| 93 | Args: createslice IG-EXP-1 |
| 94 | Result Summary: Created slice with Name IG-EXP-1, URN urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+IG-EXP-1, Expiration 2013-01-25 21:04:16+00:00 |
| 95 | |
| 96 | INFO:omni: ============================================================ |
| 97 | $ omni.py createsliver -a ig-gpo IG-EXP-1 IG-EXP-1-gpo.rspec |
| 98 | INFO:omni:Loading config file /home/lnevers/.gcf/omni_config |
| 99 | INFO:omni:Using control framework pg |
| 100 | INFO:omni:Substituting AM nickname ig-gpo with URL http://instageni.gpolab.bbn.com/protogeni/xmlrpc/am/2.0, URN unspecified_AM_URN |
| 101 | INFO:omni:Slice urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+IG-EXP-1 expires on 2013-01-25 21:04:16 UTC |
| 102 | INFO:omni:Substituting AM nickname ig-gpo with URL http://instageni.gpolab.bbn.com/protogeni/xmlrpc/am/2.0, URN unspecified_AM_URN |
| 103 | INFO:omni:Substituting AM nickname ig-gpo with URL http://instageni.gpolab.bbn.com/protogeni/xmlrpc/am/2.0, URN unspecified_AM_URN |
| 104 | INFO:omni:Creating sliver(s) from rspec file IG-EXP-1-gpo.rspec for slice urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+IG-EXP-1 |
| 105 | INFO:omni:Got return from CreateSliver for slice IG-EXP-1 at http://instageni.gpolab.bbn.com/protogeni/xmlrpc/am/2.0: |
| 106 | INFO:omni:<!-- Reserved resources for: |
| 107 | Slice: IG-EXP-1 |
| 108 | at AM: |
| 109 | URN: unspecified_AM_URN |
| 110 | URL: http://instageni.gpolab.bbn.com/protogeni/xmlrpc/am/2.0 |
| 111 | --> |
| 112 | INFO:omni:<rspec 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" type="manifest" xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/manifest.xsd"> |
| 113 | |
| 114 | <node client_id="host-bsd" component_manager_id="urn:publicid:IDN+instageni.gpolab.bbn.com+authority+cm" exclusive="true" component_id="urn:publicid:IDN+instageni.gpolab.bbn.com+node+pc4" sliver_id="urn:publicid:IDN+instageni.gpolab.bbn.com+sliver+847"> |
| 115 | <sliver_type name="raw-pc"> |
| 116 | <disk_image description="FreeBSD 8.2 32-bit version" name="urn:publicid:IDN+instageni.gpolab.bbn.com+image+emulab-ops:FBSD82-STD" os="FreeBSD" version="8.2"/> |
| 117 | </sliver_type> |
| 118 | <interface client_id="host-bsd:if0" component_id="urn:publicid:IDN+instageni.gpolab.bbn.com+interface+pc4:eth1" sliver_id="urn:publicid:IDN+instageni.gpolab.bbn.com+sliver+851" mac_address="10604B9600D6"> |
| 119 | <ip address="10.10.1.2" type="ipv4"/></interface> |
| 120 | <rs:vnode xmlns:rs="http://www.protogeni.net/resources/rspec/ext/emulab/1" name="pc4"/><host name="host-bsd.IG-EXP-1.pgeni-gpolab-bbn-com.instageni.gpolab.bbn.com"/><services><login authentication="ssh-keys" hostname="pc4.instageni.gpolab.bbn.com" port="22" username="lnevers"/></services></node> |
| 121 | |
| 122 | <node client_id="host-ubuntu12" component_manager_id="urn:publicid:IDN+instageni.gpolab.bbn.com+authority+cm" exclusive="true" component_id="urn:publicid:IDN+instageni.gpolab.bbn.com+node+pc5" sliver_id="urn:publicid:IDN+instageni.gpolab.bbn.com+sliver+846"> |
| 123 | <sliver_type name="raw-pc"> |
| 124 | <disk_image description="Ubuntu 12.04 LTS" name="urn:publicid:IDN+instageni.gpolab.bbn.com+image+emulab-ops:UBUNTU12-64-STD" os="Linux" version=""/> |
| 125 | </sliver_type> |
| 126 | <interface client_id="host-ubuntu12:if0" component_id="urn:publicid:IDN+instageni.gpolab.bbn.com+interface+pc5:eth1" sliver_id="urn:publicid:IDN+instageni.gpolab.bbn.com+sliver+850" mac_address="10604B9C476A"> |
| 127 | <ip address="10.10.1.1" type="ipv4"/></interface> |
| 128 | <rs:vnode xmlns:rs="http://www.protogeni.net/resources/rspec/ext/emulab/1" name="pc5"/><host name="host-ubuntu12.IG-EXP-1.pgeni-gpolab-bbn-com.instageni.gpolab.bbn.com"/><services><login authentication="ssh-keys" hostname="pc5.instageni.gpolab.bbn.com" port="22" username="lnevers"/></services></node> |
| 129 | |
| 130 | <link client_id="lan0" sliver_id="urn:publicid:IDN+instageni.gpolab.bbn.com+sliver+849" vlantag="258"> |
| 131 | <component_manager name="urn:publicid:IDN+instageni.gpolab.bbn.com+authority+cm"/> |
| 132 | <interface_ref client_id="host-ubuntu12:if0" component_id="urn:publicid:IDN+instageni.gpolab.bbn.com+interface+pc5:eth1" sliver_id="urn:publicid:IDN+instageni.gpolab.bbn.com+sliver+850"/> |
| 133 | <interface_ref client_id="host-bsd:if0" component_id="urn:publicid:IDN+instageni.gpolab.bbn.com+interface+pc4:eth1" sliver_id="urn:publicid:IDN+instageni.gpolab.bbn.com+sliver+851"/> |
| 134 | <link_type name="lan"/> |
| 135 | </link> |
| 136 | </rspec> |
| 137 | INFO:omni: ------------------------------------------------------------ |
| 138 | INFO:omni: Completed createsliver: |
| 139 | Options as run: |
| 140 | aggregate: ['ig-gpo'] |
| 141 | framework: pg |
| 142 | |
| 143 | Args: createsliver IG-EXP-1 IG-EXP-1-gpo.rspec |
| 144 | Result Summary: Got Reserved resources RSpec from instageni-gpolab-bbn-com-protogeniv2 |
| 145 | INFO:omni: ============================================================ |
| 146 | |
79 | | Verify that the sliver is ready with a Omni sliverstatus command and verify that 'pg_status' is 'ready': |
80 | | {{{ |
81 | | $ omni.py -a insta-utah sliverstatus IG-EXP-1 --api-version 2 -t GENI 3 |
82 | | }}} |
83 | | |
84 | | Once sliver is ready, check the host allocation for the sliver EG-EXP-1: |
85 | | {{{ |
86 | | $ omni.py -a insta-utah listresources IG-EXP-1 --api-version 2 -t GENI 3 -o |
87 | | $ egrep "login" IG-EXP-1-rspec-utah-geniracks-net-protogeni.xml |
88 | | <login authentication="ssh-keys" hostname="pc4.utah.geniracks.net" port="22" username="lnevers"/> |
89 | | <login authentication="ssh-keys" hostname="pc2.utah.geniracks.net" port="22" username="lnevers"/> |
90 | | }}} |
91 | | VerifY dataplane connectivity for each host in each experiment. Check the FreeBSD host: |
92 | | {{{ |
93 | | $ ssh pc4.utah.geniracks.net |
94 | | %ifconfig bce1 |
95 | | bce1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 |
96 | | options=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE> |
97 | | ether e8:39:35:b1:ec:9e |
98 | | inet 10.10.1.2 netmask 0xffffff00 broadcast 10.10.1.255 |
99 | | media: Ethernet 1000baseT <full-duplex> |
100 | | status: active |
101 | | %ping 10.10.1.1 |
102 | | PING 10.10.1.1 (10.10.1.1): 56 data bytes |
103 | | 64 bytes from 10.10.1.1: icmp_seq=0 ttl=64 time=0.251 ms |
104 | | 64 bytes from 10.10.1.1: icmp_seq=1 ttl=64 time=0.109 ms |
105 | | 64 bytes from 10.10.1.1: icmp_seq=2 ttl=64 time=0.107 ms |
106 | | }}} |
107 | | |
108 | | {{{ |
109 | | $ ssh pc2.utah.geniracks.net |
110 | | host-ubuntu12:~% ifconfig eth1 |
111 | | eth1 Link encap:Ethernet HWaddr e8:39:35:b1:0c:7e |
112 | | inet addr:10.10.1.1 Bcast:10.10.1.255 Mask:255.255.255.0 |
113 | | inet6 addr: fe80::ea39:35ff:feb1:c7e/64 Scope:Link |
114 | | UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 |
115 | | RX packets:0 errors:0 dropped:0 overruns:0 frame:0 |
116 | | TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 |
117 | | collisions:0 txqueuelen:1000 |
118 | | RX bytes:0 (0.0 B) TX bytes:492 (492.0 B) |
119 | | Interrupt:37 Memory:f2000000-f2012800 |
120 | | host-ubuntu12:~% ping 10.10.1.2 |
121 | | PING 10.10.1.2 (10.10.1.2) 56(84) bytes of data. |
122 | | 64 bytes from 10.10.1.2: icmp_req=1 ttl=64 time=0.067 ms |
123 | | 64 bytes from 10.10.1.2: icmp_req=2 ttl=64 time=0.093 ms |
124 | | 64 bytes from 10.10.1.2: icmp_req=3 ttl=64 time=0.095 ms |
| 149 | Note: A version of the RSpec [http://groups.geni.net/geni/browser/trunk/GENIRacks/InstaGENI/Spiral4/RSpecs/AcceptanceTests/IG-EXP-1/IG-EXP-1-utah.rspec IG-EXP-1-utah.rspec] is available for IG Utah rack. |
| 150 | |
| 151 | |
| 152 | Once sliver is ready, determined the login information for the sliver EG-EXP-1 nodes: |
| 153 | {{{ |
| 154 | $ readyToLogin.py -a ig-gpo IG-EXP-1 |
| 155 | <...> |
| 156 | host-ubuntu12's geni_status is: changing (am_status:ready) |
| 157 | User lnevers logins to host-ubuntu12 using: |
| 158 | xterm -e ssh -i /home/lnevers/.ssh/id_rsa lnevers@pc5.instageni.gpolab.bbn.com & |
| 159 | |
| 160 | host-bsd's geni_status is: ready (am_status:ready) |
| 161 | User lnevers logins to host-bsd using: |
| 162 | xterm -e ssh -i /home/lnevers/.ssh/id_rsa lnevers@pc4.instageni.gpolab.bbn.com & |
| 163 | |
| 164 | }}} |
| 165 | |
| 166 | Verified dataplane connectivity for each host in each experiment. Checked the FreeBSD host: |
| 167 | {{{ |
| 168 | $ ssh -i /home/lnevers/.ssh/id_rsa lnevers@pc4.instageni.gpolab.bbn.com |
| 169 | [lnevers@host-bsd ~]$ /sbin/ifconfig bce1 |
| 170 | bce1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 |
| 171 | options=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE> |
| 172 | ether 10:60:4b:96:00:d6 |
| 173 | inet 10.10.1.2 netmask 0xffffff00 broadcast 10.10.1.255 |
| 174 | media: Ethernet 1000baseT <full-duplex> |
| 175 | status: active |
| 176 | [lnevers@host-bsd ~]$ ping 10.10.1.1 |
| 177 | PING 10.10.1.1 (10.10.1.1): 56 data bytes |
| 178 | 64 bytes from 10.10.1.1: icmp_seq=0 ttl=64 time=0.233 ms |
| 179 | 64 bytes from 10.10.1.1: icmp_seq=1 ttl=64 time=0.110 ms |
| 180 | }}} |
| 181 | |
| 182 | Checked the Ubuntu host: |
| 183 | |
| 184 | {{{ |
| 185 | lnevers@localhost:~$ /sbin/ifconfig eth1 |
| 186 | eth1 Link encap:Ethernet HWaddr 10:60:4b:9c:47:6a |
| 187 | inet addr:10.10.1.1 Bcast:10.10.1.255 Mask:255.255.255.0 |
| 188 | inet6 addr: fe80::1260:4bff:fe9c:476a/64 Scope:Link |
| 189 | UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 |
| 190 | RX packets:0 errors:0 dropped:0 overruns:0 frame:0 |
| 191 | TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 |
| 192 | collisions:0 txqueuelen:1000 |
| 193 | RX bytes:0 (0.0 B) TX bytes:492 (492.0 B) |
| 194 | Interrupt:37 Memory:f2000000-f2012800 |
| 195 | |
| 196 | lnevers@localhost:~$ ping 10.10.1.2 |
| 197 | PING 10.10.1.2 (10.10.1.2) 56(84) bytes of data. |
| 198 | 64 bytes from 10.10.1.2: icmp_req=1 ttl=64 time=0.103 ms |
| 199 | 64 bytes from 10.10.1.2: icmp_req=2 ttl=64 time=0.091 ms |
129 | | Release compute resources: |
130 | | {{{ |
131 | | $ omni.py -a insta-utah deletesliver IG-EXP-1 |
| 204 | Released the sliver compute resources: |
| 205 | {{{ |
| 206 | $ omni.py deletesliver -a ig-gpo IG-EXP-1 |
| 207 | INFO:omni:Loading config file /home/lnevers/.gcf/omni_config |
| 208 | INFO:omni:Using control framework pg |
| 209 | INFO:omni:Substituting AM nickname ig-gpo with URL http://instageni.gpolab.bbn.com/protogeni/xmlrpc/am/2.0, URN unspecified_AM_URN |
| 210 | INFO:omni:Slice urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+IG-EXP-1 expires on 2013-01-25 21:04:16 UTC |
| 211 | INFO:omni:Substituting AM nickname ig-gpo with URL http://instageni.gpolab.bbn.com/protogeni/xmlrpc/am/2.0, URN unspecified_AM_URN |
| 212 | INFO:omni:Deleted sliver urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+IG-EXP-1 on unspecified_AM_URN at http://instageni.gpolab.bbn.com/protogeni/xmlrpc/am/2.0 |
| 213 | INFO:omni: ------------------------------------------------------------ |
| 214 | INFO:omni: Completed deletesliver: |
| 215 | Options as run: |
| 216 | aggregate: ['ig-gpo'] |
| 217 | framework: pg |
| 218 | |
| 219 | Args: deletesliver IG-EXP-1 |
| 220 | Result Summary: Deleted sliver urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+IG-EXP-1 on unspecified_AM_URN at http://instageni.gpolab.bbn.com/protogeni/xmlrpc/am/2.0 |
| 221 | INFO:omni: ============================================================ |
| 222 | |