Revision history [back]

Instance associated with private network does not receive ip address after restarting server

Hi,

My environment is: Openstack Newton with 1 controller node, 1 compute node and 1 storage node, each running inside a VM.

Apparently it is related to shutting down the server. Then when I go to turn on the server, OpenStack goes up but with the VM in "shutdown" mode and forces me to restart the VM. Upon reactivation of the VM, the instance rises without an assigned IP address. However if I recreate the instance, it goes up with an IP correctly and I notice that only happens in VMs that are in a private network (in my setup called 'selfservice')

The problem described above does not occur for VMs that are in my external network (in my setup called 'provider').

Here are some commands to clarify my setup:

os@controller:~$ openstack server list

| ID          | Name              | Status | Networks                 | Image Name |
+--------------------------------------+------------------------------+--------+-----------
| d1... | mystack1-server     | ACTIVE | selfservice=172.16.1.8, 192.168.100.15 | cirros |
| 79... | provider-instance   | ACTIVE | provider=192.168.100.4                 | cirros |

os@controller:~$ openstack network list

| ID                                   | Name        | Subnets                              |
+--------------------------------------+-------------+--------------------------------------+
| 2db21c16-75e6-4492-9159-41d73479fcf5 | provider    | e43f081b-523b-479a-b1ae-9e394009f2c1 |
| d1a405be-c64a-4c6b-90bc-fbece1e82af9 | selfservice | d473989e-92a4-4cd5-9531-460333d785f5 |
+--------------------------------------+-------------+--------------------------------------+

I also discarded that it is the rules of firewall. Put them here:

Security Groups Default

ALLOW IPv4 22 / tcp from 0.0.0.0/0
ALLOW IPv6 from default
ALLOW IPv6 to :: / 0
ALLOW IPv4 from default
ALLOW IPv4 icmp from 0.0.0.0/0
ALLOW IPv4 to 0.0.0.0/0

The "Instance Console Log" (Part of the log where error messages are displayed)

