Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I installed successfully and created a new instance, but the same issue happened again that I couldn't console into the new instance. I tried openstack console log show test and found out the ether interface didn't have an IPv4 address at all. It seems like there was only a public address for it which is "10.0.2.227" but no private address provided for this instance. Is there anything wrong with the configuration?

I installed successfully and created a new instance, but the same issue happened again that I couldn't console into the new instance. I tried openstack console log show test and found out the ether interface didn't have an IPv4 address at all. It seems like there was only a public address for it which is "10.0.2.227" but no private address provided for this instance. Is there anything wrong with the configuration?

Four agent services are running as shown by neutron agent-list, which are Open vSwitch agent, Metadata agent, HCP agent, and L3 agent.

Four compute services are running as shown by openstack compute service list, which are nova-conductor, nova-scheduler, nova-consoleauth, and nova-compute.

I installed successfully and created a new instance, but the same issue happened again that I couldn't console into the new instance. I tried openstack console log show test and found out the ether eth0 interface didn't have an IPv4 address at all. It seems like there was only a public address for it which is "10.0.2.227" but no private address provided for this instance. Is there anything wrong with the configuration?

Four agent services are running as shown by neutron agent-list, which are Open vSwitch agent, Metadata agent, HCP agent, and L3 agent.

Four compute services are running as shown by openstack compute service list, which are nova-conductor, nova-scheduler, nova-consoleauth, and nova-compute.

I installed successfully and created a new instance, but the same issue happened again that I couldn't console into the new instance. I tried openstack console log show test and found out the eth0 interface didn't have an IPv4 address at all. It seems like there was only a public address for it which is "10.0.2.227" but no private address provided for this instance. Is there anything wrong with the configuration?

Four agent services are running as shown by neutron agent-list, which are Open vSwitch agent, Metadata agent, HCP agent, and L3 agent.

Four compute services are running as shown by openstack compute service list, which are nova-conductor, nova-scheduler, nova-consoleauth, and nova-compute.


The public ip address is shown by openstack server list under column Networks, info is public=10.0.2.228, 2001:db8::4(I deleted the previous instance and created a new one so the address changed from 227 to 228).

The local.conf file is like:

PUBLIC_INTERFACE=eth1 (which is the host-only adapter I added from virtual box and has no ip address according to `ifconfig`)
FLOATING_RANGE=10.0.2.225/27 (based on the NAT adapter interface eth0, ip address `10.0.2.15`)
PUBLIC_NETWORK_GATEWAY=10.0.2.226
FIXED_RANGE=10.0.0.0/24
NETWORK_GATEWAY=10.0.0.1
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0 (the NAT adaptor interface)

The result of ip a is:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:7e:78:bd brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe7e:78bd/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:56:00:f5 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::a00:27ff:fe56:f5/64 scope link 
       valid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether da:35:56:c6:7f:01 brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
5: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1
    link/ether 6e:26:f5:14:fb:90 brd ff:ff:ff:ff:ff:ff
13: br-int: <BROADCAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN group default qlen 1
    link/ether 3a:8a:d3:c9:69:4c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::94c6:69ff:fe76:2d2f/64 scope link 
       valid_lft forever preferred_lft forever
14: br-ex: <BROADCAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1
    link/ether 42:dc:33:de:7d:4d brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.226/27 scope global br-ex
       valid_lft forever preferred_lft forever
    inet6 2001:db8::2/64 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::4471:d7ff:fee0:3390/64 scope link 
       valid_lft forever preferred_lft forever
15: br-tun: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1
    link/ether 4a:01:83:7a:8f:4c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f8ea:e4ff:fedf:da6d/64 scope link 
       valid_lft forever preferred_lft forever
24: qbrbb820157-e9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000
    link/ether fa:fa:97:4e:73:23 brd ff:ff:ff:ff:ff:ff
25: qvobb820157-e9@qvbbb820157-e9: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master ovs-system state UP group default qlen 1000
    link/ether 52:a1:46:70:5d:d8 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::50a1:46ff:fe70:5dd8/64 scope link 
       valid_lft forever preferred_lft forever
26: qvbbb820157-e9@qvobb820157-e9: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master qbrbb820157-e9 state UP group default qlen 1000
    link/ether fa:fa:97:4e:73:23 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f8fa:97ff:fe4e:7323/64 scope link 
       valid_lft forever preferred_lft forever
