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.

Bug 947216

Summary: persist command does not work on /etc/hosts file after reboot.
Product: Red Hat Enterprise Linux 6 Reporter: Josh Carter <jocarter>
Component: ovirt-nodeAssignee: Fabian Deutsch <fdeutsch>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.4CC: acathrow, bsarathy, chetan, cpelland, cshao, fdeutsch, gouyang, hadong, huiwa, jboggs, jmann, leiwang, mburns, mkalinin, ovirt-maint, yaniwang, ycui
Target Milestone: rcKeywords: Regression, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A previous fix which populated an empty /etc/hosts file with default entries also overwrote an /etc/hosts file populated with custom entries. Now, when ovirt-node detects that the /etc/hosts file contains custom entries, the file is persisted upon reboot.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 19:30:47 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:
Bug Depends On:    
Bug Blocks: 950136    

Description Josh Carter 2013-04-01 20:24:58 UTC
Description of problem: Unable to make changes to the /etc/host file then persist it and have the file stay persisted after a reboot on Red Hat Enterprise Virtualization Hypervisor release 6.4 (20130318.1.el6_4).


Version-Release number of selected component (if applicable):
Red Hat Enterprise Virtualization Hypervisor release 6.4 (20130318.1.el6_4)


How reproducible: Very


Steps to Reproduce:
1. Install Red Hat Enterprise Virtualization Hypervisor release 6.4 (20130318.1.el6_4)
2. Modify /etc/hosts
3. persist /etc/hosts
4. reboot
5. changes are not saved. 
  
Actual results:
Changes to /etc/hosts are lost after a reboot. 

Expected results:
Changes should show up after a system reboot. 

Additional info:

I had a lab hypervisor that has the bellow release on it and I was able to presist the /etc/hosts file successfully. 
/etc/redhat-release 
Red Hat Enterprise Virtualization Hypervisor release 6.3 (20121212.0.el6_3)

Updated to 

/etc/redhat-release 
Red Hat Enterprise Virtualization Hypervisor release 6.4 (20130318.1.el6_4)

Unable to persist the /etc/hosts file but able to persist /config/etc/hosts.

Comment 4 Josh Carter 2013-04-02 22:06:03 UTC
I can persist other files fine just not /etc/hosts.

Comment 15 errata-xmlrpc 2014-01-21 19:30:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-0033.html