VM does not get proper domainname and delay in dns queries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Invalid
|
Medium
|
Hari Prasad Killi | ||
OpenContrail |
Invalid
|
Medium
|
Hari Prasad Killi |
Bug Description
On Contrail v1.21, VM based on CentOS6.5 does not get the proper domainame and users reported >5 secs delay when using Contrail as the DNS server. The tcpdump on VM's tap device showed domainame was set correctly.
# tcpdump -i tapa5fc4c05-ca -vvvv port bootpc and bootps
0.0.0.0.bootpc > 255.255.
Client-
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Request
Requested-IP Option 50, length 4: 10.192.156.250
Parameter-
Subnet-Mask, BR, Time-Zone, Classless-
Domain-Name, Domain-Name-Server, Hostname, YD
YS, NTP, MTU, Option 119
Default-
Vendor-Class Option 60, length 43: "anaconda-Linux 2.6.32-
END Option 255, length 0
21:42:21.803349 IP (tos 0x0, ttl 16, id 0, offset 0, flags [none], proto UDP (17), length 337)
10.
Your-IP 10.192.156.250
Server-IP 10.192.156.1
Client-
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: ACK
Server-ID Option 54, length 4: 10.192.156.1
Lease-Time Option 51, length 4: 4294967295
Subnet-Mask Option 1, length 4: 255.255.255.0
BR Option 28, length 4: 10.192.156.255
Time-Server Option 4, length 4: 10.192.156.1
Domain-Name Option 15, length 10: "dev.pdx.wd"
Default-Gateway Option 3, length 4: 10.192.156.1
Hostname Option 12, length 9: "net156-03"
Domain-
END Option 255, length 0
From VM side
[root@net156-03 ~]# domainname
(none)
[root@net156-03 ~]# uname -a
Linux net156-03 2.6.32-
[root@net156-03 ~]# cat /etc/sysconfig/
NETWORKING=yes
HOSTNAME=
On DNS query delay, there seems to be significant delay ( >5s) when using Contrail as the DNS server. Wondering if it has anything to do with allowing ipv6 AAAA.
tags: | added: wpc |
Changed in juniperopenstack: | |
assignee: | nobody → Hari Prasad Killi (haripk) |
Changed in opencontrail: | |
assignee: | nobody → Hari Prasad Killi (haripk) |
tags: | added: vdns |
Changed in juniperopenstack: | |
importance: | Undecided → Medium |
Changed in opencontrail: | |
importance: | Undecided → Medium |
Changed in opencontrail: | |
status: | New → Triaged |
Changed in opencontrail: | |
status: | Triaged → Invalid |
Changed in juniperopenstack: | |
status: | Confirmed → Invalid |
Hi Alfred, Hari from the vRouter team has sought the following information for him to analyze this further.
Is /etc/resolv.conf getting updated with the "search" and "nameserver" values obtained from DHCP on your VM.
Update of resolv.conf and hostname etc are done by /sbin/dhclient- script. Is it possible to capture the execution output of this file so that we can check what is happening ? We can add the following lines to the script and run dhclient on the interface.
exec &> /tmp/out
set -x
I tested in a standard centos6.5 VM – once dhclient was done on the interface, I see that "hostname", "domainname –d" are showing the expected values (reflecting the data received from DHCP) and /etc/resolv.conf is updated in the VM.