Bug 1933202

Summary: /etc/resolv.conf is overwritten by Network Manager and missing nameserver
Product: Red Hat Enterprise Linux 7 Reporter: Mircea Vutcovici <mircea.vutcovici>
Component: cloud-initAssignee: Eduardo Otubo <eterrell>
Status: CLOSED DUPLICATE QA Contact: xiachen
Severity: urgent Docs Contact:
Priority: high    
Version: 7.9CC: bfournie, eterrell, gaugu112, hbrock, huzhao, jgreguske, jslagle, mburns, ribarry, sbaker, xiachen, yacao
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 7.9   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-02 01:37:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mircea Vutcovici 2021-02-25 23:24:35 UTC
Description of problem:
This bug is similar with https://bugzilla.redhat.com/show_bug.cgi?id=1748015
However the cloud-init is the same version as the one in https://access.redhat.com/errata/RHSA-2020:3898


Version-Release number of selected component (if applicable):
- NetworkManager-1.18.8-2.el7_9.x86_64
- cloud-init-19.4-7.el7_9.2.x86_64
- Red Hat OpenStack Platform 13

How reproducible:


Steps to Reproduce:
1. deploy overcloud
2. restart controllers


Actual results:
$ cat /etc/resolv.conf 
# Generated by NetworkManager
search example.com
$

Expected results:
$ cat /etc/resolv.conf
; Created by cloud-init on instance boot automatically, do not edit.
;
# Generated by NetworkManager
search example.com
nameserver 10.91.70.84
nameserver 10.113.103.212
$

Comment 1 Steve Baker 2021-03-02 20:42:22 UTC
Assigning to cloud-init for triage

Comment 9 Mircea Vutcovici 2021-08-31 14:41:32 UTC
Hi Amy,

Yes, I think that BZ#1903146 is matching the same symptoms.
Also the workaround mentioned in https://access.redhat.com/solutions/5837741 is present in openstack-tripleo-heat-templates-8.4.1-86.el7ost.noarch.rpm package:

[supportshell.prod.useraccess-us-west-2.redhat.com] [14:39:02+0000]
[mvutcovi@supportshell openstack-tripleo-heat-templates-8.4.1-86.el7ost.noarch]$ grep -rA8  "dns.*=.*none"
usr/share/openstack-tripleo-heat-templates/common/deploy-steps.j2:                          - name: Set 'dns=none' in /etc/NetworkManager/NetworkManager.conf
usr/share/openstack-tripleo-heat-templates/common/deploy-steps.j2-                            ini_file:
usr/share/openstack-tripleo-heat-templates/common/deploy-steps.j2-                              path: /etc/NetworkManager/NetworkManager.conf
usr/share/openstack-tripleo-heat-templates/common/deploy-steps.j2-                              state: present
usr/share/openstack-tripleo-heat-templates/common/deploy-steps.j2-                              no_extra_spaces: true
usr/share/openstack-tripleo-heat-templates/common/deploy-steps.j2-                              section: main
usr/share/openstack-tripleo-heat-templates/common/deploy-steps.j2-                              option: dns
usr/share/openstack-tripleo-heat-templates/common/deploy-steps.j2-                              value: none
usr/share/openstack-tripleo-heat-templates/common/deploy-steps.j2-                              backup: true


I think you can mark the BZ as duplicate of BZ#1903146.

Thank you,
Mircea

Comment 10 xiachen 2021-09-02 01:37:42 UTC
Hi Mircea,
Got it, thanks for your confirmation.


Close this bug as duplicate of BZ#1903146.

*** This bug has been marked as a duplicate of bug 1903146 ***