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.
The test is passing on RHEL8.4 (firewalld-0.8.2-6.el8.noarch), however test fails on distros with newer firewalld. Looking at the test, maybe `firewall-cmd --reload` step cleans zones set by NetworkManager on newer versions? When doing check right before firewalld reload, zone is set. Eric can you check it is not a firewalld issue? Thank you!
Comment 2Beniamino Galvani
2021-07-27 09:04:20 UTC
Note that in the "Status After Scenario" section, "iface0" is not yet activated:
iface0 ovs-interface connecting (getting IP configuration) ovs-iface0
because it's waiting an IP via DHCP. Maybe firewalld no longer sets the zone on reload if the device is still activating?
(In reply to Beniamino Galvani from comment #2)
> Note that in the "Status After Scenario" section, "iface0" is not yet
> activated:
>
> iface0 ovs-interface connecting (getting IP configuration)
> ovs-iface0
>
> because it's waiting an IP via DHCP. Maybe firewalld no longer sets the zone
> on reload if the device is still activating?
My guess is this broke when we made the changes for bug 1928860. Firewalld now calls dev.get_ip_iface() instead of dev.get_iface(). I thought get_ip_iface() should return all interfaces _capable_ of having an IP. Not those that _actively_ have an IP.
Note: When firewalld reloads it asks NM for all the connections and their zone assignments.
Comment 4Beniamino Galvani
2021-07-28 15:12:33 UTC
> > I thought get_ip_iface() should return all interfaces _capable_ of having an IP. Not those that _actively_ have an IP.
>
> I would have thought the same, however get_ip_face() returns the interface only when the device is activated:
*sigh* I also thought so.
Yes, this code is very old, and I don't think the way how NM exposes ip-iface vs iface makes sense.
I don't know why it is that way, I don't think it should be.
fixed upstream by https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/949.
Now NetworkManager listens to "Reloaded" signal and reconfigures the zones. The behavior is the same (from NM's point of view), as if firewalld gets restarted (dropping of the bus and reappearing).
Merged upstream to main (1.33.1+) and nm-1-32 (1.32.7+).
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 (Moderate: NetworkManager security, bug fix, and enhancement update), 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://access.redhat.com/errata/RHSA-2021:4361