Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
When doing PXE/kickstart installs of RHEL6 from satellite, /etc/resolv.conf gets corrupted.
NetworkManager is correctly writing resolv.conf with DNS information obtained from DHCP, however, this is being overwritten by another process which breaks name resolution in the %post scripts; this means that the RHEL6 hosts are not registering to Satellite.
Contents of resolv.conf at %pre:
# Generated by NetworkManager
domain myhost.example.com
search myhost.example.com etc.example.com example.com nameserver 10.20.30.40
Contents of resolv.conf at %post:
search myhost.example.com
The change to resolv.conf happens as Anaconda switches to the "Starting installation process" screen. It does not appear to be NetworkManager changing resolv.conf because the file does not have the "#Generated by NetworkManager" header
This looks to be the same issue as seen in BZ 622927https://bugzilla.redhat.com/show_bug.cgi?id=622927
Status: CLOSED ERRATA
Fixed In Version: anaconda-14.17-1
anaconda-14.17-1 is not available for RHEL from supported repos
Version-Release number of selected component (if applicable):
6.0
How reproducible:
Every Time
We are installing via Satellite, meaning the version of Anaconda is the same as the 6.0 installation media. You can only use the version of anaconda that is provided as part of the boot image, which is provided as part of the installation tree downloaded by rhn-satellite-sync from Red Hat. There is no way to update this without Red Hat updating and releasing an updated version. We can't update the version of Anaconda in the SquashFS install.img file. And even then, the fix for this hasn't been backported to RHEL6.
At this time we are currently unable to properly build RHEL6 VMs because of this issue.
Comment 9RHEL Program Management
2011-03-21 20:50:00 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update release.
One of the cases in which /etc/resolv.conf can be overwritten by anaconda is when bare hostname (without dots) that can be resolved to a fqdn (we use socket.getfqdn() call) is set (--hostname=rhel6-broken-1 in this case?).
Anaconda is racing with NetworkManager to update the /etc/resolv.conf, so the bug might not be easily reproducible in different environment.
I tested locally that the patch from Fedora that keeps anaconda's hands off /etc/resolv.conf should resolve the issue.
(In reply to comment #10)
> One of the cases in which /etc/resolv.conf can be overwritten by anaconda is
> when bare hostname (without dots) that can be resolved to a fqdn (we use
> socket.getfqdn() call) is set (--hostname=rhel6-broken-1 in this case?).
Yes, --hostname is set to the short hostname. resolv.conf has the search domains set via DHCP, so it's able to resolve our short name into a FQDN. This would explain why I was having trouble reproducing it in another environment.
For QA:
I am able to reproduce with kickstart installation containing this network command:
network --device=eth0 --bootproto=dhcp --hostname=<short version of hostname obtained by dhcp>
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.
http://rhn.redhat.com/errata/RHBA-2011-0530.html
Comment 24Red Hat Bugzilla
2013-10-04 00:24:32 UTC
Removing external tracker bug with the id 'DOC-48007' as it is not valid for this tracker