NetworkManager has removed the configuration of nameservers created by cloud-init

Solution In Progress - Updated -

Issue

  • We are experiencing a problem with resolv.conf configuration on RHEL 7.7.

  • During the first boot, the nameservers have been configured well from OpenStack subnet metadata:

$ cat etc/resolv.conf 
; Created by cloud-init on instance boot automatically, do not edit.
;
# Generated by NetworkManager
search domain.com
nameserver 172.16.16.16
nameserver 172.16.16.17
  • After a reboot, resolv.conf has been cleared by NetworkManager.:
$ cat etc/resolv.conf 
# Generated by NetworkManager
  • The cloud-init service created a special configuration for NetworkManager and NetworkManager should not change resolv.conf but it still changed it.

Environment

  • Red Hat Enterprise Linux 7.7 (RHEL)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In