← Back to team overview

openstack team mailing list archive

Test cirros image is active but not reachable - no route to host

 

Hello,

I installed devstack on my Ubuntu 12.04 LTS (32-bits), hypervisor is kvm.
Though the op system is 32 bits, the machine can support 64-bits op systems:

$ cat /proc/cpuinfo | more

vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz

$ cat /proc/cpuinfo | grep vmx
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm
constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni
pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid
sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida
arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid



I booted cirrus test image and after building it became ACTIVE but I could
not connect to it via ssh and it did not respond to ping, though both ping
(ICMP) and ssh are enabled in the security group.


$ nova image-list
+--------------------------------------+---------------------------------+--------+--------+
| ID                                   | Name                            |
Status | Server |
+--------------------------------------+---------------------------------+--------+--------+
| 7f4001fd-292f-49a8-9597-d0e035601817 | U10-i386-cfntools               |
ACTIVE |        |
| 6a7cc728-ed76-449f-8c6b-3e10d2258546 | cirros-0.3.0-x86_64-uec         |
ACTIVE |        |
| 3d702f0a-6c28-4356-a686-e0675bee32ef | cirros-0.3.0-x86_64-uec-kernel  |
ACTIVE |        |
| cfc6dd08-5e2d-4e1d-92b4-3f0824483850 | cirros-0.3.0-x86_64-uec-ramdisk |
ACTIVE |        |
+--------------------------------------+---------------------------------+--------+--------+


$ nova boot --image 6a7cc728-ed76-449f-8c6b-3e10d2258546 --flavor 1
--key_name mykeypair --security_groups openpub testcirrus
+-------------------------------------+--------------------------------------+
| Property                            | Value
 |
+-------------------------------------+--------------------------------------+
| OS-DCF:diskConfig                   | MANUAL
  |
| OS-EXT-SRV-ATTR:host                | None
  |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None
  |
| OS-EXT-SRV-ATTR:instance_name       | instance-00000015
 |
| OS-EXT-STS:power_state              | 0
 |
| OS-EXT-STS:task_state               | scheduling
  |
| OS-EXT-STS:vm_state                 | building
  |
| accessIPv4                          |
 |
| accessIPv6                          |
 |
| adminPass                           | 5qHQ8Bidmycb
  |
| config_drive                        |
 |
| created                             | 2012-12-09T21:32:03Z
  |
| flavor                              | m1.tiny
 |
| hostId                              |
 |
| id                                  |
b98a3687-d513-4db3-ba76-dd7f323ee07e |
| image                               | cirros-0.3.0-x86_64-uec
 |
| key_name                            | mykeypair
 |
| metadata                            | {}
  |
| name                                | testcirrus
  |
| progress                            | 0
 |
| security_groups                     | [{u'name': u'openpub'}]
 |
| status                              | BUILD
 |
| tenant_id                           | 18319a1a1a49414684057e4224a13c77
  |
| updated                             | 2012-12-09T21:32:03Z
  |
| user_id                             | fc12cf51a7774b3c8851575d7ac2ce0e
  |
+-------------------------------------+--------------------------------------+


$ nova list
+--------------------------------------+------------+--------+------------------+
| ID                                   | Name       | Status | Networks
    |
+--------------------------------------+------------+--------+------------------+
| b98a3687-d513-4db3-ba76-dd7f323ee07e | testcirrus | ACTIVE |
private=10.0.0.2 |
+--------------------------------------+------------+--------+------------------+
istvan@istvan-pc:~/openstack/devstack$ ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
>From 10.0.0.1 icmp_seq=1 Destination Host Unreachable
>From 10.0.0.1 icmp_seq=2 Destination Host Unreachable
>From 10.0.0.1 icmp_seq=3 Destination Host Unreachable
^C
--- 10.0.0.2 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4023ms
pipe 3
istvan@istvan-pc:~/openstack/devstack$ ssh -i mykeypair.pem -l root 10.0.0.2
ssh: connect to host 10.0.0.2 port 22: No route to host

$ nova secgroup-list-rules openpub
+-------------+-----------+---------+-----------+--------------+
| IP Protocol | From Port | To Port | IP Range  | Source Group |
+-------------+-----------+---------+-----------+--------------+
| icmp        | -1        | -1      | 0.0.0.0/0 |              |
| tcp         | 22        | 22      | 0.0.0.0/0 |              |
+-------------+-----------+---------+-----------+--------------+


The libvirt.xml file looks like this:


$ more libvirt.xml
<domain type="kvm">
  <uuid>b98a3687-d513-4db3-ba76-dd7f323ee07e</uuid>
  <name>instance-00000015</name>
  <memory>524288</memory>
  <vcpu>1</vcpu>
  <os>
    <type>hvm</type>
    <kernel>/opt/stack/data/nova/instances/instance-00000015/kernel</kernel>

<initrd>/opt/stack/data/nova/instances/instance-00000015/ramdisk</initrd>
    <cmdline>root=/dev/vda console=ttyS0</cmdline>
  </os>
  <features>
    <acpi/>
  </features>
  <clock offset="utc">
    <timer name="pit" tickpolicy="delay"/>
    <timer name="rtc" tickpolicy="catchup"/>
  </clock>
  <devices>
    <disk type="file" device="disk">
      <driver name="qemu" type="qcow2" cache="none"/>
      <source file="/opt/stack/data/nova/instances/instance-00000015/disk"/>
      <target bus="virtio" dev="vda"/>
    </disk>
    <interface type="bridge">
      <mac address="fa:16:3e:ef:b9:00"/>
      <source bridge="br100"/>
      <filterref filter="nova-instance-instance-00000015-fa163eefb900">
        <parameter name="IP" value="10.0.0.2"/>
        <parameter name="DHCPSERVER" value="10.0.0.1"/>
        <parameter name="PROJNET" value="10.0.0.0"/>
        <parameter name="PROJMASK" value="255.255.255.0"/>
      </filterref>
    </interface>
    <serial type="file">
      <source
path="/opt/stack/data/nova/instances/instance-00000015/console.log"/>
    </serial>
    <serial type="pty"/>
    <input type="tablet" bus="usb"/>
    <graphics type="vnc" autoport="yes" keymap="en-us" listen="127.0.0.1"/>
  </devices>
</domain>




If I boot an  Ubuntu 10, 32-bits image that I created myself from Ubuntu 10
ISO image using heat-jeos, that boots up and works fine, I can login using
ssh.

Could you advice me what can be wrong?


Thanks a lot,
Istvan


-- 
=======================================================================================
Personally, I don't think there's intelligent life on other planets. Why
should other planets be any different from this one?

Bob Monkhouse
=======================================================================================