info: initramfs: up at 11.71
NOCHANGE: partition 1 is size 2072385. it cannot be grown
info: initramfs loading root from /dev/vda1
info: /etc/init.d/rc.sysinit: up at 17.21
info: container: none
Starting logging: OK
modprobe: module virtio_blk not found in modules.dep
modprobe: module virtio_net not found in modules.dep
WARN: /etc/rc3.d/S10-load-modules failed
Initializing random number generator... done.
Starting acpid: OK
cirros-ds 'local' up at 26.51
no results found for mode=local. up 28.20. searched: nocloud configdrive ec2
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
cirros-ds 'net' up at 211.58
checking http://169.254.169.254/2009-04-04/instance-id
failed 1/20: up 211.87. request failed
failed 2/20: up 214.39. request failed
failed 3/20: up 216.52. request failed
failed 4/20: up 218.72. request failed
failed 5/20: up 220.85. request failed
failed 6/20: up 222.95. request failed
failed 7/20: up 225.19. request failed
failed 8/20: up 227.51. request failed
failed 9/20: up 229.61. request failed
failed 10/20: up 231.86. request failed
failed 11/20: up 234.01. request failed
failed 12/20: up 236.17. request failed
failed 13/20: up 238.48. request failed
failed 14/20: up 240.70. request failed
failed 15/20: up 242.94. request failed
failed 16/20: up 245.28. request failed
failed 17/20: up 247.52. request failed
failed 18/20: up 249.92. request failed
failed 19/20: up 252.40. request failed
failed 20/20: up 254.51. request failed
failed to read iid from metadata. tried 20
no results found for mode=net. up 256.70. searched: nocloud configdrive ec2
failed to get instance-id of datasource
Starting dropbear sshd: OK
=== system information ===
Platform: OpenStack Foundation OpenStack Nova
Container: none
Arch: x86_64
CPU(s): 1 @ 1799.418 MHz
Cores/Sockets/Threads: 1/1/1
Virt-type: 
RAM Size: 49MB
Disks:
NAME MAJ:MIN       SIZE LABEL         MOUNTPOINT
vda  253:0   1073741824               
vda1 253:1   1061061120 cirros-rootfs /
=== sshd host keys ===
-----BEGIN SSH HOST KEY KEYS-----
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgwCZ7VMcyaY+mRbSsuPGIqP40dUmdlfikMfO/KcyXmtbtDq3Dl6Mn5jPiaI/q8f6Fm2J60Dxmy7uBLfXKtlHfkixyf5rCD/VcaCxCJBdGYz/v7fA6cTvsF7v/PLn9GRzPQCyaycea66QNmbYYd1ACbc5Iap4PAZuAu8///op7sNXFurf root@stack-instance
ssh-dss AAAAB3NzaC1kc3MAAACBANc7iFii4fp3tgEYZ9nrJlJRL9cHKSrfFXLBnc1ig0mFbwrS6ZHtwhQ0M6LkatHaBlXPs+bg4iuU66/07x7+3Xev2YlwkqYRg//VBE7SQc7Jh7d/0z7KrYSZP7V9JUX/QHwm4u7Dfo4Wk3IZVMC9KtmdSm5civP+vV6QPhd+8r9xAAAAFQDJ4uJzeGorqsBQI4CAuQxMsz0jCQAAAIB+Oe9Ux1ZoGN/2CEoUm/p6c93vXwTGPi42GbaOQ9dQ5XRqdaX3uZef057kce0BfOJgpqER3qID+3LTWVsjy2O9KCGScXGfK4VeX0dICJBclI0yOzbHZA+xMY5uLdzaEgqrys8BHe8JKOIc8Aeht+M9rR2qRNFciT6Y8IhlB0e3/AAAAIEAw6F4l3rVGeNAkrj2aX/c1vBFx3/+RalgjpDB/mjpgujY0bwnrUty7HjboEYuz4QmRHzR/XZXVYfU5VQflnORfF881wpsRNP4c99id1MNBiYVproy80AySopkEXwlEIb16inO4sLR495uI8WCMmUeRdw0jtlzqgcpg1RqW7uPhak= root@stack-instance
-----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:febd:77c3
=== datasource: None None ===
=== cirros: current=0.3.4 latest=0.3.4 uptime=258.03 ===
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:BD:77:C3  
          inet6 addr: fe80::f816:3eff:febd:77c3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 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:480 (480.0 B)  TX bytes:1148 (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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.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 stack-instance 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
[   23.655144] acpiphp: Slot [29] registered
[   23.655291] acpiphp: Slot [30] registered
[   23.661638] acpiphp: Slot [31] registered
[   23.893703] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[   23.893733] e1000: Copyright (c) 1999-2006 Intel Corporation.
[   24.059746] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
[   24.199872] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
[   24.343238] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de
[   24.583569] ip_tables: (C) 2000-2006 Netfilter Core Team
[   41.376904] eth0: no IPv6 routers present
### tail -n 25 /var/log/messages
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.638426] acpiphp: Slot [15] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.642746] acpiphp: Slot [16] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.642889] acpiphp: Slot [17] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.643092] acpiphp: Slot [18] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.643263] acpiphp: Slot [19] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.643397] acpiphp: Slot [20] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.649688] acpiphp: Slot [21] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.649841] acpiphp: Slot [22] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.650009] acpiphp: Slot [23] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.650155] acpiphp: Slot [24] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.650340] acpiphp: Slot [25] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.654657] acpiphp: Slot [26] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.654836] acpiphp: Slot [27] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.654984] acpiphp: Slot [28] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.655144] acpiphp: Slot [29] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.655291] acpiphp: Slot [30] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.661638] acpiphp: Slot [31] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.893703] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.893733] e1000: Copyright (c) 1999-2006 Intel Corporation.
Feb  8 16:54:44 stack-instance kern.info kernel: [   24.059746] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
Feb  8 16:54:45 stack-instance kern.info kernel: [   24.199872] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
Feb  8 16:54:45 stack-instance kern.info kernel: [   24.343238] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de
Feb  8 16:54:45 stack-instance kern.info kernel: [   24.583569] ip_tables: (C) 2000-2006 Netfilter Core Team
Feb  8 16:55:02 stack-instance kern.debug kernel: [   41.376904] eth0: no IPv6 routers present
Feb  8 16:58:37 stack-instance authpriv.info dropbear[295]: Running in background
############ debug end   ##############
  ____               ____  ____
 / __/ __ ____ ____ / __ \/ __/
/ /__ / // __// __// /_/ /\ \ 
\___//_//_/  /_/   \____/___/ 
   http://cirros-cloud.net


login as 'cirros' user. default password: 'cubswin:)'. use 'sudo' for root.
stack-instance login:

Is this normal? is there a way to assign IP to the VM automatically without use fixed ip address?

Any help regarding would be appreciated!

