Managing VMs on the UVIC Mouse OpenStack Cloud
There is documentation at CERN
http://information-technology.web.cern.ch/book/cern-private-cloud-user-guide/openstack-information
Retrieve the HEP-openrc.sh file from the Mouse OS Portal (within the Access and Security tab, then the API Access tab)
Put the file into your home directory of login.heprc.uvic.ca and source the script (note there is no error message for an incorrect pw)
source HEP-openrc.sh
Check that my credential are correct:
nova keypair-list
List available images and the available flavour types
glance image-list
nova flavor-list
Boot my image
nova boot --image sobie-belle --flavor m1.small --key_name macsob-keypar rjstest
List the instance status
nova list
ID Name Status Networks
5c917b9b-10ba-4740-9c3d-40c388d696ed rjstest ACTIVE hep-net=172.16.0.6 \
List the available IP addresses
nova floating-ip-list
IP Instance ID Fixed IP Pool
206.12.154.196 None None ext-net
Associate the IP address to the VM ID
nova add-floating-ip 5c917b9b-10ba-4740-9c3d-40c388d696ed 206.12.154.196
Confirm the VM has the IP address
nova floating-ip-list
+----------------+--------------------------------------+------------+---------+
| Ip | Instance Id | Fixed Ip | Pool |
+----------------+--------------------------------------+------------+---------+
| 206.12.154.196 | 5c917b9b-10ba-4740-9c3d-40c388d696ed | 172.16.0.6 | ext-net |
+----------------+--------------------------------------+------------+---------+
List the properties of the running VM
nova show
+--------------------------------------+----------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------+
| status | ACTIVE |
| updated | 2014-03-27T17:52:36Z |
| OS-EXT-STS:task_state | None |
| key_name | macsob-keypar |
| image | sobie-belle (2bfb6cfe-9913-4584-b299-fcb8eebaa7e1) |
| hep-net network | 172.16.0.6, 206.12.154.196 |
| hostId | 520626f0e9731077827be5dd24bda34d41cbff5ea3bbe44de43b93af |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2014-03-27T17:52:36.000000 |
| flavor | m1.small (2) |
| id | 5c917b9b-10ba-4740-9c3d-40c388d696ed |
| security_groups | [{u'name': u'default'}] |
| OS-SRV-USG:terminated_at | None |
| user_id | 0440eb28904d49e5bc044f9f943fd4bd |
| name | rjstest |
| created | 2014-03-27T17:52:04Z |
| tenant_id | 38387bf7adb644b4be54bc52b8b58d83 |
| OS-DCF:diskConfig | MANUAL |
| metadata | {} |
| os-extended-volumes:volumes_attached | [] |
| accessIPv4 | |
| accessIPv6 | |
| progress | 0 |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-AZ:availability_zone | nova |
| config_drive | |
+--------------------------------------+----------------------------------------------------------+
--
RandallSobie - 2014-03-19