Skip to content

Instantly share code, notes, and snippets.

@jjasghar

jjasghar/aoeu.sh Secret

Created November 12, 2014 23:58
Show Gist options
  • Save jjasghar/fe525c4c87ec87fbb02a to your computer and use it in GitHub Desktop.
Save jjasghar/fe525c4c87ec87fbb02a to your computer and use it in GitHub Desktop.
FUCK YES MAGIC
[root@controller ~]# nova hypervisor-servers controller
+--------------------------------------+-------------------+---------------+---------------------+
| ID | Name | Hypervisor ID | Hypervisor Hostname |
+--------------------------------------+-------------------+---------------+---------------------+
| 14627fd9-6a49-46b1-ace9-40cb5fe5fb02 | instance-00000003 | 1 | controller |
+--------------------------------------+-------------------+---------------+---------------------+
[root@controller ~]# nova hypervisor-servers compute1
+--------------------------------------+-------------------+---------------+---------------------+
| ID | Name | Hypervisor ID | Hypervisor Hostname |
+--------------------------------------+-------------------+---------------+---------------------+
| 28f665fe-5e80-47b3-8d85-d411814f7f2b | instance-00000001 | 2 | compute1 |
+--------------------------------------+-------------------+---------------+---------------------+
[root@controller ~]# nova hypervisor-servers compute2
+--------------------------------------+-------------------+---------------+---------------------+
| ID | Name | Hypervisor ID | Hypervisor Hostname |
+--------------------------------------+-------------------+---------------+---------------------+
| 8300d80a-768a-49d5-a5f1-ef22df169665 | instance-00000002 | 3 | compute2 |
+--------------------------------------+-------------------+---------------+---------------------+
[root@controller ~]# nova list
+--------------------------------------+----------+--------+------------+-------------+----------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+----------+--------+------------+-------------+----------------------+
| 28f665fe-5e80-47b3-8d85-d411814f7f2b | test | ACTIVE | - | Running | public=192.168.100.2 |
| 8300d80a-768a-49d5-a5f1-ef22df169665 | test2..5 | ACTIVE | - | Running | public=192.168.100.4 |
| 14627fd9-6a49-46b1-ace9-40cb5fe5fb02 | test3 | ACTIVE | - | Running | public=192.168.100.6 |
+--------------------------------------+----------+--------+------------+-------------+----------------------+
[root@controller ~]# ssh cirros@192.168.100.6
The authenticity of host '192.168.100.6 (192.168.100.6)' can't be established.
RSA key fingerprint is 7d:0f:67:53:41:8f:05:15:88:57:a1:84:e0:02:6d:2d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.100.6' (RSA) to the list of known hosts.
cirros@192.168.100.6's password:
$ ping google.com
PING google.com (173.194.115.5): 56 data bytes
64 bytes from 173.194.115.5: seq=0 ttl=61 time=24.884 ms
64 bytes from 173.194.115.5: seq=1 ttl=61 time=26.321 ms
64 bytes from 173.194.115.5: seq=2 ttl=61 time=20.416 ms
64 bytes from 173.194.115.5: seq=3 ttl=61 time=18.106 ms
64 bytes from 173.194.115.5: seq=4 ttl=61 time=21.089 ms
64 bytes from 173.194.115.5: seq=5 ttl=61 time=17.508 ms
^C
--- google.com ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 17.508/21.387/26.321 ms
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment