Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why would DHCP intermittently assign 2 IP addresses?

I have a mitaka installation running in docker containers; dockerisation should be irrelevant. I notice that the DHCP server intermittently assigns 2 IP addresses to instances. Anyone know why this might be? I also currently have HA enabled and this too should be irrelevant as I see the same behaviour with HA disabled.

I boot instances as follows:

nova boot --flavor m1.tiny --image cirros --nic net-id=f6a73223-5dbe-4bc6-94e6-aaca898a844d --security-group default --key-name cloud test

nova list:

+--------------------------------------+-------+--------+------------+-------------+------------------------------------+

| ID | Name | Status | Task State | Power State | Networks |

+--------------------------------------+-------+--------+------------+-------------+------------------------------------+

| b4aee59e-c08b-49d2-8ae9-33e9b6708a49 | test | ACTIVE | - | Running | int-net=195.7.41.3, 10.196.229.201 |

| 4c697b2f-41d3-4456-b994-4d311f2d7785 | test1 | ACTIVE | - | Running | int-net=195.7.41.4, 195.7.41.5 |

| 75f34b58-3b38-4c19-b922-fff1a0e84002 | test2 | BUILD | spawning | NOSTATE | int-net=195.7.41.6 |

+--------------------------------------+-------+--------+------------+-------------+------------------------------------+

.

You can see that instance test1 has two IP addresses assigned from 195.7.41.0.