dnsmasq doesn't write new dns_name entry
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Hello everyone,
we are seeing some problems with the dns_name entry on newly created ports/instances. This problem doesn't happen on every tenant, actuaqlly it's happening only in one tenant.
After creating an instance over Horizon or CLI the newly created port gets the entry dns_name with the name of the instance:
root@mgmt1:~# neutron port-show 66ddad0f-
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:host_id | node1 |
| binding:profile | {} |
| binding:vif_details | {"port_filter": true} |
| binding:vif_type | bridge |
| binding:vnic_type | normal |
| created_at | 2017-03-23T13:41:43 |
| description | |
| device_id | 2f2f2fbe-
| device_owner | compute:nova |
| dns_assignment | {"hostname": "test", "ip_address": "172.16.0.22", "fqdn": "test.ssolocal."} |
| dns_name | test |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "f1299032-
| id | 66ddad0f-
| mac_address | fa:16:3e:b3:e9:66 |
| name | |
| network_id | f883223c-
| port_security_
| security_groups | d2005738-
| | f6aa9984-
| status | ACTIVE |
| tenant_id | 174b1a7ca42b4e1
| updated_at | 2017-03-23T13:41:51 |
+------
This entry looks perfect as expected, but now looking into the addn_hosts/host files of the dnsmasq configuration for the DHCP/DNS Namespace the entry is not set correctly with the defined hostname:
root@neutron2:
addn_hosts:
host:fa:
If we now make a port-update on the port only declaring the same dns_name again it is passed to the dnsmasq configuration and the instance is reachable within the network with it's hostname:
root@mgmt1:~# neutron port-update 66ddad0f-
Updated port: 66ddad0f-
root@neutron2:
addn_hosts:
host:fa:
As described the problem only seems to happen within one tenant (or at least we haven't seen it yet anywhere else)
Does anybody know why dnsmasq/neutron is behaving like this?
Kind regards,
Kenneth Cummings
tags: | added: l3-ipam-dhcp needs-attention |
Changed in neutron: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Had forgotten to mention, we are currently on Mitaka release but already planning to upgrade to Newton.