Bug 25889 - Firewalld + Libvirt
Summary: Firewalld + Libvirt
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal major
Target Milestone: Mageia 7
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2019-12-17 08:03 CET by Muhammad Tailounie
Modified: 2020-09-15 13:46 CEST (History)
8 users (show)

See Also:
Source RPM: firewalld-0.6.3-1.mga7.src.rpm
CVE:
Status comment:


Attachments
Installed packages, iptables output and error message of libvirt (4.65 KB, text/plain)
2020-09-07 17:30 CEST, Ulrich Beckmann
Details

Description Muhammad Tailounie 2019-12-17 08:03:42 CET
Firewald provided by Mageia fails to load zone file /usr/lib/firewalld/zones/libvirt.xml.

The version of FirewallD in Mageia is 0.6.3



Please refer to:

https://bugzilla.redhat.com/show_bug.cgi?id=1692188

Which recommends building libvirt '--without-firewalld-zone' until a newer version of the package is provided.
Comment 1 Lewis Smith 2019-12-17 14:21:17 CET
Thank you for the report and the valuable reference, which includes:
"Until your distro has a firewalld that supports rule priorities, you should build the libvirt packages with "configure --without-firewalld-zone ....""

For an immediate but temporary fix:
"(or just remove /usr/lib/firewalld/zones/libvirt.xml to immediately solve the problem on your host (until the next time you update the libvirt packages)"

Two possibilities:
1. update firewalld https://www.firewalld.org, currently at 0.7.1.
The notes for 0.7.0 say:
"New features:
    Rich Rule Priorities"      [link]
which seems right.
 OR
2. In the meantime, re-build libvirt as described. I cannot find any pkg or SRPM which corresponds, although libvirt is listed - no maintainer; Nearest
 libvirt-sandbox-0.8.0-2.mga7.src.rpm.
CC'ing Thierry & DavidG as most recent committers, otherwise assigning globally.

CC: (none) => geiger.david68210, thierry.vignaud
Assignee: bugsquad => pkg-bugs
Source RPM: (none) => firewalld-0.6.3-1.mga7.src.rpm, libvirt-sandbox-0.8.0-2.mga7.src.rpm

Comment 2 Lewis Smith 2019-12-17 17:07:05 CET
Found the libvirt package at last, noted above in SRPM. No official maintainer, but Thierry has been the active maintainer. Ignore libvirt-sandbox in previous comment.
DavidG is OK for firewalld; neoclust official maintainer now CC'd.

CC: (none) => mageia
Source RPM: firewalld-0.6.3-1.mga7.src.rpm, libvirt-sandbox-0.8.0-2.mga7.src.rpm => firewalld-0.6.3-1.mga7.src.rpm, libvirt-5.3.0-2.mga7.src.rpm

Comment 3 David GEIGER 2019-12-18 07:54:39 CET
Should be fixed with firewalld-0.7.2-1.mga7 in Core/Updates_testing repo!
Comment 4 David Walser 2020-08-31 00:16:37 CEST
This never got assigned to QA.

Advisory:

The firewalld package has been updated to version 0.7.2, which adds support
for rule priorities, which is needed by the libvirt firewalld rules.

References:
https://firewalld.org/2019/05/firewalld-0-6-4-release
https://firewalld.org/2019/06/firewalld-0-7-0-release
https://firewalld.org/2019/07/firewalld-0-7-1-release
https://firewalld.org/2019/10/firewalld-0-7-2-release

core/updates_testing/firewalld-0.7.2-1.mga7.src.rpm


You may want to ask to have it updated again, but I'll leave that up to you:
https://firewalld.org/2020/01/firewalld-0-7-3-release
https://firewalld.org/2020/04/firewalld-0-7-4-release
https://firewalld.org/2020/06/firewalld-0-7-5-release

Assignee: pkg-bugs => qa-bugs
Source RPM: firewalld-0.6.3-1.mga7.src.rpm, libvirt-5.3.0-2.mga7.src.rpm => firewalld-0.6.3-1.mga7.src.rpm

Comment 5 David Walser 2020-08-31 16:26:42 CEST
David updated to 0.7.5.

Advisory:

The firewalld package has been updated to version 0.7.5, which adds support
for rule priorities, which is needed by the libvirt firewalld rules.

References:
https://firewalld.org/2019/05/firewalld-0-6-4-release
https://firewalld.org/2019/06/firewalld-0-7-0-release
https://firewalld.org/2019/07/firewalld-0-7-1-release
https://firewalld.org/2019/10/firewalld-0-7-2-release
https://firewalld.org/2020/01/firewalld-0-7-3-release
https://firewalld.org/2020/04/firewalld-0-7-4-release
https://firewalld.org/2020/06/firewalld-0-7-5-release

core/updates_testing/firewalld-0.7.5-1.mga7.src.rpm
Comment 6 Herman Viaene 2020-09-02 14:33:36 CEST
Using QArepo:
Sorry, the following package cannot be selected:

- firewalld-0.7.5-1.mga7.noarch (due to unsatisfied python3-firewall[== 0.7.5-1.mga7])

CC: (none) => herman.viaene

Comment 7 David Walser 2020-09-02 15:01:58 CEST
Then you didn't use QArepo correctly.  If you filter it on the version/release of the SRPM, in most cases you should get everything (so *-0.7.5-1.mga7.*).

Package list:
firewalld-0.7.5-1.mga7
python3-firewall-0.7.5-1.mga7
firewalld-filesystem-0.7.5-1.mga7
firewall-applet-0.7.5-1.mga7
firewall-config-0.7.5-1.mga7
Comment 8 Ulrich Beckmann 2020-09-07 17:30:57 CEST
Created attachment 11871 [details]
Installed packages, iptables output and error message of libvirt

Host is Mageia 7, network managed by NetworkManager.
Uninstalled shorewall, installed firewalld instead.

Tried to install Mageia 8 as guest from Beta 1 KDE Plasma Live iso. Network <default> could not be started, see error message in attachment.

Switched network to enp14s0:macvtap, bridge mode, driver virtio. Then everything went smooth. As I didn't use firewalld before, and network state is exactly as before, I personally don't see any regression.

@Mohammad Tailounie: Any comment, any hint?

CC: (none) => bequimao.de

Comment 9 Ulrich Beckmann 2020-09-10 17:04:05 CEST
As there are no other takers, I set it to ok.

Ulrich

Status: NEW => RESOLVED
Resolution: (none) => FIXED
Whiteboard: (none) => MGA7-64-OK

Comment 10 Ulrich Beckmann 2020-09-10 17:08:30 CEST
Sorry, I did not want to set the bug report as resolved. My fault.

Ulrich

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 11 Thomas Andrews 2020-09-13 22:10:11 CEST
Validating. Advisory in Comment 5.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Aurelien Oudelet 2020-09-14 21:40:14 CEST

CC: (none) => ouaurelien
Target Milestone: --- => Mageia 7
Keywords: (none) => advisory

Comment 12 Mageia Robot 2020-09-15 13:46:57 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2020-0207.html

Resolution: (none) => FIXED
Status: REOPENED => RESOLVED


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