Unable to access the nova instace
Hello,
stack@localhost:~/devstack$ nova list
+--------------------------------------+-------+--------+------------+-------------+------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-------+--------+------------+-------------+------------------------------+
| ce3d0e66-0858-4156-98ed-25f3bc7ace29 | myvm1 | ACTIVE | - | Running | private=10.0.0.2, 172.24.4.1 |
+--------------------------------------+-------+--------+------------+-------------+------------------------------+
I got it after following the steps:
nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0
nova secgroup-add-rule default tcp 22 22 0.0.0.0/0
nova list
nova show myvm1
nova floating-ip-create public
nova add-floating-ip ce3d0e66-0858-4156-98ed-25f3bc7ace29 172.24.4.1
Now I can able to ping it:
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.465 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.440 ms
^C
--- 10.0.0.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.440/0.452/0.465/0.024 ms
stack@localhost:~/devstack$ ping 172.24.4.1
PING 172.24.4.1 (172.24.4.1) 56(84) bytes of data.
64 bytes from 172.24.4.1: icmp_seq=1 ttl=64 time=0.401 ms
64 bytes from 172.24.4.1: icmp_seq=2 ttl=64 time=0.421 ms
^C
However when I am trying to login through ssh, it is failing:
stack@localhost:~/devstack$ ssh stack@10.0.0.2
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
stack@localhost:~/devstack$ ssh root@10.0.0.2
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
stack@localhost:~/devstack$ ssh admin@10.0.0.2
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Did I missed anything silly?
Essentially I have a cinder volume attached to the nova instance:
stack@localhost:~/devstack$ cinder list
+--------------------------------------+-----------+-----------+------+-------------+----------+--------------------------------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+-----------+------+-------------+----------+--------------------------------------+
| b006133e-eb17-49ce-a30b-3d32bb40d909 | in-use | vol_nfs | 1 | nfs | false | ce3d0e66-0858-4156-98ed-25f3bc7ace29 |
+--------------------------------------+-----------+-----------+------+-------------+----------+--------------------------------------+
I want to access the /dev/vdb of the myvm1.
Thanks, Pradip