Ask Your Question
0

Why my instances get two IP addresses from DHCP?

asked 2017-01-01 03:31:12 -0600

AmirV gravatar image

My VMs got two IP addresses from the DHCP! why?

root@controller:/# openstack server list
+------------------------------------+------+--------+-------------------------------------+------------+
| ID                                 | Name | Status | Networks                            | Image Name |
+------------------------------------+------+--------+-------------------------------------+------------+
| 7f6b3a3e-4799-4e77-8794-d795531c8c | vm1  | ACTIVE | provider=172.16.0.106, 172.16.0.107 | cirros     |
| 9c                                 |      |        |                                     |            |
| d64f8523-61aa-                     | vm4  | ACTIVE | provider=172.16.0.111, 172.16.0.109 | cirros     |
| 4a92-8817-c9520ce8214c             |      |        |                                     |            |
| 0fc86d17-77b2-4950-a938-d231435fa4 | vm3  | ACTIVE | provider=172.16.0.105, 172.16.0.102 | cirros     |
| df                                 |      |        |                                     |            |
| 32d3a790-c7d0-4930-b943-f85dd06f05 | vm2  | ACTIVE | provider=172.16.0.110, 172.16.0.108 | cirros     |
| a0                                 |      |        |                                     |            |
+------------------------------------+------+--------+-------------------------------------+------------+
root@controller:/#
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-01-03 23:24:11 -0600

We also had that issue and it came down to a permission issue on the compute nodes.

In the case you use a NFS export to store your instances, you need to make sure that your nova users have the same UID and GID and that the permissions for /var/lib/nova are correct on all(!) compute nodes.

In our case the initial scheduling worked, then nova-compute wasn't able to store the instance under /var/lib/nova/instances due to that permission problem and rescheduling started. But Neutron already assigned an IP address for the first deploy try, so our instances became ACTIVE with just 2 IPs ;)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2017-01-01 03:31:12 -0600

Seen: 475 times

Last updated: Jan 03 '17