27: tapbb820157-e9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc pfifo_fast master qbrbb820157-e9 state UNKNOWN group default qlen 1000
    link/ether fe:16:3e:6c:67:7c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc16:3eff:fe6c:677c/64 scope link 
       valid_lft forever preferred_lft forever

I installed successfully and created a new instance, but the same issue happened again that I couldn't console into the new instance. I tried openstack console log show test and found out the eth0 interface didn't have an IPv4 address at all. It seems like there was only a public address for it which is "10.0.2.227" but no private address provided for this instance. Is there anything wrong with the configuration?

Four agent services are running as shown by neutron agent-list, which are Open vSwitch agent, Metadata agent, HCP agent, and L3 agent.

Four compute services are running as shown by openstack compute service list, which are nova-conductor, nova-scheduler, nova-consoleauth, and nova-compute.


The public ip address is shown by openstack server list under column Networks, info is public=10.0.2.228, 2001:db8::4(I deleted the previous instance and created a new one so the address changed from 227 to 228).

The local.conf file is like:

PUBLIC_INTERFACE=eth1 (which is the host-only adapter I added from virtual box and has no ip address according to `ifconfig`)
FLOATING_RANGE=10.0.2.225/27 (based on the NAT adapter interface eth0, ip address `10.0.2.15`)
PUBLIC_NETWORK_GATEWAY=10.0.2.226
FIXED_RANGE=10.0.0.0/24
NETWORK_GATEWAY=10.0.0.1
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0 (the NAT adaptor interface)
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta

The result of ip a is:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:7e:78:bd brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe7e:78bd/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:56:00:f5 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::a00:27ff:fe56:f5/64 scope link 
       valid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether da:35:56:c6:7f:01 brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
5: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1
    link/ether 6e:26:f5:14:fb:90 brd ff:ff:ff:ff:ff:ff
13: br-int: <BROADCAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN group default qlen 1
    link/ether 3a:8a:d3:c9:69:4c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::94c6:69ff:fe76:2d2f/64 scope link 
       valid_lft forever preferred_lft forever
14: br-ex: <BROADCAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1
    link/ether 42:dc:33:de:7d:4d brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.226/27 scope global br-ex
       valid_lft forever preferred_lft forever
    inet6 2001:db8::2/64 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::4471:d7ff:fee0:3390/64 scope link 
       valid_lft forever preferred_lft forever
15: br-tun: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1
    link/ether 4a:01:83:7a:8f:4c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f8ea:e4ff:fedf:da6d/64 scope link 
       valid_lft forever preferred_lft forever
24: qbrbb820157-e9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000
    link/ether fa:fa:97:4e:73:23 brd ff:ff:ff:ff:ff:ff
25: qvobb820157-e9@qvbbb820157-e9: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master ovs-system state UP group default qlen 1000
    link/ether 52:a1:46:70:5d:d8 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::50a1:46ff:fe70:5dd8/64 scope link 
       valid_lft forever preferred_lft forever
26: qvbbb820157-e9@qvobb820157-e9: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master qbrbb820157-e9 state UP group default qlen 1000
    link/ether fa:fa:97:4e:73:23 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f8fa:97ff:fe4e:7323/64 scope link 
       valid_lft forever preferred_lft forever
27: tapbb820157-e9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc pfifo_fast master qbrbb820157-e9 state UNKNOWN group default qlen 1000
    link/ether fe:16:3e:6c:67:7c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc16:3eff:fe6c:677c/64 scope link 
       valid_lft forever preferred_lft forever

I installed successfully and created a new instance, but the same issue happened again that I couldn't console into the new instance. I tried openstack console log show test and found out the eth0 interface didn't have an IPv4 address at all. It seems like there was only a public address for it which is "10.0.2.227" but no private address provided for this instance. Is there anything wrong with the configuration?

Four agent services are running as shown by neutron agent-list, which are Open vSwitch agent, Metadata agent, HCP agent, and L3 agent.

Four compute services are running as shown by openstack compute service list, which are nova-conductor, nova-scheduler, nova-consoleauth, and nova-compute.


The public ip address is shown by openstack server list under column Networks, info is public=10.0.2.228, 2001:db8::4(I deleted the previous instance and created a new one so the address changed from 227 to 228).

The local.conf file is like:

