Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 681714 - app-emulation/libvirt-5.1.0 with net-firewall/firewalld-0.6.3 - Error: PARSE_ERROR: 'libvirt.xml': rule: Unexpected attribute priority
Summary: app-emulation/libvirt-5.1.0 with net-firewall/firewalld-0.6.3 - Error: PARSE_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-25 06:47 UTC by Dennis Schridde
Modified: 2019-04-08 02:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2019-03-25 06:47:54 UTC
# firewall-cmd --check-config
Error: PARSE_ERROR: 'libvirt.xml': rule: Unexpected attribute priority

File /usr/lib/firewalld/zones/libvirt.xml (installed by app-emulation/libvirt-5.1.0) contains:
<rule priority='32767'>
  <reject/>
</rule>

Laine Stump <laine@redhat.com> of upstream libvirt comments:
> This is because your firewalld package isn't new enough to support rule
> priorities, but when you (or your distro) built the libvirt package, it was
> configured with "--with-firewalld-zone", which causes the firewalld zonefile
> /usr/lib/firewalld/zones/libvirt.xml to be installed.
> 
> Until your distro has a firewalld that supports rule priorities, you should
> build the libvirt packages with "configure --without-firewalld-zone ...." (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).
> 
> For more details, read the commit log for upstream commits 3b71f2e42 and
> ae05211a.

See-Also: https://bugzilla.redhat.com/show_bug.cgi?id=1692188
Comment 1 Larry the Git Cow gentoo-dev 2019-04-08 02:52:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=648d0d42638dbf2cf152c3b2ba20adb1debd4411

commit 648d0d42638dbf2cf152c3b2ba20adb1debd4411
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2019-04-08 01:19:53 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2019-04-08 02:29:39 +0000

    app-emulation/libvirt: depend on newer firewalld package
    
    In order to support --with-firewalld-zone, we need a recent enough
    firewalld version installed.
    
    Thanks to Denis Schridde for triaging and contacting upstream!
    
    Closes: https://bugs.gentoo.org/681714
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 app-emulation/libvirt/{libvirt-5.1.0.ebuild => libvirt-5.1.0-r1.ebuild} | 2 +-
 app-emulation/libvirt/libvirt-9999.ebuild                               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)