Skip to content

Instantly share code, notes, and snippets.

@elliott-davis
Last active August 29, 2015 14:11
Show Gist options
  • Save elliott-davis/16e71995c39e56887d74 to your computer and use it in GitHub Desktop.
Save elliott-davis/16e71995c39e56887d74 to your computer and use it in GitHub Desktop.
root@controller:~# nova service-list && nova hypervisor-list && nova image-list
+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| 1 | nova-conductor | controller | internal | enabled | up | 2014-12-10T20:03:48.000000 | - |
| 2 | nova-scheduler | controller | internal | enabled | up | 2014-12-10T20:03:46.000000 | - |
| 3 | nova-cert | controller | internal | enabled | up | 2014-12-10T20:03:48.000000 | - |
| 4 | nova-consoleauth | controller | internal | enabled | up | 2014-12-10T20:03:49.000000 | - |
| 5 | nova-network | compute1 | internal | enabled | up | 2014-12-10T20:03:46.000000 | - |
| 6 | nova-compute | compute1 | nova | enabled | up | 2014-12-10T20:03:42.000000 | - |
| 7 | nova-network | compute2 | internal | enabled | up | 2014-12-10T20:03:43.000000 | - |
| 8 | nova-compute | compute2 | nova | enabled | up | 2014-12-10T20:03:44.000000 | - |
| 9 | nova-network | compute3 | internal | enabled | up | 2014-12-10T20:03:45.000000 | - |
| 10 | nova-compute | compute3 | nova | enabled | up | 2014-12-10T20:03:46.000000 | - |
+----+------------------+------------+----------+---------+-------+----------------------------+-----------------+
+----+---------------------+
| ID | Hypervisor hostname |
+----+---------------------+
| 1 | compute1 |
| 2 | compute2 |
| 3 | compute3 |
+----+---------------------+
+--------------------------------------+----------------+--------+--------+
| ID | Name | Status | Server |
+--------------------------------------+----------------+--------+--------+
| e8cae4e3-b005-4c70-9b56-35cfd44834d9 | centos-65 | ACTIVE | |
| d7674158-2e7d-4fe6-8209-b3f3ab316cc3 | centos-7 | ACTIVE | |
| d4d6a92b-9f7a-49f8-8d8c-0174b0657978 | cirros | ACTIVE | |
| 19bbf184-5625-4dbd-982b-d5699529416f | ubuntu-precise | ACTIVE | |
| e49f508d-1503-4829-94be-ce3f238ae30f | ubuntu-trusty | ACTIVE | |
+--------------------------------------+----------------+--------+--------+
root@controller:~# nova boot test --image cirros --flavor 1
+--------------------------------------+-----------------------------------------------+
| Property | Value |
+--------------------------------------+-----------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | - |
| OS-EXT-SRV-ATTR:hypervisor_hostname | - |
| OS-EXT-SRV-ATTR:instance_name | instance-00000001 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | - |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | iQcZbkdegf6q |
| config_drive | |
| created | 2014-12-10T20:04:06Z |
| flavor | m1.tiny (1) |
| hostId | |
| id | 6d2256d3-d327-40c4-87c4-3eccd23fe069 |
| image | cirros (d4d6a92b-9f7a-49f8-8d8c-0174b0657978) |
| key_name | - |
| metadata | {} |
| name | test |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | a87a852e97d74bc8a10e11e4b592cf4b |
| updated | 2014-12-10T20:04:06Z |
| user_id | 9c13d77ddd4f40dfb1f0d166ba9d2357 |
+--------------------------------------+-----------------------------------------------+
root@controller:~# nova list
+--------------------------------------+------+--------+------------+-------------+----------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+----------------------+
| 6d2256d3-d327-40c4-87c4-3eccd23fe069 | test | ACTIVE | - | Running | public=192.168.100.2 |
+--------------------------------------+------+--------+------------+-------------+----------------------+
root@controller:~# ssh cirros@192.168.100.2
The authenticity of host '192.168.100.2 (192.168.100.2)' can't be established.
RSA key fingerprint is 4a:07:7a:a7:65:b0:36:9c:8c:ed:99:a3:9d:e4:ce:e1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.100.2' (RSA) to the list of known hosts.
cirros@192.168.100.2's password:
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment