Unexpected number of DHCP interfaces for metadata proxy
Bug #1989979 reported by
Maximilian Stinsky
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Miguel Lavalle |
Bug Description
We upgraded neutron from ussuri to victoria in our lab environment and are seeing a strange error message that I dont really understand.
The dhcp agent is logging the following for every network: Unexpected number of DHCP interfaces for metadata proxy, expected 1, got 3
This seems to be related to the new metadata v6 implementation. [1]
But as we are running with dhcp_agents_
So far I dont understand what would be the right way to eliminate the error.
[1] https:/
tags: | added: l3-ipam-dhcp |
To post a comment you must log in.
I think I can replicate this with master branch code in a devstack with two nodes:
1) Show nodes in system
$ openstack host list -----+- ------- ---+--- ------- + -----+- ------- ---+--- ------- + -----+- ------- ---+--- ------- +
+------
| Host Name | Service | Zone |
+------
| central | scheduler | internal |
| central | conductor | internal |
| central | conductor | internal |
| central | compute | nova |
| worker | compute | nova |
+------
2) Configure more that 2 dhcp agents per network and re-start Neutron server:
vagrant@central:~$ cat /etc/neutron/ neutron. conf | grep dhcp_agents_ per_network per_network = 2
dhcp_agents_
3) Create network and subnets as non-admin:
$ export OS_CLOUD=ovs
$ openstack network create mi-red -c id -c name -+----- ------- ------- ------- ------- -----+ -+----- ------- ------- ------- ------- -----+ 3a99-4a6c- 97d7-31f105970b b5 | -+----- ------- ------- ------- ------- -----+
+------
| Field | Value |
+------
| id | ea851d66-
| name | mi-red |
+------
$ openstack subnet create --ip-version 4 --subnet-pool dff62ef8- abc3-47fe- aa4f-3a357079ce ed --network mi-red mi-red-subnet -c id -c name -c cidr -+----- ------- ------- ------- ------- -----+ -+----- ------- ------- ------- ------- -----+ 3c1c-440c- 9e6a-acbb8a2942 d0 | -+----- ------- ------- ------- ------- -----+
+------
| Field | Value |
+------
| cidr | 10.0.0.64/26 |
| id | 7083f53c-
| name | mi-red-subnet |
+------
$ openstack subnet create --ip-version 6 --subnet-pool bc427dc1- 87e5-4c14- 839c-7830e66170 6b --ipv6-ra-mode slaac --ipv6-address-mode slaac --network mi-red mi-red-subnet-ipv6 -c id -c name -c cidr -+----- ------- ------- ------- ------- -----+ -+----- ------- ------- ------- ------- -----+ ad20:1: :/64 | 9745-4624- 87e8-41defce349 7f | -+----- ------- ------- ------- ------- -----+
+------
| Field | Value |
+------
| cidr | fde8:d672:
| id | 5e2f17b0-
| name | mi-red-subnet-ipv6 |
+------
4) Check how many dhcp ports with admin_state_up = true are there for the network:
$ export OS_CLOUD=ovs-admin
$ openstack network agent list --network ea851d66- 3a99-4a6c- 97d7-31f105970b b5 -c ID -c Alive -c Host ------- ------- ------- ------- ----+-- ------- +------ -+ ------- ------- ------- ------- ----+-- ------- +------ -+ 5c31-49cc- 9c97-d8133ec8ba 2e | worker | :-) | 3537-4725- a13a-d74bf681e3 84 | central | :-) | ------- ------- ------- ------- ----+-- ------- +------ -+
+------
| ID | Host | Alive |
+------
| 1d90cd00-
| 77866a27-
+------
$ openstack port list --device-owner network:dhcp -c ID -c 'Fixed IP Addresses' | grep 7083f53c- 3c1c-440c- 9e6a-acbb8a2942 d0 72af-449d- a0f4-8fde2f2611 36 | ip_address= '10.0.0. 67', subnet_ id='7083f53c- 3c1c-440c- 9e6a-acbb8a2942 d0' | b814-4170- 9fdc-7449fcebc2 6a | ip_address= '10.0.0. 66', subnet_ id='7083f53c- 3c1c-440c- 9e6a-acbb8a2942 d0' |
| 2d82947a-
| 6848ab9d-
$ openstack port list --device-owner network:dhcp -c ID -c 'Fixed IP Addresses' | grep 7083f53c- 3c1c-440c- 9e6a-acbb8a2942 d0...