During deployment of many instances (murano app) some do not get address via dhcp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Invalid
|
High
|
ITD27M01 | ||
Mitaka |
Invalid
|
High
|
ITD27M01 | ||
Newton |
Invalid
|
High
|
ITD27M01 | ||
Ocata |
Invalid
|
High
|
ITD27M01 |
Bug Description
In case of bulk deployment of instances (murano application) some instances does not get IP from Neutron. This is because of agent does not populate macs to host file for dnsmasq:
openstack --os-cloud os server list -c ID -c Networks -c Status -f csv:
"ID","Status"
"903914bc-
"0663b332-
"b82c95f5-
"9511a03e-
"624e999f-
"8a06a16e-
"a5739615-
"4431c328-
"22d89afa-
8a06a16e-
On the dmsmasq logs I see following messages:
<30>Sep 16 11:25:17 SRV-OS-CTL01 dnsmasq-
<30>Sep 16 11:28:33 SRV-OS-CTL01 dnsmasq-
Get info for this ports:
neutron --os-cloud os port-list --mac-address fa:16:3e:bd:c4:cb -f csv
"id","name"
"b3888685-
neutron --os-cloud os port-list --mac-address fa:16:3e:e8:80:09 -f csv
"id","name"
"27a81d8c-
But this port is not in host file of dnsmasq:
ps -ef | grep dnsmasq | grep 10.0.35
nobody 27971 1 0 10:49 ? 00:00:00 dnsmasq --no-hosts --no-resolv --strict-order --except-
cat /var/lib/
fa:16:3e:
fa:16:3e:
fa:16:3e:
fa:16:3e:
fa:16:3e:
fa:16:3e:
fa:16:3e:
Reproducibility: 100% for 1 or 2 instances in bulk deployment (5 to 10 tested)
I think than there is some race condition to write this file.
I use three contoller deployment tрrough Fuel MOS 9.0 and dhcp HA with two dhcp agents:
grep dhcp -R /etc/neutron/
dhcp_lease_duration = 600
dhcp_agents_
To reproduce you need to create new environment in murano, add Kubernates Cluster murano App from Mirantis Inc. with the following values:
ubuntu-kubernates image. Initial/current number of Kubernetes nodes = 5, Maximum number of Kubernetes nodes = 10
summary: |
- During deployment many instances some do not get address via dhcp + During deployment of many instances (murano app) some do not get address + via dhcp |
description: | updated |
Logs from dhcp agent:
cat /var/log/ neutron/ neutron- dhcp-agent. log | grep req-bab354ea- f617-4f53- b89c-7901fd6699 ec y.lockutils [req-bab354ea- f617-4f53- b89c-7901fd6699 ec f4367cf737a283b f725ef7662eabe6 b66acd470118980 f2ec54602df46a6 a44b 826d208d9dda4df fa08f7437e3e780 81 - - -] Lock "dhcp-agent" acquired by "neutron. agent.dhcp. agent.subnet_ update_ end" :: waited 0.000s inner /usr/lib/ python2. 7/dist- packages/ oslo_concurrenc y/lockutils. py:270 _drivers. amqpdriver [req-bab354ea- f617-4f53- b89c-7901fd6699 ec f4367cf737a283b f725ef7662eabe6 b66acd470118980 f2ec54602df46a6 a44b 826d208d9dda4df fa08f7437e3e780 81 - - -] CALL msg_id: bdcfff0dbc1548a 7852c61b0b56bcf a5 size: 939 exchange: neutron topic: q-plugin _send /usr/lib/ python2. 7/dist- packages/ oslo_messaging/ _drivers/ amqpdriver. py:496 agent.dhcp. agent [req-bab354ea- f617-4f53- b89c-7901fd6699 ec f4367cf737a283b f725ef7662eabe6 b66acd470118980 f2ec54602df46a6 a44b 826d208d9dda4df fa08f7437e3e780 81 - - -] Calling driver for network: cd62d4a6- 20e9-4488- a783-aa1e057c85 2b action: enable call_driver /usr/lib/ python2. 7/dist- packages/ neutron/ agent/dhcp/ agent.py: 103 agent.linux. utils [req-bab354ea- f617-4f53- b89c-7901fd6699 ec f4367cf737a283b f725ef7662eabe6 b66acd470118980 f2ec54602df46a6 a44b 826d208d9dda4df fa08f7437e3e780 81 - - -] Unable to access /var/lib/ neutron/ dhcp/cd62d4a6- 20e9-4488- a783-aa1e057c85 2b/pid get_value_from_file /usr/lib/ python2. 7/dist- packages/ neutron/ agent/linux/ utils.py: 225 agent.linux. dhcp [req-bab354ea- f617-4f53- b89c-7901fd6699 ec f4367cf737a283b f725ef7662eabe6 b66acd470118980 f2ec54602df46a6 a44b 826d208d9dda4df fa08f7437e3e780 81 - - -] DHCP port dhcp47344c11- 1328-5e2f- 955b-2be59c098b e6-cd62d4a6- 20e9-4488- a783-aa1e057c85 2b on network cd62d4a6- 20e9-4488- a783-aa1e057c85 2b does not yet exist. Checking for a reserved port. _setup_ reserved_ dhcp_port /usr/lib/ python2. 7/dist- packages/ neutron/ agent/linux/ dhcp.py: 1123 agent.linux. dhcp [req-bab354ea- f617-4f53- b89c-7901fd6699 ec f4367cf737a283b f725ef7662eabe6 b66acd470118980 f2ec54602df46a6 a44b 826d208d9dda4df fa08f7437e3e780 81 - - -] DHCP port dhcp47344c11- 1328-5e2f- 955b-2be59c098b e6-cd62d4a6- 20e9-4488- a783-aa1e057c85 2b on network cd62d4a6- 20e9-4488- a783-aa1e057c85 2b does not yet exist. Creating new one. _setup_ new_dhcp_ port /usr/lib/ python2. 7/dist- packages/ neutron/ agent/linux/ dhcp.py: 1144 _drivers. amqpdriver [req-bab354ea- f617-4f53- b89c-7901fd6699 ec f4367cf737a283b f725ef7662eabe6 b66acd470118980 f2ec54602df46a6 a44b 826d208d9dda4df fa08f7437e3e780 81 - - -] CALL msg_id: 4bebf28ba625491 09cd9dc22e9a07e 50 size: 1208 exchange: neutron topic: q-plugin _send /usr/lib/ python2. 7/dist- packages/ oslo_messaging/ _drivers/ amqpdriver. py:496 agent.linux. utils [req-bab354ea- f617-4f53- b89c-7901fd6699 ec f4367cf737a283b f725ef7662eabe6 b66acd470118980 f2ec54602df46a6 a44b 826d208d9dda4df fa08f7437e3e780 81 - - -] Running command: ['sudo', 'neutron...
2016-09-16 10:48:46.460 5727 DEBUG oslo_concurrenc
2016-09-16 10:48:46.461 5727 DEBUG oslo_messaging.
2016-09-16 10:48:46.623 5727 DEBUG neutron.
2016-09-16 10:48:46.624 5727 DEBUG neutron.
2016-09-16 10:48:46.625 5727 DEBUG neutron.
2016-09-16 10:48:46.625 5727 DEBUG neutron.
2016-09-16 10:48:46.626 5727 DEBUG oslo_messaging.
2016-09-16 10:48:47.216 5727 DEBUG neutron.