Bug 1828822

Summary: [ansible-freeipa] services variable is missing in vault module.
Product: Red Hat Enterprise Linux 8 Reporter: Varun Mylaraiah <mvarun>
Component: ansible-freeipaAssignee: Rafael Jeffman <rjeffman>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: rjeffman, twoerner
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ansible-freeipa-0.1.11-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 02:46:35 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 Varun Mylaraiah 2020-04-28 12:45:22 UTC
Description of problem:
In ansible-freeipa vault module, "services” variable (services to add as a member) is missing.

Version-Release number of selected component (if applicable):
Ansible-freeipa-0.1.9-1

Comment 1 Rafael Jeffman 2020-05-07 03:59:03 UTC
Fix proposed on upstream PR: https://github.com/freeipa/ansible-freeipa/pull/264

Comment 3 Rafael Jeffman 2020-06-05 16:43:15 UTC
Upstream PR was merged.

Comment 6 Varun Mylaraiah 2020-07-28 03:32:05 UTC
Verified

ansible-freeipa-0.1.12-5.el8.noarch

Automation test result:
ansible-freeipa-tests/ansible_freeipa_tests/vault_module.py::TestStandardVault::()::test_standard_user_vault_remove_members
------------------------------ Captured log call -------------------------------
channel.py                1212 DEBUG    [chan 32] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 32] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 32 opened.
transport.py               318 INFO     RUN ['kinit', 'admin']
transport.py               519 DEBUG    RUN ['kinit', 'admin']
channel.py                1212 DEBUG    [chan 32] Sesch channel 32 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 32] EOF received (32)
channel.py                1212 DEBUG    [chan 32] EOF sent (32)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 33] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 33] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 33 opened.
transport.py               318 INFO     RUN ['ipa', 'vault-show', '03stduservault', '--user=testuser1']
transport.py               519 DEBUG    RUN ['ipa', 'vault-show', '03stduservault', '--user=testuser1']
channel.py                1212 DEBUG    [chan 33] Sesch channel 33 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      Vault name: 03stduservault
transport.py               563 DEBUG      Description: std_vault
transport.py               563 DEBUG      Type: standard
transport.py               563 DEBUG      Owner users: admin
transport.py               563 DEBUG      Vault user: testuser1
transport.py               563 DEBUG      Member users: vuser01, vuser02
transport.py               563 DEBUG      Member groups: vgroup01, vgroup02
transport.py               563 DEBUG      Member services: myvaulttest/master.ipadomain.test
channel.py                1212 DEBUG    [chan 33] EOF received (33)
channel.py                1212 DEBUG    [chan 33] EOF sent (33)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 34] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 34] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 34 opened.
transport.py               318 INFO     RUN ['kdestroy', '-A']
transport.py               519 DEBUG    RUN ['kdestroy', '-A']
channel.py                1212 DEBUG    [chan 34] Sesch channel 34 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 34] EOF received (34)
channel.py                1212 DEBUG    [chan 34] EOF sent (34)
transport.py               217 DEBUG    Exit code: 0
transport.py               293 INFO     WRITE inventory/vault.hosts
sftp.py                    158 DEBUG    [chan 0] open(b'inventory/vault.hosts', 'wb')
sftp.py                    158 DEBUG    [chan 0] open(b'inventory/vault.hosts', 'wb') -> 00000000
sftp.py                    158 DEBUG    [chan 0] close(00000000)
transport.py               329 INFO     PUT vault_module.yml
sftp.py                    158 DEBUG    [chan 0] open(b'vault_module.yml', 'wb')
sftp.py                    158 DEBUG    [chan 0] open(b'vault_module.yml', 'wb') -> 00000000
sftp.py                    158 DEBUG    [chan 0] close(00000000)
sftp.py                    158 DEBUG    [chan 0] stat(b'vault_module.yml')
channel.py                1212 DEBUG    [chan 8] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 8] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 8 opened.
transport.py               318 INFO     RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/vault.hosts', 'vault_module.yml']
transport.py               519 DEBUG    RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/vault.hosts', 'vault_module.yml']
channel.py                1212 DEBUG    [chan 8] Sesch channel 8 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.11
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, Jun 26 2020, 12:10:09) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
transport.py               563 DEBUG    Using /root/ansible.cfg as config file
transport.py               563 DEBUG    
transport.py               563 DEBUG    PLAYBOOK: vault_module.yml *****************************************************
transport.py               563 DEBUG    1 plays in vault_module.yml
transport.py               563 DEBUG    
transport.py               563 DEBUG    PLAY [Playbook to ensure the standard user vault members are absent.] **********
transport.py               563 DEBUG    
transport.py               563 DEBUG    TASK [Gathering Facts] *********************************************************
transport.py               563 DEBUG    task path: /root/vault_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 [ipavault] ****************************************************************
transport.py               563 DEBUG    task path: /root/vault_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 8] EOF received (8)
channel.py                1212 DEBUG    [chan 8] EOF sent (8)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 35] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 35] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 35 opened.
transport.py               318 INFO     RUN ['kinit', 'admin']
transport.py               519 DEBUG    RUN ['kinit', 'admin']
channel.py                1212 DEBUG    [chan 35] Sesch channel 35 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 35] EOF received (35)
channel.py                1212 DEBUG    [chan 35] EOF sent (35)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 36] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 36] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 36 opened.
transport.py               318 INFO     RUN ['ipa', 'vault-find', '03stduservault', '--user=testuser1']
transport.py               519 DEBUG    RUN ['ipa', 'vault-find', '03stduservault', '--user=testuser1']
channel.py                1212 DEBUG    [chan 36] Sesch channel 36 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    ---------------
transport.py               563 DEBUG    1 vault matched
transport.py               563 DEBUG    ---------------
transport.py               563 DEBUG      Vault name: 03stduservault
transport.py               563 DEBUG      Description: std_vault
transport.py               563 DEBUG      Type: standard
transport.py               563 DEBUG      Vault user: testuser1
transport.py               563 DEBUG    ----------------------------
transport.py               563 DEBUG    Number of entries returned 1
transport.py               563 DEBUG    ----------------------------
channel.py                1212 DEBUG    [chan 36] EOF received (36)
channel.py                1212 DEBUG    [chan 36] EOF sent (36)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 37] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 37] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 37 opened.
transport.py               318 INFO     RUN ['kdestroy', '-A']
transport.py               519 DEBUG    RUN ['kdestroy', '-A']
channel.py                1212 DEBUG    [chan 37] Sesch channel 37 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 37] EOF received (37)
channel.py                1212 DEBUG    [chan 37] EOF sent (37)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 38] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 38] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 38 opened.
transport.py               318 INFO     RUN ['kinit', 'admin']
transport.py               519 DEBUG    RUN ['kinit', 'admin']
channel.py                1212 DEBUG    [chan 38] Sesch channel 38 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 38] EOF received (38)
channel.py                1212 DEBUG    [chan 38] EOF sent (38)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 39] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 39] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 39 opened.
transport.py               318 INFO     RUN ['ipa', 'vault-show', '03stduservault', '--user=testuser1']
transport.py               519 DEBUG    RUN ['ipa', 'vault-show', '03stduservault', '--user=testuser1']
channel.py                1212 DEBUG    [chan 39] Sesch channel 39 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      Vault name: 03stduservault
transport.py               563 DEBUG      Description: std_vault
transport.py               563 DEBUG      Type: standard
transport.py               563 DEBUG      Owner users: admin
transport.py               563 DEBUG      Vault user: testuser1
channel.py                1212 DEBUG    [chan 39] EOF received (39)
channel.py                1212 DEBUG    [chan 39] EOF sent (39)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 40] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 40] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 40 opened.
transport.py               318 INFO     RUN ['kdestroy', '-A']
transport.py               519 DEBUG    RUN ['kdestroy', '-A']
channel.py                1212 DEBUG    [chan 40] Sesch channel 40 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 40] EOF received (40)
channel.py                1212 DEBUG    [chan 40] EOF sent (40)
transport.py               217 DEBUG    Exit code: 0

Comment 9 errata-xmlrpc 2020-11-04 02:46:35 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-2020:4663