Bug 2222761 - should have option to disable conflicting services [NEEDINFO]
Summary: should have option to disable conflicting services
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: rhel-system-roles
Version: 9.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 9.3
Assignee: Rich Megginson
QA Contact: Jakub Haruda
URL:
Whiteboard: role:firewall
Depends On:
Blocks: 2222809
TreeView+ depends on / blocked
 
Reported: 2023-07-13 16:17 UTC by Rich Megginson
Modified: 2023-08-10 14:18 UTC (History)
5 users (show)

Fixed In Version: rhel-system-roles-1.22.0-0.16.el9
Doc Type: Enhancement
Doc Text:
Enhancement: Role will now always attempt to unmask on role execution add variable 'firewall_disable_conflicting_services' to give the option of disabling of known conflicting services - Set to false by default Update README to document the following behavior of the system role: - linux-system-roles.firewall will attempt to install, unmask, and enable firewalld - linux-system-roles.firewall can attempt to disable directly conflicting services to firewalld - and that is enabled by setting the variable 'firewall_disable_conflicting_services' to true - list of conflicting services present in vars/main.yml test cases for these changes in tests/tests_default.yml Reason: role currently fails if firewalld was masked on run conflicting services have the potential to cause errors on role run - set to false by default due to runtime overhead associated with disabling conflicting services. An example of where this overhead may be a problem is our integration tests that have no need to use the feature. - Reason for specific implementation - ansible.builtin.service module fails when run to manage services that are not installed on the system, causing errors. While ignoring errors is a potential solution, it seemed like an improper solution as it would not be able to differentiate between an installed service that failing to be stopped and disabled vs a disable that failed due to not being installed. Result: - role no longer fails if firewalld is masked - users have the option to disable conflicting services (iptables.service, nftables.service, ufw.service respectively) Issue Tracker Tickets (Jira or BZ if any): - Addresses GitHub Issues: #103, #136
Clone Of:
: 2222809 (view as bug list)
Environment:
Last Closed:
Type: ---
Target Upstream Version:
Embargoed:
rmeggins: needinfo? (djez)
rmeggins: needinfo? (vdanek)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github linux-system-roles firewall pull 154 0 None open fix: unmask firewalld on run, disable conflicting services 2023-07-13 16:21:16 UTC
Red Hat Issue Tracker RHELPLAN-162310 0 None None None 2023-07-13 16:17:54 UTC

Description Rich Megginson 2023-07-13 16:17:33 UTC
When using the firewall role only the firewalld service, not nftables, should be running to avoid any conflicts. While it's trivial to disable/mask nftables in a separate task it would be nice to have the role to do the same and thus avoid any risk for issues.  See https://github.com/linux-system-roles/firewall/issues/136 and https://github.com/linux-system-roles/firewall/pull/154


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