PUBLIC_INTERFACE=eth1 (which is the host-only adapter I added from virtual box and has no ip address according to `ifconfig`)
FLOATING_RANGE=10.0.2.225/27 (based on the NAT adapter interface eth0, ip address `10.0.2.15`)
PUBLIC_NETWORK_GATEWAY=10.0.2.226
FIXED_RANGE=10.0.0.0/24
NETWORK_GATEWAY=10.0.0.1
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0 (the NAT adaptor interface)
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta

The result of ip a is:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:7e:78:bd brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe7e:78bd/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:56:00:f5 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::a00:27ff:fe56:f5/64 scope link 
       valid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether da:35:56:c6:7f:01 brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
5: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1
    link/ether 6e:26:f5:14:fb:90 brd ff:ff:ff:ff:ff:ff
13: br-int: <BROADCAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN group default qlen 1
    link/ether 3a:8a:d3:c9:69:4c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::94c6:69ff:fe76:2d2f/64 scope link 
       valid_lft forever preferred_lft forever
14: br-ex: <BROADCAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1
    link/ether 42:dc:33:de:7d:4d brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.226/27 scope global br-ex
       valid_lft forever preferred_lft forever
    inet6 2001:db8::2/64 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::4471:d7ff:fee0:3390/64 scope link 
       valid_lft forever preferred_lft forever
15: br-tun: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1
    link/ether 4a:01:83:7a:8f:4c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f8ea:e4ff:fedf:da6d/64 scope link 
       valid_lft forever preferred_lft forever
24: qbrbb820157-e9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000
    link/ether fa:fa:97:4e:73:23 brd ff:ff:ff:ff:ff:ff
25: qvobb820157-e9@qvbbb820157-e9: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master ovs-system state UP group default qlen 1000
    link/ether 52:a1:46:70:5d:d8 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::50a1:46ff:fe70:5dd8/64 scope link 
       valid_lft forever preferred_lft forever
26: qvbbb820157-e9@qvobb820157-e9: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master qbrbb820157-e9 state UP group default qlen 1000
    link/ether fa:fa:97:4e:73:23 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f8fa:97ff:fe4e:7323/64 scope link 
       valid_lft forever preferred_lft forever
27: tapbb820157-e9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc pfifo_fast master qbrbb820157-e9 state UNKNOWN group default qlen 1000
    link/ether fe:16:3e:6c:67:7c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc16:3eff:fe6c:677c/64 scope link 
       valid_lft forever preferred_lft preferred_ft forever

Network part of the result given by openstack console log show INSTANCE is:

