Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654706 - net-firewall/firewalld - /etc/init.d/firewalld: Error: iptables* is the name of a real and virtual service.
Summary: net-firewall/firewalld - /etc/init.d/firewalld: Error: iptables* is the name ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-03 09:40 UTC by Matthias Gerstner
Modified: 2018-10-18 05:20 UTC (History)
0 users

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 Matthias Gerstner 2018-05-03 09:40:04 UTC
When installing firewalld then openrc will start printing the following errors:

Error: iptables is the name of a real and virtual service.
Error: ip6tables is the name of a real and virtual service.
Error: ebtables is the name of a real and virtual service.

This is caused by a "Provides: iptables ip6tables ebtables" line in the firewalld init script. The behaviour was added in openrc a while ago:

https://github.com/OpenRC/openrc/commit/69f052b

The solution is to either completely remove the Provides line, or replace it by something like "Provides: firewall".

Reproducible: Always

Steps to Reproduce:
1. emerge firewalld iptables
2. /etc/init.d/firewalld start
3. Observe openrc error messages
Actual Results:  
openrc outputs the following messages:

Error: iptables is the name of a real and virtual service.
Error: ip6tables is the name of a real and virtual service.
Error: ebtables is the name of a real and virtual service.

Apart from this everything works normally.

Expected Results:  
No error messages please.
Comment 1 Larry the Git Cow gentoo-dev 2018-10-18 05:20:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9475fd2b16b650273ca215b4b88b08f7f3856d96

commit 9475fd2b16b650273ca215b4b88b08f7f3856d96
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2018-10-18 04:50:47 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2018-10-18 05:19:24 +0000

    net-firewall/firewalld: Version bump to 0.6.3
    
    Handle a bunch of overdue changes at the same time:
            - Depend on net-firewall/nftables (see upstream commit 7fc4b6cfb52c)
            - Switch to python-single-r1 (see upstream commit 6d5c0c61fe04)
            - Check for required kernel options (bug 540110)
            - Update OpenRC init file (bug 654706)
    
    Closes: https://github.com/gentoo/gentoo/pull/10033
    Closes: https://bugs.gentoo.org/540110
    Closes: https://bugs.gentoo.org/654706
    Closes: https://bugs.gentoo.org/662314
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 net-firewall/firewalld/Manifest               |   1 +
 net-firewall/firewalld/files/firewalld.init   |   4 +-
 net-firewall/firewalld/firewalld-0.6.3.ebuild | 100 ++++++++++++++++++++++++++
 3 files changed, 103 insertions(+), 2 deletions(-)