Instance associated with private network does not receive ip address after restarting server

Hi,

My environment is: Openstack Newton with 1 controller node, 1 compute node and 1 storage node, each running inside a VM.

Apparently it is related to shutting down the server. Then when I go to turn on the server, OpenStack goes up but with the VM in "shutdown" mode and forces me to restart the VM. Upon reactivation of the VM, the instance rises without an assigned IP address. However if I recreate the instance, it goes up with an IP correctly and I notice that only happens in VMs that are in a private network (in my setup called 'selfservice')

The problem described above does not occur for VMs that are in my external network (in my setup called 'provider').

Here are some commands to clarify my setup:

os@controller:~$ openstack server list

| ID          | Name              | Status | Networks                 | Image Name |
+--------------------------------------+------------------------------+--------+-----------
| d1... | mystack1-server     | ACTIVE | selfservice=172.16.1.8, 192.168.100.15 | cirros |
| 79... | provider-instance   | ACTIVE | provider=192.168.100.4                 | cirros |

os@controller:~$ openstack network list

| ID                                   | Name        | Subnets                              |
+--------------------------------------+-------------+--------------------------------------+
| 2db21c16-75e6-4492-9159-41d73479fcf5 | provider    | e43f081b-523b-479a-b1ae-9e394009f2c1 |
| d1a405be-c64a-4c6b-90bc-fbece1e82af9 | selfservice | d473989e-92a4-4cd5-9531-460333d785f5 |
+--------------------------------------+-------------+--------------------------------------+

I also discarded that it is the rules of firewall. Put them here:

Security Groups Default

ALLOW IPv4 22 / tcp from 0.0.0.0/0
ALLOW IPv6 from default
ALLOW IPv6 to :: / 0
ALLOW IPv4 from default
ALLOW IPv4 icmp from 0.0.0.0/0
ALLOW IPv4 to 0.0.0.0/0

The "Instance Console Log" (Part of the log where error messages are displayed)

