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:
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.
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 255.255. 255.0
DEVICE=eth0
BOOTPROTO=static
IPADDR=x.x.x.x
NETMASK=
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.