Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1894493

Summary: [RFE] ipagroup: Add support for the IPA CLI option `posix`
Product: Red Hat Enterprise Linux 8 Reporter: Thomas Woerner <twoerner>
Component: ansible-freeipaAssignee: Thomas Woerner <twoerner>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: fhanzelk, mvarun, ndehadra, pcech, pvoborni
Target Milestone: rcKeywords: FutureFeature, RFE
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ansible-freeipa-0.3.0-1 Doc Type: Enhancement
Doc Text:
.The `ipagroup` Ansible module now supports the `posix` option With this update, the equivalent of the {IPA} (IdM) CLI `--posix` option has been added to the `ipagroup` Ansible module. Using the `ipagroup` `posix` option, you can create a POSIX group or modify an existing user group and make it a POSIX group. The update includes the validation of external, POSIX and non-POSIX groups in IdM. You can now also prevent the system from changing the type of a group. As a result, you can avoid unneeded API failures.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:51:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1894575    

Description Thomas Woerner 2020-11-04 11:13:30 UTC
ipagroup: Add support for the IPA CLI option `posix`

This patch adds support for the IPA CLI option posix when modifying an existing group. Also, enhances verification of external and posix/non-posix groups to avoid unneded API failures (e.g. when no change to the posix/external status is needed).

A new test was added:
    
    tests/group/test_group_external_nonposix.yml


This PR was based on PR #320.

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