info: initramfs: up at 11.71
NOCHANGE: partition 1 is size 2072385. it cannot be grown
info: initramfs loading root from /dev/vda1
info: /etc/init.d/rc.sysinit: up at 17.21
info: container: none
Starting logging: OK
modprobe: module virtio_blk not found in modules.dep
modprobe: module virtio_net not found in modules.dep
WARN: /etc/rc3.d/S10-load-modules failed
Initializing random number generator... done.
Starting acpid: OK
cirros-ds 'local' up at 26.51
no results found for mode=local. up 28.20. searched: nocloud configdrive ec2
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
cirros-ds 'net' up at 211.58
checking http://169.254.169.254/2009-04-04/instance-id
failed 1/20: up 211.87. request failed
failed 2/20: up 214.39. request failed
failed 3/20: up 216.52. request failed
failed 4/20: up 218.72. request failed
failed 5/20: up 220.85. request failed
failed 6/20: up 222.95. request failed
failed 7/20: up 225.19. request failed
failed 8/20: up 227.51. request failed
failed 9/20: up 229.61. request failed
failed 10/20: up 231.86. request failed
failed 11/20: up 234.01. request failed
failed 12/20: up 236.17. request failed
failed 13/20: up 238.48. request failed
failed 14/20: up 240.70. request failed
failed 15/20: up 242.94. request failed
failed 16/20: up 245.28. request failed
failed 17/20: up 247.52. request failed
failed 18/20: up 249.92. request failed
failed 19/20: up 252.40. request failed
failed 20/20: up 254.51. request failed
failed to read iid from metadata. tried 20
no results found for mode=net. up 256.70. searched: nocloud configdrive ec2
failed to get instance-id of datasource
Starting dropbear sshd: OK
=== system information ===
Platform: OpenStack Foundation OpenStack Nova
Container: none
Arch: x86_64
CPU(s): 1 @ 1799.418 MHz
Cores/Sockets/Threads: 1/1/1
Virt-type: 
RAM Size: 49MB
Disks:
NAME MAJ:MIN       SIZE LABEL         MOUNTPOINT
vda  253:0   1073741824               
vda1 253:1   1061061120 cirros-rootfs /
=== sshd host keys ===
-----BEGIN SSH HOST KEY KEYS-----
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgwCZ7VMcyaY+mRbSsuPGIqP40dUmdlfikMfO/KcyXmtbtDq3Dl6Mn5jPiaI/q8f6Fm2J60Dxmy7uBLfXKtlHfkixyf5rCD/VcaCxCJBdGYz/v7fA6cTvsF7v/PLn9GRzPQCyaycea66QNmbYYd1ACbc5Iap4PAZuAu8///op7sNXFurf root@stack-instance
ssh-dss AAAAB3NzaC1kc3MAAACBANc7iFii4fp3tgEYZ9nrJlJRL9cHKSrfFXLBnc1ig0mFbwrS6ZHtwhQ0M6LkatHaBlXPs+bg4iuU66/07x7+3Xev2YlwkqYRg//VBE7SQc7Jh7d/0z7KrYSZP7V9JUX/QHwm4u7Dfo4Wk3IZVMC9KtmdSm5civP+vV6QPhd+8r9xAAAAFQDJ4uJzeGorqsBQI4CAuQxMsz0jCQAAAIB+Oe9Ux1ZoGN/2CEoUm/p6c93vXwTGPi42GbaOQ9dQ5XRqdaX3uZef057kce0BfOJgpqER3qID+3LTWVsjy2O9KCGScXGfK4VeX0dICJBclI0yOzbHZA+xMY5uLdzaEgqrys8BHe8JKOIc8Aeht+M9rR2qRNFciT6Y8IhlB0e3/AAAAIEAw6F4l3rVGeNAkrj2aX/c1vBFx3/+RalgjpDB/mjpgujY0bwnrUty7HjboEYuz4QmRHzR/XZXVYfU5VQflnORfF881wpsRNP4c99id1MNBiYVproy80AySopkEXwlEIb16inO4sLR495uI8WCMmUeRdw0jtlzqgcpg1RqW7uPhak= root@stack-instance
-----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:febd:77c3
=== datasource: None None ===
=== cirros: current=0.3.4 latest=0.3.4 uptime=258.03 ===
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:BD:77:C3  
          inet6 addr: fe80::f816:3eff:febd:77c3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 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:480 (480.0 B)  TX bytes:1148 (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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.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 stack-instance 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
[   23.655144] acpiphp: Slot [29] registered
[   23.655291] acpiphp: Slot [30] registered
[   23.661638] acpiphp: Slot [31] registered
[   23.893703] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[   23.893733] e1000: Copyright (c) 1999-2006 Intel Corporation.
[   24.059746] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
[   24.199872] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
[   24.343238] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de
[   24.583569] ip_tables: (C) 2000-2006 Netfilter Core Team
[   41.376904] eth0: no IPv6 routers present
### tail -n 25 /var/log/messages
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.638426] acpiphp: Slot [15] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.642746] acpiphp: Slot [16] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.642889] acpiphp: Slot [17] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.643092] acpiphp: Slot [18] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.643263] acpiphp: Slot [19] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.643397] acpiphp: Slot [20] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.649688] acpiphp: Slot [21] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.649841] acpiphp: Slot [22] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.650009] acpiphp: Slot [23] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.650155] acpiphp: Slot [24] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.650340] acpiphp: Slot [25] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.654657] acpiphp: Slot [26] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.654836] acpiphp: Slot [27] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.654984] acpiphp: Slot [28] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.655144] acpiphp: Slot [29] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.655291] acpiphp: Slot [30] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.661638] acpiphp: Slot [31] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.893703] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.893733] e1000: Copyright (c) 1999-2006 Intel Corporation.
Feb  8 16:54:44 stack-instance kern.info kernel: [   24.059746] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
Feb  8 16:54:45 stack-instance kern.info kernel: [   24.199872] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
Feb  8 16:54:45 stack-instance kern.info kernel: [   24.343238] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de
Feb  8 16:54:45 stack-instance kern.info kernel: [   24.583569] ip_tables: (C) 2000-2006 Netfilter Core Team
Feb  8 16:55:02 stack-instance kern.debug kernel: [   41.376904] eth0: no IPv6 routers present
Feb  8 16:58:37 stack-instance authpriv.info dropbear[295]: Running in background
############ debug end   ##############
  ____               ____  ____
 / __/ __ ____ ____ / __ \/ __/
/ /__ / // __// __// /_/ /\ \ 
\___//_//_/  /_/   \____/___/ 
   http://cirros-cloud.net


login as 'cirros' user. default password: 'cubswin:)'. use 'sudo' for root.
stack-instance login:

Is this normal? is there a way to assign IP to the VM automatically without use fixed ip address?

Any help regarding would be appreciated!

Instance associated with private network does not receive ip address after restarting server

