Bug 1205920 - iptables being overwritten by system-config-firewall
Summary: iptables being overwritten by system-config-firewall
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Build
Version: 5.4.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.4.0
Assignee: Joe Vlcek
QA Contact: Sean Myers
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-25 22:56 UTC by Joe Vlcek
Modified: 2015-06-16 12:55 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-16 12:55:23 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1100 0 normal SHIPPED_LIVE CFME 5.4.0 bug fixes, and enhancement update 2015-06-16 16:28:42 UTC

Description Joe Vlcek 2015-03-25 22:56:53 UTC
Description of problem:
When creating the image with Imagefactory system-config-firewall was
overwriting the /etc/sysconfig/iptables delivered by CFME.

Additionally on yum update of cfme the iptables we delivered was
overwriting any potential changes made by a customer.

Version-Release number of selected component (if applicable):


How reproducible:

Steps to Reproduce:
1. Build and launch a fresh image
2. notice /etc/sysconfig/iptables.old contains the content
delivered with CFME and, as indicated in the comment at the
top of /etc/sysconfig/iptables, a new version of the file
has been created by system-config-firewall.


3.

Actual results:


Expected results:
The version of iptables delivered with cfme be used for new images
and not overwrite any possible customizations when doing a yum update.


Additional info:

Comment 2 CFME Bot 2015-03-30 16:20:54 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/e88aadbaa10119646e9b18735d1a8c055da730e9

commit e88aadbaa10119646e9b18735d1a8c055da730e9
Author:     Joe VLcek <jvlcek>
AuthorDate: Wed Mar 25 18:44:45 2015 -0400
Commit:     Joe VLcek <jvlcek>
CommitDate: Mon Mar 30 11:58:45 2015 -0400

    Incorporate the iptable updates without overwriting installed version
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1205920
    https://bugzilla.redhat.com/show_bug.cgi?id=1202478
    
    [skip ci]

 system/COPY/etc/sysconfig/iptables     | 22 ----------------------
 system/TEMPLATE/etc/sysconfig/iptables | 22 ++++++++++++++++++++++
 system/cfme-setup.sh                   |  7 +++++++
 3 files changed, 29 insertions(+), 22 deletions(-)
 delete mode 100644 system/COPY/etc/sysconfig/iptables
 create mode 100644 system/TEMPLATE/etc/sysconfig/iptables

Comment 5 Sean Myers 2015-05-01 01:16:14 UTC
Joe, as far as I can tell, /etc/sysconfig/iptables has been overwritten by system-config-firewall as explained in the bug report. I also don't see "/var/www/miq/system/TEMPLATE/etc/sysconfig/iptables" on the filesystem, as indicated in the referenced commit.

Has that commit been superseded by something else, or do you have some insight on how I can verify this? Right now it looks like the system-config-firewall rules are still trumping.

Comment 6 Joe Vlcek 2015-05-01 12:33:04 UTC
(In reply to Sean Myers from comment #5)
> Joe, as far as I can tell, /etc/sysconfig/iptables has been overwritten by
> system-config-firewall as explained in the bug report. I also don't see
> "/var/www/miq/system/TEMPLATE/etc/sysconfig/iptables" on the filesystem, as
> indicated in the referenced commit.
> 
> Has that commit been superseded by something else, or do you have some
> insight on how I can verify this? Right now it looks like the
> system-config-firewall rules are still trumping.

Sean,

Yes a new solution has been implemented. Sorry this bug didn't get updated
to indicate that.

This commit supersedes the initial solution:

https://github.com/ManageIQ/manageiq/commit/cf9f8924d68568e89595cd1156290069114ec878#diff-2dfb25f9c3c8b0ebb13f5329160ed71b

I have two suggestions for confirming this:

#1 - Confirm ports 5900:5999 are open. Start with"
     "grep ACCEPT /etc/sysconfig/iptables" and confirm that port range is
     listed.

#2 - By verifying BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1202478
     which this BZ enables to work.

Comment 7 Sean Myers 2015-05-08 17:45:33 UTC
Verified on 5.4.0.0.25.20150429111523_0455f87

Comment 9 errata-xmlrpc 2015-06-16 12:55:23 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-1100.html


Note You need to log in before you can comment on or make changes to this bug.