Bug 1339251 - RFE preserve service.xml.old after service deletion in permanent scope
Summary: RFE preserve service.xml.old after service deletion in permanent scope
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: firewalld
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact: Tomas Dolezal
URL:
Whiteboard:
Depends On:
Blocks: 1302802
TreeView+ depends on / blocked
 
Reported: 2016-05-24 13:22 UTC by Tomas Dolezal
Modified: 2016-08-16 20:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-16 20:59:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomas Dolezal 2016-05-24 13:22:53 UTC
Description of problem:
currently, if one deletes service using firewall-cmd, service.xml.old file don't get updated with latest service.xml contents.

please update all --delete calls to this behaviour (zone, ipset, icmptype,service)

Version-Release number of selected component (if applicable):
v0.4.1.2-90-g5da1724

How reproducible:
always

Steps to Reproduce:
firewall-cmd --new-service=myserv --permanent
firewall-cmd --add-port 2185/udp
firewall-cmd --service myserv --add-source-port 2187/udp --permanent
firewall-cmd --delete-service myserv --permanent

Actual results:
myserv.xml with sport 2187 gets deleted
myserv.xml.old without sport 2187 but with 2185 port exists

Expected results:
myserv.xml.old contains contents of myserv.xml from before service deletion

Additional info:
having .old service file containing even older data is misleading

Comment 1 Tomas Dolezal 2016-05-24 13:24:22 UTC
fix in reproducer on 2nd line:

firewall-cmd --new-service=myserv --permanent
firewall-cmd --service myserv --add-port 2185/udp
firewall-cmd --service myserv --add-source-port 2187/udp --permanent
firewall-cmd --delete-service myserv --permanent

Comment 2 Thomas Woerner 2016-05-25 13:19:14 UTC
This also applies to zones, icmptypes and ipsets.

Comment 4 Thomas Woerner 2016-08-16 20:59:05 UTC
Fixed in firewalld-0.4.3 in F23 and up


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