quantum DNS name does not match VM hostname
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Miguel Lavalle |
Bug Description
Using Networking DHCP agent, cloud-init and Nova metadata, we're seeing a situation where the VM hostname does not match the DNS name. This causes things like 'sudo' to complain and 'hostname -f' to fail on the VM, and represents a regression from existing nova-network behavior.
An example of the problem and a potential solution are outlined below for comment.
For example:
$ nova list
+------
| ID | Name | Status | Networks |
+------
| 92a4075e-
+------
On the VM:
ubuntu@jvm44:~$ hostname
jvm44
ubuntu@jvm44:~$ hostname -f
hostname: Temporary failure in name resolution
ubuntu@jvm44:~$ sudo bash
sudo: unable to resolve host jvm44
root@jvm44:~#
Changing the hostname to match DNS name fixes the problem:
ubuntu@
10-10-20-5
ubuntu@
10-10-20-
ubuntu@
root@10-10-20-5:~#
The VM name in DNS is 10-10-20-
root@jvm44:~# nslookup 10.10.20.5
Server: 10.10.20.2
Address: 10.10.20.2#53
5.20.10.
While DNSaaS may be the eventual answer to this problem, there may be a simpler fix for the case where DNSaaS is not available.
A potential, minimally invasive fix for this might be:
1) modify quantum/
2) modify nova to set the port name to match the VM name
tags: | added: l3-ipam-dhcp |
description: | updated |
Changed in nova: | |
assignee: | nobody → Harshavardhan Reddy M (hvreddy1110) |
assignee: | Harshavardhan Reddy M (hvreddy1110) → nobody |
assignee: | nobody → Harshavardhan Reddy M (hvreddy1110) |
Changed in nova: | |
assignee: | Harshavardhan Reddy M (hvreddy1110) → nobody |
Changed in nova: | |
assignee: | nobody → jagan kumar kotipatruni (jagankumar-k) |
Changed in quantum: | |
status: | New → Confirmed |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in neutron: | |
status: | In Progress → Fix Committed |
tags: | removed: neutron |
Changed in neutron: | |
importance: | Undecided → Low |
tags: | added: neutron-core |
tags: |
added: neutron removed: neutron-core |
Changed in nova: | |
status: | New → Confirmed |
Changed in neutron: | |
status: | New → Confirmed |
Changed in nova: | |
importance: | Undecided → Low |
tags: | added: ops |
Changed in nova: | |
assignee: | nobody → Hiroyasu OHYAMA (user-localhost2000) |
Changed in nova: | |
assignee: | Hiroyasu OHYAMA (user-localhost2000) → nobody |
Changed in neutron: | |
assignee: | nobody → Li Ma (nick-ma-z) |
Changed in neutron: | |
assignee: | Li Ma (nick-ma-z) → nobody |
Changed in neutron: | |
assignee: | nobody → Dariusz Smigiel (smigiel-dariusz) |
Hi Jack, have you seen this behavior with other linux distros?