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.
Bug 1894488 - [RFE] Support for firewalld zone in ipaserver and ipareplica roles
Summary: [RFE] Support for firewalld zone in ipaserver and ipareplica roles
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ansible-freeipa
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Thomas Woerner
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks: 1894575
TreeView+ depends on / blocked
 
Reported: 2020-11-04 11:10 UTC by Thomas Woerner
Modified: 2021-05-18 15:51 UTC (History)
4 users (show)

Fixed In Version: ansible-freeipa-0.3.0-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:51:22 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Thomas Woerner 2020-11-04 11:10:56 UTC
Add support for firewalld zone to ipaserver and ipareplica roles.

The new variables ipa[server,replica]_firewalld_zone have been added to
be able to set the zone in which the needed services for IPA are enabled.

New tasks have been added to check if the zone is available in the runtime
and also permamanet environment.

The code to enable firewalld has been moved out of thee
ipa[server,replica]_install_packages blocks to make sure that the firewalld
service is also enabled if the package is already installed.

Fixes: issue #177 (How to set up firewalld zones?)

Upstream PR: https://github.com/freeipa/ansible-freeipa/pull/389/

Comment 9 Varun Mylaraiah 2020-12-11 10:53:26 UTC
Verified
ansible-freeipa-0.3.1-1.el8.noarch


Master
=======
2020-12-11T09:37:31+0000 ansible_freeipa_tests/test_idm_deploy_master.py::TestMasterFirewalldZone::test_install_master_with_firewalld_zone 
2020-12-11T09:37:31+0000 -------------------------------- live log call ---------------------------------
2020-12-11T09:37:31+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['firewall-cmd', '--permanent', '--new-zone=LAN']
2020-12-11T09:37:31+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['firewall-cmd', '--permanent', '--zone=LAN', '--add-service=ssh']
2020-12-11T09:37:31+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['firewall-cmd', '--reload']
2020-12-11T09:37:32+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO WRITE inventory/server.hosts
2020-12-11T09:37:32+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO PUT install-server.yaml
2020-12-11T09:37:32+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/server.hosts', 'install-server.yaml']
2020-12-11T09:45:55+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['firewall-cmd', '--list-all', '--zone=LAN']
2020-12-11T09:45:55+0000 PASSED                                                                   [100%]


Replica
========
2020-12-11T09:07:50+0000 ansible_freeipa_tests/test_idm_deploy_replica.py::TestReplicaFirewalldZone::test_replica_with_firewalld_zone 
2020-12-11T09:07:50+0000 -------------------------------- live log call ---------------------------------
2020-12-11T09:07:50+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipactl', 'status']
2020-12-11T09:07:50+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO WRITE inventory/master.hosts
2020-12-11T09:07:50+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO PUT install-server.yaml
2020-12-11T09:07:50+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/master.hosts', 'install-server.yaml']
2020-12-11T09:15:44+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipactl', 'status']
2020-12-11T09:15:46+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['firewall-cmd', '--permanent', '--new-zone=LAN']
2020-12-11T09:15:47+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['firewall-cmd', '--permanent', '--zone=LAN', '--add-service=ssh']
2020-12-11T09:15:47+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['firewall-cmd', '--reload']
2020-12-11T09:15:47+0000 [pytest_multihost.host.Host.replica1.ParamikoTransport] INFO RUN ['firewall-cmd', '--permanent', '--new-zone=LAN']
2020-12-11T09:15:48+0000 [pytest_multihost.host.Host.replica1.ParamikoTransport] INFO RUN ['firewall-cmd', '--permanent', '--zone=LAN', '--add-service=ssh']
2020-12-11T09:15:48+0000 [pytest_multihost.host.Host.replica1.ParamikoTransport] INFO RUN ['firewall-cmd', '--reload']
2020-12-11T09:15:49+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO WRITE inventory/replicas.hosts
2020-12-11T09:15:49+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO PUT install-replicas.yaml
2020-12-11T09:15:49+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/replicas.hosts', 'install-replicas.yaml']
2020-12-11T09:21:14+0000 [pytest_multihost.host.Host.replica1.ParamikoTransport] INFO RUN ['firewall-cmd', '--list-all', '--zone=LAN']
2020-12-11T09:21:14+0000 PASSED          


Based on the test result, marking the bug VERIFIED.

Comment 11 errata-xmlrpc 2021-05-18 15:51:22 UTC
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 (ansible-freeipa 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/RHEA-2021:1860


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