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 1893675 - [Ansible-freeipa] ipauser module does not seem to support --check flag to ansible-playbook
Summary: [Ansible-freeipa] ipauser module does not seem to support --check flag to ans...
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:
TreeView+ depends on / blocked
 
Reported: 2020-11-02 10:50 UTC by Varun Mylaraiah
Modified: 2021-05-18 15:51 UTC (History)
1 user (show)

Fixed In Version:
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:
pm-rhel: mirror+


Attachments (Terms of Use)

Description Varun Mylaraiah 2020-11-02 10:50:58 UTC
Cloned: https://github.com/freeipa/ansible-freeipa/issues/407


I ran a playbook that included adding some new accounts to IPA, but with the --check flag. It appears that the accounts are now present on that system where they were not before, thus making me think --check isn't honored. Maybe I missed that in the docs somewhere.

ansible-playbook 2.10.1
config file = /home/itcxs02/dev/rci-ansible/ansible.cfg
configured module search path = ['/home/itcxs02/.ansible/plugins/modules', '/home/itcxs02/dev/rci-ansible/library', '/usr/local/ansible/modules', '/usr/local/ansible/foreman-ansible-modules/plugins/modules', '/usr/lib/python2.7/site-packages/ansible/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 3.6.8 (default, Dec 5 2019, 15:45:45) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]

$ ansible-playbook -i environments/dev/ipa.txt playbooks/deploy-ipa.yml --check

[trimmed...]

TASK [ri_ipa_post : Ensure service accounts are present] ********************************************************
[WARNING]: Module did not set no_log for update_password
changed: [hostname.example.com]

PLAY RECAP ******************************************************************************************************
hostname.example.com : ok=5 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0

Relevant section of role:

name: Ensure service accounts are present
ipauser:
ipaadmin_password: "{{ ipaadmin_password }}"
users: "{{ svc_users }}"
svc_users:

name: foobar
first: foobar Production User
last: .
uid: 123456
gid: 1
shell: /bin/ksh
homedir: /usr/local/foo
noprivate: true

Comment 1 Thomas Woerner 2021-01-12 13:51:36 UTC
This applies to all modules.

Comment 3 Thomas Woerner 2021-01-12 14:05:16 UTC
This is the ipstream PR: https://github.com/freeipa/ansible-freeipa/pull/478

Comment 7 Varun Mylaraiah 2021-01-21 11:26:54 UTC
Verified

Version:
ansible-freeipa-0.3.2-1.el8.noarch
ipa-server-4.9.0-1.module+el8.4.0+9274+259c83ee.x86_64

Passed	ansible_freeipa_tests/rbac_module.py::TestDelegation::()::test_verify_check_mode
------------------------------ Captured log call -------------------------------
channel.py                1212 DEBUG    [chan 81] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 81] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 81 opened.
transport.py               318 INFO     RUN ['kinit', 'admin']
transport.py               519 DEBUG    RUN ['kinit', 'admin']
channel.py                1212 DEBUG    [chan 81] Sesch channel 81 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG    Password for admin: 
channel.py                1212 DEBUG    [chan 81] EOF received (81)
channel.py                1212 DEBUG    [chan 81] EOF sent (81)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 82] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 82] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 82 opened.
transport.py               318 INFO     RUN ['ipa', 'delegation-show', 'test attributes']
transport.py               519 DEBUG    RUN ['ipa', 'delegation-show', 'test attributes']
channel.py                1212 DEBUG    [chan 82] Sesch channel 82 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG    ipa: ERROR: ACI with name "test attributes" not found
channel.py                1212 DEBUG    [chan 82] EOF received (82)
channel.py                1212 DEBUG    [chan 82] EOF sent (82)
transport.py               217 DEBUG    Exit code: 2
channel.py                1212 DEBUG    [chan 83] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 83] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 83 opened.
transport.py               318 INFO     RUN ['kdestroy', '-A']
transport.py               519 DEBUG    RUN ['kdestroy', '-A']
channel.py                1212 DEBUG    [chan 83] Sesch channel 83 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
channel.py                1212 DEBUG    [chan 83] EOF received (83)
channel.py                1212 DEBUG    [chan 83] EOF sent (83)
transport.py               217 DEBUG    Exit code: 0
transport.py               293 INFO     WRITE inventory/rbac.hosts
sftp.py                    158 DEBUG    [chan 0] open(b'inventory/rbac.hosts', 'wb')
sftp.py                    158 DEBUG    [chan 0] open(b'inventory/rbac.hosts', 'wb') -> 00000000
sftp.py                    158 DEBUG    [chan 0] close(00000000)
transport.py               329 INFO     PUT rbac_module.yml
sftp.py                    158 DEBUG    [chan 0] open(b'rbac_module.yml', 'wb')
sftp.py                    158 DEBUG    [chan 0] open(b'rbac_module.yml', 'wb') -> 00000000
sftp.py                    158 DEBUG    [chan 0] close(00000000)
sftp.py                    158 DEBUG    [chan 0] stat(b'rbac_module.yml')
channel.py                1212 DEBUG    [chan 29] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 29] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 29 opened.
transport.py               318 INFO     RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/rbac.hosts', 'rbac_module.yml', '--check']
transport.py               519 DEBUG    RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/rbac.hosts', 'rbac_module.yml', '--check']
channel.py                1212 DEBUG    [chan 29] Sesch channel 29 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG    ansible-playbook 2.9.17
transport.py               563 DEBUG      config file = /root/ansible.cfg
transport.py               563 DEBUG      configured module search path = ['/root/ansible-freeipa/plugins/modules', '/usr/share/ansible/plugins/modules']
transport.py               563 DEBUG      ansible python module location = /usr/lib/python3.6/site-packages/ansible
transport.py               563 DEBUG      executable location = /usr/bin/ansible-playbook
transport.py               563 DEBUG      python version = 3.6.8 (default, Dec  7 2020, 09:56:35) [GCC 8.4.1 20200928 (Red Hat 8.4.1-1)]
transport.py               563 DEBUG    Using /root/ansible.cfg as config file
transport.py               563 DEBUG    
transport.py               563 DEBUG    PLAYBOOK: rbac_module.yml ******************************************************
transport.py               563 DEBUG    1 plays in rbac_module.yml
transport.py               563 DEBUG    
transport.py               563 DEBUG    PLAY [Playbook to verify ansible check mode.] **********************************
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [Gathering Facts] *********************************************************
transport.py               563 DEBUG    task path: /root/rbac_module.yml:2
transport.py               563 DEBUG    ok: [master.ipadomain.test]
transport.py               563 DEBUG    META: ran handlers
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [ipadelegation] ***********************************************************
transport.py               563 DEBUG    task path: /root/rbac_module.yml:6
transport.py               563 DEBUG    changed: [master.ipadomain.test] => {"changed": true}
transport.py               563 DEBUG    META: ran handlers
transport.py               563 DEBUG    META: ran handlers
transport.py               563 DEBUG    
transport.py               563 DEBUG    PLAY RECAP *********************************************************************
transport.py               563 DEBUG    master.ipadomain.test      : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
transport.py               563 DEBUG    
channel.py                1212 DEBUG    [chan 29] EOF received (29)
channel.py                1212 DEBUG    [chan 29] EOF sent (29)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 84] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 84] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 84 opened.
transport.py               318 INFO     RUN ['kinit', 'admin']
transport.py               519 DEBUG    RUN ['kinit', 'admin']
channel.py                1212 DEBUG    [chan 84] Sesch channel 84 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG    Password for admin: 
channel.py                1212 DEBUG    [chan 84] EOF received (84)
channel.py                1212 DEBUG    [chan 84] EOF sent (84)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 85] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 85] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 85 opened.
transport.py               318 INFO     RUN ['ipa', 'delegation-show', 'test attributes']
transport.py               519 DEBUG    RUN ['ipa', 'delegation-show', 'test attributes']
channel.py                1212 DEBUG    [chan 85] Sesch channel 85 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG    ipa: ERROR: ACI with name "test attributes" not found
channel.py                1212 DEBUG    [chan 85] EOF received (85)
channel.py                1212 DEBUG    [chan 85] EOF sent (85)
transport.py               217 DEBUG    Exit code: 2
channel.py                1212 DEBUG    [chan 86] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 86] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 86 opened.
transport.py               318 INFO     RUN ['kdestroy', '-A']
transport.py               519 DEBUG    RUN ['kdestroy', '-A']
channel.py                1212 DEBUG    [chan 86] Sesch channel 86 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
channel.py                1212 DEBUG    [chan 86] EOF received (86)
channel.py                1212 DEBUG    [chan 86] EOF sent (86)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 30] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 30] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 30 opened.
transport.py               318 INFO     RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/rbac.hosts', 'rbac_module.yml']
transport.py               519 DEBUG    RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/rbac.hosts', 'rbac_module.yml']
channel.py                1212 DEBUG    [chan 30] Sesch channel 30 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG    ansible-playbook 2.9.17
transport.py               563 DEBUG      config file = /root/ansible.cfg
transport.py               563 DEBUG      configured module search path = ['/root/ansible-freeipa/plugins/modules', '/usr/share/ansible/plugins/modules']
transport.py               563 DEBUG      ansible python module location = /usr/lib/python3.6/site-packages/ansible
transport.py               563 DEBUG      executable location = /usr/bin/ansible-playbook
transport.py               563 DEBUG      python version = 3.6.8 (default, Dec  7 2020, 09:56:35) [GCC 8.4.1 20200928 (Red Hat 8.4.1-1)]
transport.py               563 DEBUG    Using /root/ansible.cfg as config file
transport.py               563 DEBUG    
transport.py               563 DEBUG    PLAYBOOK: rbac_module.yml ******************************************************
transport.py               563 DEBUG    1 plays in rbac_module.yml
transport.py               563 DEBUG    
transport.py               563 DEBUG    PLAY [Playbook to verify ansible check mode.] **********************************
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [Gathering Facts] *********************************************************
transport.py               563 DEBUG    task path: /root/rbac_module.yml:2
transport.py               563 DEBUG    ok: [master.ipadomain.test]
transport.py               563 DEBUG    META: ran handlers
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [ipadelegation] ***********************************************************
transport.py               563 DEBUG    task path: /root/rbac_module.yml:6
transport.py               563 DEBUG    changed: [master.ipadomain.test] => {"changed": true}
transport.py               563 DEBUG    META: ran handlers
transport.py               563 DEBUG    META: ran handlers
transport.py               563 DEBUG    
transport.py               563 DEBUG    PLAY RECAP *********************************************************************
transport.py               563 DEBUG    master.ipadomain.test      : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
transport.py               563 DEBUG    
channel.py                1212 DEBUG    [chan 30] EOF received (30)
channel.py                1212 DEBUG    [chan 30] EOF sent (30)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 87] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 87] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 87 opened.
transport.py               318 INFO     RUN ['kinit', 'admin']
transport.py               519 DEBUG    RUN ['kinit', 'admin']
channel.py                1212 DEBUG    [chan 87] Sesch channel 87 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG    Password for admin: 
channel.py                1212 DEBUG    [chan 87] EOF received (87)
channel.py                1212 DEBUG    [chan 87] EOF sent (87)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 88] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 88] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 88 opened.
transport.py               318 INFO     RUN ['ipa', 'delegation-show', 'test attributes']
transport.py               519 DEBUG    RUN ['ipa', 'delegation-show', 'test attributes']
channel.py                1212 DEBUG    [chan 88] Sesch channel 88 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG      Delegation name: test attributes
transport.py               563 DEBUG      Permissions: write
transport.py               563 DEBUG      Attributes: businesscategory, employeetype
transport.py               563 DEBUG      Member user group: rbacgroup02
transport.py               563 DEBUG      User group: rbacgroup01
channel.py                1212 DEBUG    [chan 88] EOF received (88)
channel.py                1212 DEBUG    [chan 88] EOF sent (88)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 89] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 89] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 89 opened.
transport.py               318 INFO     RUN ['kdestroy', '-A']
transport.py               519 DEBUG    RUN ['kdestroy', '-A']
channel.py                1212 DEBUG    [chan 89] Sesch channel 89 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
channel.py                1212 DEBUG    [chan 89] EOF received (89)
channel.py                1212 DEBUG    [chan 89] EOF sent (89)
transport.py               217 DEBUG    Exit code: 0

Comment 9 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.