Starting network...
udhcpc (v1.20.1) started
Sending discover...
Sending discover...
Sending discover...
Usage: /sbin/cirros-dhcpc <up|down>
No lease, failing
WARN: /etc/rc3.d/S40-network failed
Starting dropbear sshd: generating rsa key... generating dsa key... OK
no userdata for datasource
=== system information ===
Platform: OpenStack Foundation OpenStack Nova
Container: none
Arch: x86_64
CPU(s): 1 @ 2699.942 MHz
Cores/Sockets/Threads: 1/1/1
Virt-type: AMD-V
RAM Size: 491MB
Disks:
NAME MAJ:MIN       SIZE LABEL         MOUNTPOINT
vda  253:0   1073741824 cirros-rootfs /
sr0   11:0       432128 config-2      
=== sshd host keys ===
-----BEGIN SSH HOST KEY KEYS-----
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgm8Me7pA/fZdSsYszUPXKfzFtKFIyZK4g5SL0IDbB9gXu0FwAC6qAArkgyVQAgGIK0sBGqJfHbdjxGU9e2x3aj9mdqTJnkHsVD3JKKp/i78FAd8l+5hbXsBWvekAcGg7QVGRy2ryDD7eAJwjSBM7kYUHICxbMRTNaPGDBULNbGA08J8= root@test
ssh-dss AAAAB3NzaC1kc3MAAACBAPkaf93egWp+bhBDHO68NOR4Lx8kv0+m5N9Ht0thinDYuUD66M9ho3RBZAvib+0pmRf/tfljvsvEAL6h8HcFeWHNWVT/JcXIvh9W5MFgu7F7AfvD3X0qeyfQrtozPO9Ku0LFNsDBKgnS1oRsOXbPYxbgt4zVFSskZHkoFn1Jd7HhAAAAFQCXOwr/4wOxDzsZxL6YYW8MFsBCXwAAAIBocnVPv1GBQX4S0oRJUtwFHBf07M4KEseoNfFETl/K9r4ZZxZe5A5Dpx8HmXHmgwokq/1xDHDCM6/AJKdBLy3zK7iBOU0vW5KYAXYntTAFYTh3wAZkxh9xpREiHiRe34vCmAQX/dFf73uuaGKbtWttiRejPgIHkEOXTKm9FUWujQAAAIEAqY1Izm7TPtdLRsubevLRspeq5ucIjit6aCnyrF1iDgxrqCRHYRxlYLk+BO15qMLDMHOSD1cO20CXJAq7PYxVgmkXpBUyMyeN8jWLlVTSbwDLfob2Jc/vmeFopGQ24vzaCfyv5ZILwHy05VDLr9+Fso48D4+N64wtWobLtBmak2Q= root@test
-----END SSH HOST KEY KEYS-----
=== network info ===
if-info: lo,up,127.0.0.1,8,::1
if-info: eth0,up,,8,fe80::f816:3eff:fe6c:677c
=== datasource: configdrive local ===
instance-id: ea058b26-99d2-4d3e-b26b-87360a482f94
name: test
availability-zone: nova
local-hostname: test.novalocal
launch-index: 0
=== cirros: current=0.3.4 uptime=210.87 ===
route: fscanf
=== pinging gateway failed, debugging connection ===
############ debug start ##############
### /etc/init.d/sshd start
Starting dropbear sshd: OK
route: fscanf
### ifconfig -a
eth0      Link encap:Ethernet  HWaddr FA:16:3E:6C:67:7C  
          inet6 addr: fe80::f816:3eff:fe6c:677c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:23 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4485 (4.3 KiB)  TX bytes:1128 (1.1 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1020 (1020.0 B)  TX bytes:1020 (1020.0 B)

### route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
route: fscanf
### cat /etc/resolv.conf
cat: can't open '/etc/resolv.conf': No such file or directory
### gateway not found
/sbin/cirros-status: line 1: can't open /etc/resolv.conf: no such file
### pinging nameservers
### uname -a
Linux test 3.2.0-80-virtual #116-Ubuntu SMP Mon Mar 23 17:28:52 UTC 2015 x86_64 GNU/Linux
### lsmod
Module                  Size  Used by    Not tainted
nls_iso8859_1          12713  0 
nls_cp437              16991  0 
vfat                   17585  0 
fat                    61512  1 vfat
isofs                  40259  0 
ip_tables              27473  0 
x_tables               29891  1 ip_tables
pcnet32                42119  0 
8139cp                 27360  0 
ne2k_pci               13691  0 
8390                   18856  1 ne2k_pci
e1000                 108589  0 
acpiphp                24231  0 
### dmesg | tail
[    6.130223] EXT3-fs (vda): mounted filesystem with ordered data mode
[    6.406571] ISO 9660 Extensions: Microsoft Joliet Level 3
[    6.581091] ISO 9660 Extensions: RRIP_1991A
[    6.995448] kjournald starting.  Commit interval 5 seconds
[    7.008978] EXT3-fs (vda): using internal journal
[    7.009040] EXT3-fs (vda): mounted filesystem with ordered data mode
[   14.157241] EXT3-fs (vda): using internal journal
[   19.611306] ISO 9660 Extensions: Microsoft Joliet Level 3
[   19.860618] ISO 9660 Extensions: RRIP_1991A
[   37.202326] eth0: no IPv6 routers present
### tail -n 25 /var/log/messages
May 26 11:56:55 cirros kern.info kernel: [    5.299185] acpiphp: Slot [24] registered
May 26 11:56:55 cirros kern.info kernel: [    5.299338] acpiphp: Slot [25] registered
May 26 11:56:55 cirros kern.info kernel: [    5.299485] acpiphp: Slot [26] registered
May 26 11:56:55 cirros kern.info kernel: [    5.299650] acpiphp: Slot [27] registered
May 26 11:56:55 cirros kern.info kernel: [    5.299804] acpiphp: Slot [28] registered
May 26 11:56:55 cirros kern.info kernel: [    5.302207] acpiphp: Slot [29] registered
May 26 11:56:55 cirros kern.info kernel: [    5.302905] acpiphp: Slot [30] registered
May 26 11:56:55 cirros kern.info kernel: [    5.303453] acpiphp: Slot [31] registered
May 26 11:56:55 cirros kern.info kernel: [    5.364832] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
May 26 11:56:55 cirros kern.info kernel: [    5.364832] e1000: Copyright (c) 1999-2006 Intel Corporation.
May 26 11:56:55 cirros kern.info kernel: [    5.451716] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
May 26 11:56:55 cirros kern.info kernel: [    5.544660] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
May 26 11:56:55 cirros kern.info kernel: [    5.642896] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de
May 26 11:56:55 cirros kern.info kernel: [    5.779717] ip_tables: (C) 2000-2006 Netfilter Core Team
May 26 11:56:55 cirros kern.info kernel: [    6.129143] kjournald starting.  Commit interval 5 seconds
May 26 11:56:55 cirros kern.info kernel: [    6.130223] EXT3-fs (vda): mounted filesystem with ordered data mode
May 26 11:56:55 cirros kern.debug kernel: [    6.406571] ISO 9660 Extensions: Microsoft Joliet Level 3
May 26 11:56:55 cirros kern.debug kernel: [    6.581091] ISO 9660 Extensions: RRIP_1991A
May 26 11:56:55 cirros kern.info kernel: [    6.995448] kjournald starting.  Commit interval 5 seconds
May 26 11:56:55 cirros kern.info kernel: [    7.008978] EXT3-fs (vda): using internal journal
May 26 11:56:55 cirros kern.info kernel: [   14.157241] EXT3-fs (vda): using internal journal
May 26 11:56:58 cirros kern.debug kernel: [   19.611306] ISO 9660 Extensions: Microsoft Joliet Level 3
May 26 11:56:59 cirros kern.debug kernel: [   19.860618] ISO 9660 Extensions: RRIP_1991A
May 26 11:57:16 cirros kern.debug kernel: [   37.202326] eth0: no IPv6 routers present
May 26 12:00:08 cirros authpriv.info dropbear[260]: Running in background
############ debug end   ##############

I installed successfully and created a new instance, but the same issue happened again that I couldn't console into the new instance. I tried openstack console log show test and found out the eth0 interface didn't have an IPv4 address at all. It seems like there was only a public address for it which is "10.0.2.227" but no private address provided for this instance. Is there anything wrong with the configuration?

Four agent services are running as shown by neutron agent-list, which are Open vSwitch agent, Metadata agent, HCP agent, and L3 agent.

Four compute services are running as shown by openstack compute service list, which are nova-conductor, nova-scheduler, nova-consoleauth, and nova-compute.


The public ip address is shown by openstack server list under column Networks, info is public=10.0.2.228, 2001:db8::4(I deleted the previous instance and created a new one so the address changed from 227 to 228).

The local.conf file is like:

PUBLIC_INTERFACE=eth1 (which is the host-only adapter I added from virtual box and has no ip address according to `ifconfig`)
FLOATING_RANGE=10.0.2.225/27 (based on the NAT adapter interface eth0, ip address `10.0.2.15`)
PUBLIC_NETWORK_GATEWAY=10.0.2.226
FIXED_RANGE=10.0.0.0/24
NETWORK_GATEWAY=10.0.0.1
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0 (the NAT adaptor interface)
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta

The result of ip a is:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:7e:78:bd brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe7e:78bd/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:56:00:f5 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::a00:27ff:fe56:f5/64 scope link 
       valid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether da:35:56:c6:7f:01 brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
5: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1
    link/ether 6e:26:f5:14:fb:90 brd ff:ff:ff:ff:ff:ff
13: br-int: <BROADCAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN group default qlen 1
    link/ether 3a:8a:d3:c9:69:4c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::94c6:69ff:fe76:2d2f/64 scope link 
       valid_lft forever preferred_lft forever
14: br-ex: <BROADCAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1
    link/ether 42:dc:33:de:7d:4d brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.226/27 scope global br-ex
       valid_lft forever preferred_lft forever
    inet6 2001:db8::2/64 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::4471:d7ff:fee0:3390/64 scope link 
       valid_lft forever preferred_lft forever
15: br-tun: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1
    link/ether 4a:01:83:7a:8f:4c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f8ea:e4ff:fedf:da6d/64 scope link 
       valid_lft forever preferred_lft forever
24: qbrbb820157-e9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000
    link/ether fa:fa:97:4e:73:23 brd ff:ff:ff:ff:ff:ff
25: qvobb820157-e9@qvbbb820157-e9: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master ovs-system state UP group default qlen 1000
    link/ether 52:a1:46:70:5d:d8 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::50a1:46ff:fe70:5dd8/64 scope link 
       valid_lft forever preferred_lft forever
26: qvbbb820157-e9@qvobb820157-e9: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master qbrbb820157-e9 state UP group default qlen 1000
    link/ether fa:fa:97:4e:73:23 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f8fa:97ff:fe4e:7323/64 scope link 
       valid_lft forever preferred_lft forever
27: tapbb820157-e9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc pfifo_fast master qbrbb820157-e9 state UNKNOWN group default qlen 1000
    link/ether fe:16:3e:6c:67:7c brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc16:3eff:fe6c:677c/64 scope link 
       valid_lft forever preferred_ft forever

Network part of the result given by openstack console log show INSTANCE is:

Starting network...
udhcpc (v1.20.1) started
Sending discover...
Sending discover...
Sending discover...
Usage: /sbin/cirros-dhcpc <up|down>
No lease, failing
WARN: /etc/rc3.d/S40-network failed
Starting dropbear sshd: generating rsa key... generating dsa key... OK
no userdata for datasource
=== system information ===
Platform: OpenStack Foundation OpenStack Nova
Container: none
Arch: x86_64
CPU(s): 1 @ 2699.942 MHz
Cores/Sockets/Threads: 1/1/1
Virt-type: AMD-V
RAM Size: 491MB
Disks:
NAME MAJ:MIN       SIZE LABEL         MOUNTPOINT
vda  253:0   1073741824 cirros-rootfs /
sr0   11:0       432128 config-2      
=== sshd host keys ===
-----BEGIN SSH HOST KEY KEYS-----
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgm8Me7pA/fZdSsYszUPXKfzFtKFIyZK4g5SL0IDbB9gXu0FwAC6qAArkgyVQAgGIK0sBGqJfHbdjxGU9e2x3aj9mdqTJnkHsVD3JKKp/i78FAd8l+5hbXsBWvekAcGg7QVGRy2ryDD7eAJwjSBM7kYUHICxbMRTNaPGDBULNbGA08J8= root@test
ssh-dss AAAAB3NzaC1kc3MAAACBAPkaf93egWp+bhBDHO68NOR4Lx8kv0+m5N9Ht0thinDYuUD66M9ho3RBZAvib+0pmRf/tfljvsvEAL6h8HcFeWHNWVT/JcXIvh9W5MFgu7F7AfvD3X0qeyfQrtozPO9Ku0LFNsDBKgnS1oRsOXbPYxbgt4zVFSskZHkoFn1Jd7HhAAAAFQCXOwr/4wOxDzsZxL6YYW8MFsBCXwAAAIBocnVPv1GBQX4S0oRJUtwFHBf07M4KEseoNfFETl/K9r4ZZxZe5A5Dpx8HmXHmgwokq/1xDHDCM6/AJKdBLy3zK7iBOU0vW5KYAXYntTAFYTh3wAZkxh9xpREiHiRe34vCmAQX/dFf73uuaGKbtWttiRejPgIHkEOXTKm9FUWujQAAAIEAqY1Izm7TPtdLRsubevLRspeq5ucIjit6aCnyrF1iDgxrqCRHYRxlYLk+BO15qMLDMHOSD1cO20CXJAq7PYxVgmkXpBUyMyeN8jWLlVTSbwDLfob2Jc/vmeFopGQ24vzaCfyv5ZILwHy05VDLr9+Fso48D4+N64wtWobLtBmak2Q= root@test
-----END SSH HOST KEY KEYS-----
=== network info ===
if-info: lo,up,127.0.0.1,8,::1
if-info: eth0,up,,8,fe80::f816:3eff:fe6c:677c
=== datasource: configdrive local ===
instance-id: ea058b26-99d2-4d3e-b26b-87360a482f94
name: test
availability-zone: nova
local-hostname: test.novalocal
launch-index: 0
=== cirros: current=0.3.4 uptime=210.87 ===
route: fscanf
=== pinging gateway failed, debugging connection ===
############ debug start ##############
### /etc/init.d/sshd start
Starting dropbear sshd: OK
route: fscanf
### ifconfig -a
eth0      Link encap:Ethernet  HWaddr FA:16:3E:6C:67:7C  
          inet6 addr: fe80::f816:3eff:fe6c:677c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:23 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4485 (4.3 KiB)  TX bytes:1128 (1.1 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1020 (1020.0 B)  TX bytes:1020 (1020.0 B)

### route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
route: fscanf
### cat /etc/resolv.conf
cat: can't open '/etc/resolv.conf': No such file or directory
### gateway not found
/sbin/cirros-status: line 1: can't open /etc/resolv.conf: no such file
### pinging nameservers
### uname -a
Linux test 3.2.0-80-virtual #116-Ubuntu SMP Mon Mar 23 17:28:52 UTC 2015 x86_64 GNU/Linux
### lsmod
Module                  Size  Used by    Not tainted
nls_iso8859_1          12713  0 
nls_cp437              16991  0 
vfat                   17585  0 
fat                    61512  1 vfat
isofs                  40259  0 
ip_tables              27473  0 
x_tables               29891  1 ip_tables
pcnet32                42119  0 
8139cp                 27360  0 
ne2k_pci               13691  0 
8390                   18856  1 ne2k_pci
e1000                 108589  0 
acpiphp                24231  0 
### dmesg | tail
[    6.130223] EXT3-fs (vda): mounted filesystem with ordered data mode
[    6.406571] ISO 9660 Extensions: Microsoft Joliet Level 3
[    6.581091] ISO 9660 Extensions: RRIP_1991A
[    6.995448] kjournald starting.  Commit interval 5 seconds
[    7.008978] EXT3-fs (vda): using internal journal
[    7.009040] EXT3-fs (vda): mounted filesystem with ordered data mode
[   14.157241] EXT3-fs (vda): using internal journal
[   19.611306] ISO 9660 Extensions: Microsoft Joliet Level 3
[   19.860618] ISO 9660 Extensions: RRIP_1991A
[   37.202326] eth0: no IPv6 routers present
### tail -n 25 /var/log/messages
May 26 11:56:55 cirros kern.info kernel: [    5.299185] acpiphp: Slot [24] registered
May 26 11:56:55 cirros kern.info kernel: [    5.299338] acpiphp: Slot [25] registered
May 26 11:56:55 cirros kern.info kernel: [    5.299485] acpiphp: Slot [26] registered
May 26 11:56:55 cirros kern.info kernel: [    5.299650] acpiphp: Slot [27] registered
May 26 11:56:55 cirros kern.info kernel: [    5.299804] acpiphp: Slot [28] registered
May 26 11:56:55 cirros kern.info kernel: [    5.302207] acpiphp: Slot [29] registered
May 26 11:56:55 cirros kern.info kernel: [    5.302905] acpiphp: Slot [30] registered
May 26 11:56:55 cirros kern.info kernel: [    5.303453] acpiphp: Slot [31] registered
May 26 11:56:55 cirros kern.info kernel: [    5.364832] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
May 26 11:56:55 cirros kern.info kernel: [    5.364832] e1000: Copyright (c) 1999-2006 Intel Corporation.
May 26 11:56:55 cirros kern.info kernel: [    5.451716] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
May 26 11:56:55 cirros kern.info kernel: [    5.544660] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
May 26 11:56:55 cirros kern.info kernel: [    5.642896] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de
May 26 11:56:55 cirros kern.info kernel: [    5.779717] ip_tables: (C) 2000-2006 Netfilter Core Team
May 26 11:56:55 cirros kern.info kernel: [    6.129143] kjournald starting.  Commit interval 5 seconds
May 26 11:56:55 cirros kern.info kernel: [    6.130223] EXT3-fs (vda): mounted filesystem with ordered data mode
May 26 11:56:55 cirros kern.debug kernel: [    6.406571] ISO 9660 Extensions: Microsoft Joliet Level 3
May 26 11:56:55 cirros kern.debug kernel: [    6.581091] ISO 9660 Extensions: RRIP_1991A
May 26 11:56:55 cirros kern.info kernel: [    6.995448] kjournald starting.  Commit interval 5 seconds
May 26 11:56:55 cirros kern.info kernel: [    7.008978] EXT3-fs (vda): using internal journal
May 26 11:56:55 cirros kern.info kernel: [   14.157241] EXT3-fs (vda): using internal journal
May 26 11:56:58 cirros kern.debug kernel: [   19.611306] ISO 9660 Extensions: Microsoft Joliet Level 3
May 26 11:56:59 cirros kern.debug kernel: [   19.860618] ISO 9660 Extensions: RRIP_1991A
May 26 11:57:16 cirros kern.debug kernel: [   37.202326] eth0: no IPv6 routers present
May 26 12:00:08 cirros authpriv.info dropbear[260]: Running in background
############ debug end   ##############