Hi,

My environment is: Openstack Newton with 1 controller node, 1 compute node and 1 storage node, each running inside a VM.

Apparently it is related to shutting down the server. Then when I go to turn on the server, OpenStack goes up but with the VM in "shutdown" mode and forces me to restart the VM. Upon reactivation of the VM, the instance rises without an assigned IP address. However if I recreate the instance, it goes up with an IP correctly and I notice that only happens in VMs that are in a private network (in my setup called 'selfservice')

The problem described above does not occur for VMs that are in my external network (in my setup called 'provider').

Here are some commands to clarify my setup:

os@controller:~$ openstack server list

| ID          | Name              | Status | Networks                 | Image Name |
+--------------------------------------+------------------------------+--------+-----------
| d1... | mystack1-server     | ACTIVE | selfservice=172.16.1.8, 192.168.100.15 | cirros |
| 79... | provider-instance   | ACTIVE | provider=192.168.100.4                 | cirros |

os@controller:~$ openstack network list

| ID                                   | Name        | Subnets                              |
+--------------------------------------+-------------+--------------------------------------+
| 2db21c16-75e6-4492-9159-41d73479fcf5 | provider    | e43f081b-523b-479a-b1ae-9e394009f2c1 |
| d1a405be-c64a-4c6b-90bc-fbece1e82af9 | selfservice | d473989e-92a4-4cd5-9531-460333d785f5 |
+--------------------------------------+-------------+--------------------------------------+

I also discarded that it is the rules of firewall. Put them here:

Security Groups Default

ALLOW IPv4 22 / tcp from 0.0.0.0/0
ALLOW IPv6 from default
ALLOW IPv6 to :: / 0
ALLOW IPv4 from default
ALLOW IPv4 icmp from 0.0.0.0/0
ALLOW IPv4 to 0.0.0.0/0

The "Instance Console Log" (Part of the log where error messages are displayed)

