Comment 5 for bug 889305

Revision history for this message
BK Box (bkbox) wrote :

From looking at the code, it appears that the redhat portion of network.py will update the per device information with the DNS data in the form of "DNS=x.x.x.x". Although, I am not seeing that in our eth0 files:

# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=x.x.x.x
NETMASK=255.255.255.0
ONBOOT=yes

When the instance is created, there is no /etc/resolv.conf, but the file is still created even though there is no DNS= information. This file is created with 600 perms:

# ls -l /etc/resolv.conf
-rw------- 1 root root 46 Nov 18 15:10 /etc/resolv.conf

If the code is falling back to the update_files, I see where it chmod's to 644, but the resolv.conf file does not reflect that.

Please help me understand if I am looking at the code incorrectly.