'no route to host' trying to ssh to new instance.
Hi,
I'm working my way through the openstack cloud computing cookbook and setting up an openstack environm,ent in virtualbox with ubuntu.
everything went fine up until it came to starting an ubuntu cloud image instance and connecting to it.
Everything appears ok;
openstack1:~/openstack$ nova image-list
+--------------------------------------+-----------------------------------------------------+--------+--------+
| ID | Name | Status | Server |
+--------------------------------------+-----------------------------------------------------+--------+--------+
| d68ac93c-7a5c-497b-bc6e-58183cf9167a | images/precise-server-cloudimg-i386-vmlinuz-virtual | ACTIVE | |
| 45ec8f6f-fe7d-4f9a-a437-1bb6aa285dc9 | images/precise-server-cloudimg-i386.img | ACTIVE | |
+--------------------------------------+-----------------------------------------------------+--------+--------+
openstack1:~/openstack$ nova boot myInstance --image 45ec8f6f-fe7d-4f9a-a437-1bb6aa285dc9 --flavor 2 --key_name openstack
+-------------------------------------+-----------------------------------------+
| Property | Value |
+-------------------------------------+-----------------------------------------+
| status | BUILD |
| updated | 2013-07-19T20:14:20Z |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-SRV-ATTR:host | None |
| key_name | openstack |
| image | images/precise-server-cloudimg-i386.img |
| hostId | |
| OS-EXT-STS:vm_state | building |
| OS-EXT-SRV-ATTR:instance_name | instance-00000008 |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None |
| flavor | m1.small |
| id | d6d3a7dd-e39b-4e39-94ff-14b5519649fc |
| user_id | openstack |
| name | myInstance |
| adminPass | 5U8YRNAFbk7v |
| tenant_id | cookbook |
| created | 2013-07-19T20:14:20Z |
| OS-DCF:diskConfig | MANUAL |
| accessIPv4 | |
| accessIPv6 | |
| progress | 0 |
| OS-EXT-STS:power_state | 0 |
| metadata | {} |
| config_drive | |
+-------------------------------------+-----------------------------------------+
after a short wait I can see
openstack1:~/openstack$ nova list
+--------------------------------------+------------+--------+----------------------------+
| ID | Name | Status | Networks |
+--------------------------------------+------------+--------+----------------------------+
| d6d3a7dd-e39b-4e39-94ff-14b5519649fc | myInstance | ACTIVE | vmnet=10.0.0.4, 172.16.1.1 |
+--------------------------------------+------------+--------+----------------------------+
However; I also get this error on the console;
block nbd15: Receive control failed (result -32)
and when attempting to SSH I get
openstack1:~/openstack$ ssh -i openstack.pem <a href="mailto:ubuntu@172.16.1.1">ubuntu@172.16.1.1</a>
ssh: connect to host 172.16.1.1 port 22: No route to host
I've been through all the cookbook steps up until this point several times, and am as sure as I can be that everything has been done correctly...
any assistance in troubleshooting this would be much appreciated!
edit: after a short while I have noticed the instance goes to SHUTOFF state, does this imply it has shut itself down for some reason?
openstack1:/var/log/libvirt/qemu$ nova list
+--------------------------------------+------------+---------+----------------------------+
| ID | Name | Status | Networks |
+--------------------------------------+------------+---------+----------------------------+
| 9fed4c54-a48b-4a21-b6c2-c73d74ad8254 | myInstance | SHUTOFF | vmnet=10.0.0.3, 172.16.1.1 |
+--------------------------------------+------------+---------+----------------------------+
I also see this in the libvirt log for the image
2013-07-19 20:30:03.832+0000: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-system-x86_64 -S -M pc-1.0 -no-kvm -m 2048 -smp 1,sockets=1,cores=1,threads=1 -name instance-00000009 -uuid 9fed4c54-a48b-4a21-b6c2-c73d74ad8254 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-00000009.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -kernel /var/lib/nova/instances/instance-00000009/kernel -append root=/dev/vda console=ttyS0 -drive file=/var/lib/nova/instances/instance-00000009/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 -drive file=/var/lib/nova/instances/instance-00000009/disk.local,if=none,id=drive-virtio-disk1,format=qcow2,cache=none -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 -netdev tap,fd=19,id=hostnet0,vhost=on,vhostfd=20 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=fa:16:3e:38:8c:68,bus=pci.0,addr=0x3 -chardev file,id=charserial0,path=/var/lib/nova/instances/instance-00000009/console.log -device isa-serial,chardev=charserial0,id=serial0 -chardev pty ...