info: initramfs: up at 11.71
NOCHANGE: partition 1 is size 2072385. it cannot be grown
info: initramfs loading root from /dev/vda1
info: /etc/init.d/rc.sysinit: up at 17.21
info: container: none
Starting logging: OK
modprobe: module virtio_blk not found in modules.dep
modprobe: module virtio_net not found in modules.dep
WARN: /etc/rc3.d/S10-load-modules failed
Initializing random number generator... done.
Starting acpid: OK
cirros-ds 'local' up at 26.51
no results found for mode=local. up 28.20. searched: nocloud configdrive ec2
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
cirros-ds 'net' up at 211.58
checking http://169.254.169.254/2009-04-04/instance-id
failed 1/20: up 211.87. request failed
failed 2/20: up 214.39. request failed
failed 3/20: up 216.52. request failed
failed 4/20: up 218.72. request failed
failed 5/20: up 220.85. request failed
failed 6/20: up 222.95. request failed
failed 7/20: up 225.19. request failed
failed 8/20: up 227.51. request failed
failed 9/20: up 229.61. request failed
failed 10/20: up 231.86. request failed
failed 11/20: up 234.01. request failed
failed 12/20: up 236.17. request failed
failed 13/20: up 238.48. request failed
failed 14/20: up 240.70. request failed
failed 15/20: up 242.94. request failed
failed 16/20: up 245.28. request failed
failed 17/20: up 247.52. request failed
failed 18/20: up 249.92. request failed
failed 19/20: up 252.40. request failed
failed 20/20: up 254.51. request failed
failed to read iid from metadata. tried 20
no results found for mode=net. up 256.70. searched: nocloud configdrive ec2
failed to get instance-id of datasource
Starting dropbear sshd: OK
=== system information ===
Platform: OpenStack Foundation OpenStack Nova
Container: none
Arch: x86_64
CPU(s): 1 @ 1799.418 MHz
Cores/Sockets/Threads: 1/1/1
Virt-type: 
RAM Size: 49MB
Disks:
NAME MAJ:MIN       SIZE LABEL         MOUNTPOINT
vda  253:0   1073741824               
vda1 253:1   1061061120 cirros-rootfs /
=== sshd host keys ===
-----BEGIN SSH HOST KEY KEYS-----
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgwCZ7VMcyaY+mRbSsuPGIqP40dUmdlfikMfO/KcyXmtbtDq3Dl6Mn5jPiaI/q8f6Fm2J60Dxmy7uBLfXKtlHfkixyf5rCD/VcaCxCJBdGYz/v7fA6cTvsF7v/PLn9GRzPQCyaycea66QNmbYYd1ACbc5Iap4PAZuAu8///op7sNXFurf root@stack-instance
ssh-dss AAAAB3NzaC1kc3MAAACBANc7iFii4fp3tgEYZ9nrJlJRL9cHKSrfFXLBnc1ig0mFbwrS6ZHtwhQ0M6LkatHaBlXPs+bg4iuU66/07x7+3Xev2YlwkqYRg//VBE7SQc7Jh7d/0z7KrYSZP7V9JUX/QHwm4u7Dfo4Wk3IZVMC9KtmdSm5civP+vV6QPhd+8r9xAAAAFQDJ4uJzeGorqsBQI4CAuQxMsz0jCQAAAIB+Oe9Ux1ZoGN/2CEoUm/p6c93vXwTGPi42GbaOQ9dQ5XRqdaX3uZef057kce0BfOJgpqER3qID+3LTWVsjy2O9KCGScXGfK4VeX0dICJBclI0yOzbHZA+xMY5uLdzaEgqrys8BHe8JKOIc8Aeht+M9rR2qRNFciT6Y8IhlB0e3/AAAAIEAw6F4l3rVGeNAkrj2aX/c1vBFx3/+RalgjpDB/mjpgujY0bwnrUty7HjboEYuz4QmRHzR/XZXVYfU5VQflnORfF881wpsRNP4c99id1MNBiYVproy80AySopkEXwlEIb16inO4sLR495uI8WCMmUeRdw0jtlzqgcpg1RqW7uPhak= root@stack-instance
-----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:febd:77c3
=== datasource: None None ===
=== cirros: current=0.3.4 latest=0.3.4 uptime=258.03 ===
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:BD:77:C3  
          inet6 addr: fe80::f816:3eff:febd:77c3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 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:480 (480.0 B)  TX bytes:1148 (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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.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 stack-instance 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
[   23.655144] acpiphp: Slot [29] registered
[   23.655291] acpiphp: Slot [30] registered
[   23.661638] acpiphp: Slot [31] registered
[   23.893703] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[   23.893733] e1000: Copyright (c) 1999-2006 Intel Corporation.
[   24.059746] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
[   24.199872] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
[   24.343238] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de
[   24.583569] ip_tables: (C) 2000-2006 Netfilter Core Team
[   41.376904] eth0: no IPv6 routers present
### tail -n 25 /var/log/messages
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.638426] acpiphp: Slot [15] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.642746] acpiphp: Slot [16] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.642889] acpiphp: Slot [17] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.643092] acpiphp: Slot [18] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.643263] acpiphp: Slot [19] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.643397] acpiphp: Slot [20] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.649688] acpiphp: Slot [21] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.649841] acpiphp: Slot [22] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.650009] acpiphp: Slot [23] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.650155] acpiphp: Slot [24] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.650340] acpiphp: Slot [25] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.654657] acpiphp: Slot [26] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.654836] acpiphp: Slot [27] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.654984] acpiphp: Slot [28] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.655144] acpiphp: Slot [29] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.655291] acpiphp: Slot [30] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.661638] acpiphp: Slot [31] registered
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.893703] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
Feb  8 16:54:44 stack-instance kern.info kernel: [   23.893733] e1000: Copyright (c) 1999-2006 Intel Corporation.
Feb  8 16:54:44 stack-instance kern.info kernel: [   24.059746] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
Feb  8 16:54:45 stack-instance kern.info kernel: [   24.199872] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
Feb  8 16:54:45 stack-instance kern.info kernel: [   24.343238] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de
Feb  8 16:54:45 stack-instance kern.info kernel: [   24.583569] ip_tables: (C) 2000-2006 Netfilter Core Team
Feb  8 16:55:02 stack-instance kern.debug kernel: [   41.376904] eth0: no IPv6 routers present
Feb  8 16:58:37 stack-instance authpriv.info dropbear[295]: Running in background
############ debug end   ##############
  ____               ____  ____
 / __/ __ ____ ____ / __ \/ __/
/ /__ / // __// __// /_/ /\ \ 
\___//_//_/  /_/   \____/___/ 
   http://cirros-cloud.net


login as 'cirros' user. default password: 'cubswin:)'. use 'sudo' for root.
stack-instance login:

Is this normal? is there a way to assign IP to the VM automatically without use fixed ip address?

Any help regarding would be appreciated!