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 2010633

Summary: [RFE] Add ability to run modules remotely
Product: Red Hat Enterprise Linux 9 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: 9.0CC: mvarun
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ansible-freeipa-0.4.0-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 12:47:27 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:

Description Thomas Woerner 2021-10-05 08:43:57 UTC
This bug was initially created as a copy of Bug #1918025

I am copying this bug because: 



Description of problem:

Right now, it appears that many of the modules (ipahost, ipaservice etc.) are required to run on the ipa server.  Therefore, they are not really a replacement
for the ipa_host, ipa_service etc. modules that are in the community version upstream.  Those can be run remotely and it is possible to authenticate using admin user/pass or GSSAPI.

Requiring the modules to be run on the ipa server means having to provide ssh credentials onto the ipa server to, for example, an openstack deployer.  This is something folks could be loath to do.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 7 Varun Mylaraiah 2021-10-27 02:18:23 UTC
Verified

ansible-freeipa-0.4.0-1.el9.noarch
ipa-server-4.9.6-9.el9.x86_64

============================= test session starts ==============================
2021-10-26T12:39:04+0000 platform linux -- Python 3.9.6, pytest-3.10.1, py-1.10.0, pluggy-1.0.0 -- /usr/bin/python3
2021-10-26T12:39:04+0000 cachedir: .pytest_cache
2021-10-26T12:39:04+0000 metadata: {'Python': '3.9.6', 'Platform': 'Linux-5.11.12-300.fc34.x86_64-x86_64-with-glibc2.33', 'Packages': {'pytest': '3.10.1', 'py': '1.10.0', 'pluggy': '1.0.0'}, 'Plugins': {'metadata': '1.11.0', 'html': '1.22.1', 'sourceorder': '0.5.1', 'multihost': '3.4'}, 'CI': 'true', 'BUILD_NUMBER': '6', 'BUILD_ID': '6', 'BUILD_URL': 'https://ci-jenkins-csb-idmops.apps.ocp-c1.prod.psi.redhat.com/job/ansible-freeipa-RHEL9.0/job/Nightly/job/tier-1-RHEL9.0-Nightly-pytest-remote-module/6/', 'NODE_NAME': 'permanent-ftrivino-jenkins-big-agent-7', 'JOB_NAME': 'ansible-freeipa-RHEL9.0/Nightly/tier-1-RHEL9.0-Nightly-pytest-remote-module', 'BUILD_TAG': 'jenkins-ansible-freeipa-RHEL9.0-Nightly-tier-1-RHEL9.0-Nightly-pytest-remote-module-6', 'EXECUTOR_NUMBER': '9', 'JENKINS_URL': 'https://ci-jenkins-csb-idmops.apps.ocp-c1.prod.psi.redhat.com/', 'WORKSPACE': '/home/fedora/workspace/ansible-freeipa-RHEL9.0/Nightly/tier-1-RHEL9.0-Nightly-pytest-remote-module'}
2021-10-26T12:39:04+0000 rootdir: /home/fedora/workspace/ansible-freeipa-RHEL9.0/Nightly/tier-1-RHEL9.0-Nightly-pytest-remote-module/ansible-freeipa-tests, inifile:
2021-10-26T12:39:04+0000 plugins: metadata-1.11.0, html-1.22.1, sourceorder-0.5.1, multihost-3.4
2021-10-26T12:39:04+0000 collecting ... collected 46 items
2021-10-26T12:39:04+0000 
2021-10-26T12:48:14+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestRemoteModuleExecutionPrerequiste::test_prerequisite PASSED [  2%]
2021-10-26T12:48:29+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestUser::test_remote_module_user_add PASSED [  4%]
2021-10-26T12:48:36+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestUser::test_remote_module_user_delete PASSED [  6%]
2021-10-26T12:48:56+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestGroup::test_remote_module_group_add_and_modify PASSED [  8%]
2021-10-26T12:49:07+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestGroup::test_remote_module_group_delete PASSED [ 10%]
2021-10-26T12:49:24+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestHost::test_remote_module_host_add_and_modify PASSED [ 13%]
2021-10-26T12:49:31+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestHost::test_remote_module_host_delete PASSED [ 15%]
2021-10-26T12:49:40+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestHost::test_remote_module_hostgroup_add PASSED [ 17%]
2021-10-26T12:49:47+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestHost::test_remote_module_hostgroup_delete PASSED [ 19%]
2021-10-26T12:49:59+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestPasswordpolicy::test_remote_module_pwpolicy_add PASSED [ 21%]
2021-10-26T12:50:07+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestPasswordpolicy::test_remote_module_pwpolicy_remove PASSED [ 23%]
2021-10-26T12:50:17+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestLocation::test_remote_module_location_add PASSED [ 26%]
2021-10-26T12:50:24+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestLocation::test_remote_module_location_remove PASSED [ 28%]
2021-10-26T12:50:43+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestAutomember::test_remote_module_automember_group_hostgroup_rule_add_and_modify PASSED [ 30%]
2021-10-26T12:50:55+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestAutomember::test_remote_module_automember_group_hostgroup_rule_remove PASSED [ 32%]
2021-10-26T12:51:05+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestAutomount::test_remote_module_automount_location_add PASSED [ 34%]
2021-10-26T12:51:12+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestAutomount::test_remote_module_automount_location_remove PASSED [ 36%]
2021-10-26T12:51:27+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestConfig::test_remote_module_config_update PASSED [ 39%]
2021-10-26T12:51:41+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestService::test_remote_module_service_add_and_modify PASSED [ 41%]
2021-10-26T12:51:49+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestService::test_remote_module_service_remove PASSED [ 43%]
2021-10-26T12:52:20+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestDNS::test_remote_module_dnsconfig_add PASSED [ 45%]
2021-10-26T12:52:28+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestDNS::test_remote_module_dnsconfig_remove PASSED [ 47%]
2021-10-26T12:52:35+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestDNS::test_remote_module_dnsforwardzone_add PASSED [ 50%]
2021-10-26T12:52:43+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestDNS::test_remote_module_dnsforwardzone_remove PASSED [ 52%]
2021-10-26T12:52:51+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestDNS::test_remote_module_dnszone_add PASSED [ 54%]
2021-10-26T12:52:58+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestDNS::test_remote_module_dnszone_remove PASSED [ 56%]
2021-10-26T12:53:20+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestDNS::test_remote_module_dnsrecords_add PASSED [ 58%]
2021-10-26T12:53:28+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestDNS::test_remote_module_dnsrecords_remove PASSED [ 60%]
2021-10-26T12:53:38+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestHBAC::test_remote_module_hbacsvc_add PASSED [ 63%]
2021-10-26T12:53:47+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestHBAC::test_remote_module_hbacsvcgroup_add PASSED [ 65%]
2021-10-26T12:53:54+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestHBAC::test_remote_module_hbacrule_add PASSED [ 67%]
2021-10-26T12:54:10+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestHBAC::test_remote_module_hbacrule_hbacsvc_hbacsvcgroup_reomve PASSED [ 69%]
2021-10-26T12:54:20+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestRBAC::test_remote_module_rbac_delegation_add PASSED [ 71%]
2021-10-26T12:54:26+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestRBAC::test_remote_module_rbac_privilege_add PASSED [ 73%]
2021-10-26T12:54:35+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestRBAC::test_remote_module_rbac_role_add PASSED [ 76%]
2021-10-26T12:54:43+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestRBAC::test_remote_module_rbac_selfservice_add PASSED [ 78%]
2021-10-26T12:54:50+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestRBAC::test_remote_module_rbac_permission_add PASSED [ 80%]
2021-10-26T12:55:00+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestSudo::test_remote_module_sudo_cmd_add PASSED [ 82%]
2021-10-26T12:55:07+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestSudo::test_remote_module_sudo_rule_add PASSED [ 84%]
2021-10-26T12:55:14+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestSudo::test_remote_module_sudo_command_group_add PASSED [ 86%]
2021-10-26T12:55:30+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestSudo::test_remote_module_sudo_command_rule_cmdgroup_remove PASSED [ 89%]
2021-10-26T12:59:14+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestVault::test_remote_module_vault_standard_add PASSED [ 91%]
2021-10-26T12:59:23+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestVault::test_remote_module_vault_symmetric_add PASSED [ 93%]
2021-10-26T12:59:38+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestVault::test_remote_module_vault_asymmetric_add PASSED [ 95%]
2021-10-26T12:59:50+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestVault::test_remote_module_vault_standard_symmetric_asymmetric_remove PASSED [ 97%]
2021-10-26T13:00:00+0000 ansible_freeipa_tests/remote_module_execution/test_remote_module_execution.py::TestMiscellaneous::test_remote_module_context_server_on_client_host PASSED [100%]
2021-10-26T13:00:00+0000 
2021-10-26T13:00:00+0000 - generated xml file: /home/fedora/workspace/ansible-freeipa-RHEL9.0/Nightly/tier-1-RHEL9.0-Nightly-pytest-remote-module/pytest-remote-module/junit.xml -
2021-10-26T13:00:00+0000 - generated html file: file:///home/fedora/workspace/ansible-freeipa-RHEL9.0/Nightly/tier-1-RHEL9.0-Nightly-pytest-remote-module/pytest-remote-module/report.html -
========================= 46 passed in 1255.68 seconds =========================

Comment 9 errata-xmlrpc 2022-05-17 12:47:27 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 (new packages: ansible-freeipa), 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/RHBA-2022:2395