Description of problem: There is non-logical behaviour of firewalld when working with icmptypes through d-bus interface. Renaming ICMP type changes it's object path in d-bus which causes some problems: * There is no way how to catch Renamed signal - it is not send to old path and you don't get new object path until you call getIcmpTypeByName but by that time signal is long time gone. * Instead of this action fires Remove signal on the old ICMP type which should inform program that it shouldn't work with given path, but it can't resolve if it is really deleted or just renamed. Why is object path changing when renaming? Is there any good reason? Version-Release number of selected component (if applicable): upstream git How reproducible: deterministic Steps to Reproduce: 1. add new icmp type [...config.addIcmpType()] 2. rename to other name [...config.icmptype.rename() on correct path] 3. try to continue working with path from previous point Actual results: fails - org.freedesktop.DBus.Error.UnknownMethod Expected results: scripts should be able to continue to work wit allocated object patch even after rename. Otherwise it should be mentioned in d-bus documentation. Additionally there is no point in firing signals on new object paths that were just created.
applicable also for zones and services. I'm not sure how to work with this. If you leave me here some note, it would be nice.
I agree, it should not happen in this way.
Fixed upstream: https://git.fedorahosted.org/cgit/firewalld.git/commit/?id=300ef827aea0a107070ada93fd3c20e4d2e38073
Verified. Works fine for me. Updated tests to current behaviour to cover missing parts. Thanks.
firewalld-0.3.12-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/firewalld-0.3.12-1.fc21
firewalld-0.3.12-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/firewalld-0.3.12-1.fc20
Package firewalld-0.3.12-1.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing firewalld-0.3.12-1.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-12912/firewalld-0.3.12-1.fc21 then log in and leave karma (feedback).
firewalld-0.3.12-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
firewalld-0.3.12-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.