Bug 1258929

Summary: Uninstallation of IPA leaves extra entry in /etc/hosts
Product: Red Hat Enterprise Linux 7 Reporter: Petr Vobornik <pvoborni>
Component: ipaAssignee: Pavel Picka <ppicka>
Status: CLOSED ERRATA QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: drieden, ksiddiqu, mbasti, mkosek, ppicka, rcritten
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.2.0-9.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 12:06:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Verify log for bz none

Description Petr Vobornik 2015-09-01 14:27:18 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/5266

If more entries are added into /etc/hosts during installation (ip4+ip6), after uninstall, only the last added entry is removed from /etc/hosts.

This is caused by multiple backups of /etc/host (backup created after each change) 

{{{
2015-08-27T12:25:13Z DEBUG Backing up system configuration file '/etc/hosts'
2015-08-27T12:25:13Z DEBUG Saving Index File to '/var/lib/ipa/sysrestore/sysrestore.index'
2015-08-27T12:25:13Z DEBUG Backing up system configuration file '/etc/hosts'
2015-08-27T12:25:13Z DEBUG Saving Index File to '/var/lib/ipa/sysrestore/sysrestore.index'
}}}

Comment 4 Pavel Picka 2015-10-06 12:09:38 UTC
Created attachment 1080211 [details]
Verify log for bz

Verified 

ipa-server-4.2.0-12.el7.x86_64

Comment 5 errata-xmlrpc 2015-11-19 12:06:09 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.

https://rhn.redhat.com/errata/RHBA-2015-2362.html