Comment 8 Varun Mylaraiah 2020-12-11 10:47:51 UTC
Verified
ansible-freeipa-0.3.1-1.el8.noarch

                                        
2020-12-11T08:07:14+0000 ansible_freeipa_tests/group_module.py::TestGroupSupportCliOptionPosix::test_add_nonposix_group_with_posix_no 
2020-12-11T08:07:14+0000 -------------------------------- live log call ---------------------------------
2020-12-11T08:07:14+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipactl', 'status']
2020-12-11T08:07:17+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin']
2020-12-11T08:07:17+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'group-show', '01nonposix']
2020-12-11T08:07:18+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kdestroy', '-A']
2020-12-11T08:07:18+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO WRITE inventory/group.hosts
2020-12-11T08:07:18+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO PUT group_module.yml
2020-12-11T08:07:18+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/group.hosts', 'group_module.yml']
2020-12-11T08:07:24+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin']
2020-12-11T08:07:25+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'group-show', '01nonposix', '--all']
2020-12-11T08:07:26+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kdestroy', '-A']
2020-12-11T08:07:26+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin']
2020-12-11T08:07:26+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'group-show', '01nonposix', '--all']
2020-12-11T08:07:27+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kdestroy', '-A']
2020-12-11T08:07:27+0000 PASSED                                                                   [ 76%]
2020-12-11T08:07:27+0000 ansible_freeipa_tests/group_module.py::TestGroupSupportCliOptionPosix::test_update_nonposix_to_posix 
2020-12-11T08:07:27+0000 -------------------------------- live log call ---------------------------------
2020-12-11T08:07:27+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin']
2020-12-11T08:07:28+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'group-add', '02nonposixtoposix', '--nonposix']
2020-12-11T08:07:29+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin']
2020-12-11T08:07:29+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'group-show', '02nonposixtoposix', '--all']
2020-12-11T08:07:30+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kdestroy', '-A']
2020-12-11T08:07:30+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin']
2020-12-11T08:07:31+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'group-show', '02nonposixtoposix', '--all']
2020-12-11T08:07:32+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kdestroy', '-A']
2020-12-11T08:07:32+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO WRITE inventory/group.hosts
2020-12-11T08:07:32+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO PUT group_module.yml
2020-12-11T08:07:32+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/group.hosts', 'group_module.yml']
2020-12-11T08:07:38+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin']
2020-12-11T08:07:39+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'group-show', '02nonposixtoposix', '--all']
2020-12-11T08:07:39+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kdestroy', '-A']
2020-12-11T08:07:40+0000 PASSED                                                                   [ 80%]
2020-12-11T08:07:40+0000 ansible_freeipa_tests/group_module.py::TestGroupSupportCliOptionPosix::test_update_nonposix_to_external 
2020-12-11T08:07:40+0000 -------------------------------- live log call ---------------------------------
2020-12-11T08:07:40+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin']
2020-12-11T08:07:40+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'group-add', '03nonposixtoexternal', '--nonposix']
2020-12-11T08:07:41+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin']
2020-12-11T08:07:42+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'group-show', '03nonposixtoexternal', '--all']
2020-12-11T08:07:42+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kdestroy', '-A']
2020-12-11T08:07:43+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin']
2020-12-11T08:07:43+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'group-show', '03nonposixtoexternal', '--all']
2020-12-11T08:07:44+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kdestroy', '-A']
2020-12-11T08:07:44+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO WRITE inventory/group.hosts
2020-12-11T08:07:44+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO PUT group_module.yml
2020-12-11T08:07:44+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/group.hosts', 'group_module.yml']
2020-12-11T08:07:50+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin']
2020-12-11T08:07:51+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'group-show', '03nonposixtoexternal', '--all']
2020-12-11T08:07:52+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kdestroy', '-A']
2020-12-11T08:07:52+0000 PASSED                                                                   [ 83%]
2020-12-11T08:07:52+0000 ansible_freeipa_tests/group_module.py::TestGroupSupportCliOptionPosix::test_group_update_negative_scenarios[update_external_to_posix-Cannot change `external` status of group to `POSIX` or `non-external`] 
2020-12-11T08:07:52+0000 -------------------------------- live log call ---------------------------------
2020-12-11T08:07:52+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO WRITE inventory/group.hosts
2020-12-11T08:07:52+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO PUT group_module.yml
2020-12-11T08:07:52+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/group.hosts', 'group_module.yml']
2020-12-11T08:07:58+0000 PASSED                                                                   [ 86%]
2020-12-11T08:07:58+0000 ansible_freeipa_tests/group_module.py::TestGroupSupportCliOptionPosix::test_group_update_negative_scenarios[update_external_to_nonexternal-Cannot change `external` status of group to `POSIX` or `non-external`] 
2020-12-11T08:07:58+0000 -------------------------------- live log call ---------------------------------
2020-12-11T08:07:58+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO WRITE inventory/group.hosts
2020-12-11T08:07:58+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO PUT group_module.yml
2020-12-11T08:07:58+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/group.hosts', 'group_module.yml']
2020-12-11T08:08:06+0000 PASSED                                                                   [ 90%]
2020-12-11T08:08:06+0000 ansible_freeipa_tests/group_module.py::TestGroupSupportCliOptionPosix::test_group_update_negative_scenarios[update_posix_to_nonposix_with_posix_no-Cannot change `POSIX` status of a group to `non-POSIX` or `external`] 
2020-12-11T08:08:06+0000 -------------------------------- live log call ---------------------------------
2020-12-11T08:08:06+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO WRITE inventory/group.hosts
2020-12-11T08:08:06+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO PUT group_module.yml
2020-12-11T08:08:06+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/group.hosts', 'group_module.yml']
2020-12-11T08:08:12+0000 PASSED                                                                   [ 93%]
2020-12-11T08:08:12+0000 ansible_freeipa_tests/group_module.py::TestGroupSupportCliOptionPosix::test_group_update_negative_scenarios[update_posix_to_nonposix_with_nonposix_yes-Cannot change `POSIX` status of a group to `non-POSIX` or `external`] 
2020-12-11T08:08:12+0000 -------------------------------- live log call ---------------------------------
2020-12-11T08:08:12+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO WRITE inventory/group.hosts
2020-12-11T08:08:12+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO PUT group_module.yml
2020-12-11T08:08:12+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/group.hosts', 'group_module.yml']
2020-12-11T08:08:18+0000 PASSED                                                                   [ 96%]
2020-12-11T08:08:18+0000 ansible_freeipa_tests/group_module.py::TestGroupSupportCliOptionPosix::test_group_update_negative_scenarios[update_posix_to_external-Cannot change `POSIX` status of a group to `non-POSIX` or `external`] 
2020-12-11T08:08:18+0000 -------------------------------- live log call ---------------------------------
2020-12-11T08:08:18+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO WRITE inventory/group.hosts
2020-12-11T08:08:18+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO PUT group_module.yml
2020-12-11T08:08:18+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/group.hosts', 'group_module.yml']
2020-12-11T08:08:26+0000 PASSED                                                                   [100%]
2020-12-11T08:08:26+0000 


Based on the test result, marking the bug VERIFIED.

Comment 10 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

Comment 12 Red Hat Bugzilla 2023-09-15 00:50:40 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days