Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-7271

NetworkManager not updating DNS in /etc/resolv.conf when using DHCP

    • None
    • Important
    • rhel-sst-virtualization-cloud
    • ssg_virtualization
    • 2
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      When using the latest version of cloud-init, cloud-init-19.4-7.el7_9.5.x86_64, DNS is not getting updated in /etc/resolv.conf. I found this KB article, https://access.redhat.com/solutions/4437221, which references this bug https://bugzilla.redhat.com/show_bug.cgi?id=1748015.

      This works on VMware with cloud-init-19.4-7.el7_9.5.x86_64 but not on AWS.

      Version-Release number of selected component (if applicable):
      cloud-init-19.4-7.el7_9.5.x86_64

      Update to cloud-init-19.4-7.el7_9.5.x86_64 from cloud-init-18.5-6.el7

      Steps to Reproduce:
      1. Upgrade to cloud-init-19.4-7.el7_9.5.x86_64
      2. Attempt to use the cloud.cfg file attached
      3. DNS will not be updated in resolv.conf

      Actual results:
      DNS will not be updated in resolv.conf

      Expected results:
      DNS will be updated in resolv.conf

      Additional info:

      1. DNS should be set by DHCP, but it's not.
      2. Simply downgrading cloud-init to version 18.5-6.el7 is enough for it to work properly again on AWS releases.

              rh-ee-anisinha Ani Sinha
              rhn-support-rmcswain Robert McSwain (Inactive)
              virt-maint virt-maint
              Amy Chen Amy Chen
              Votes:
              0 Vote for this issue
              Watchers:
              20 Start watching this issue

                Created:
                Updated:
                Resolved: