Bug 1830940
| Summary: | [ansible-freeipa] To archive data from file is missing in vault module | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Varun Mylaraiah <mvarun> |
| Component: | ansible-freeipa | Assignee: | Rafael Jeffman <rjeffman> |
| Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.3 | CC: | rjeffman, twoerner |
| Target Milestone: | rc | Flags: | 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-05-04 11:46:56 UTC
Proposed fix on upstream PR: https://github.com/freeipa/ansible-freeipa/pull/263 Upstream PR was merged.
Verified
ansible-freeipa-0.1.12-5.el8.noarch
Automation test result:
ansible-freeipa-tests/ansible_freeipa_tests/vault_module.py::TestStandardVault::()::test_standard_vault_with_archive_data_file
------------------------------ Captured log call -------------------------------
transport.py 329 INFO PUT /root/vault_datafile.txt
sftp.py 158 DEBUG [chan 0] open(b'/root/vault_datafile.txt', 'wb')
sftp.py 158 DEBUG [chan 0] open(b'/root/vault_datafile.txt', 'wb') -> 00000000
sftp.py 158 DEBUG [chan 0] close(00000000)
sftp.py 158 DEBUG [chan 0] stat(b'/root/vault_datafile.txt')
channel.py 1212 DEBUG [chan 56] Max packet in: 32768 bytes
channel.py 1212 DEBUG [chan 56] Max packet out: 32768 bytes
transport.py 1819 DEBUG Secsh channel 56 opened.
transport.py 318 INFO RUN ['kinit', 'admin']
transport.py 519 DEBUG RUN ['kinit', 'admin']
channel.py 1212 DEBUG [chan 56] Sesch channel 56 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 56] EOF received (56)
channel.py 1212 DEBUG [chan 56] EOF sent (56)
transport.py 217 DEBUG Exit code: 0
channel.py 1212 DEBUG [chan 57] Max packet in: 32768 bytes
channel.py 1212 DEBUG [chan 57] Max packet out: 32768 bytes
transport.py 1819 DEBUG Secsh channel 57 opened.
transport.py 318 INFO RUN ['ipa', 'vault-find']
transport.py 519 DEBUG RUN ['ipa', 'vault-find']
channel.py 1212 DEBUG [chan 57] Sesch channel 57 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 3 vaults matched
transport.py 563 DEBUG ----------------
transport.py 563 DEBUG Vault name: 17stdvault
transport.py 563 DEBUG Type: standard
transport.py 563 DEBUG Vault user: admin
transport.py 563 DEBUG
transport.py 563 DEBUG Vault name: 21stdvault
transport.py 563 DEBUG Type: standard
transport.py 563 DEBUG Vault user: admin
transport.py 563 DEBUG
transport.py 563 DEBUG Vault name: 29syvault
transport.py 563 DEBUG Type: symmetric
transport.py 563 DEBUG Vault user: admin
transport.py 563 DEBUG ----------------------------
transport.py 563 DEBUG Number of entries returned 3
transport.py 563 DEBUG ----------------------------
channel.py 1212 DEBUG [chan 57] EOF received (57)
channel.py 1212 DEBUG [chan 57] EOF sent (57)
transport.py 217 DEBUG Exit code: 0
channel.py 1212 DEBUG [chan 58] Max packet in: 32768 bytes
channel.py 1212 DEBUG [chan 58] Max packet out: 32768 bytes
transport.py 1819 DEBUG Secsh channel 58 opened.
transport.py 318 INFO RUN ['kdestroy', '-A']
transport.py 519 DEBUG RUN ['kdestroy', '-A']
channel.py 1212 DEBUG [chan 58] Sesch channel 58 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 58] EOF received (58)
channel.py 1212 DEBUG [chan 58] EOF sent (58)
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 14] Max packet in: 32768 bytes
channel.py 1212 DEBUG [chan 14] Max packet out: 32768 bytes
transport.py 1819 DEBUG Secsh channel 14 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 14] Sesch channel 14 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 standard vault added with archive data file.] *********
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 [Copy data file to target host.] ******************************************
transport.py 563 DEBUG task path: /root/vault_module.yml:6
transport.py 563 DEBUG changed: [master.ipadomain.test] => {"changed": true, "checksum": "e623b1d59271ecc4281b64ff90d2c1df5a1cf643", "dest": "/root/vault_data_file.txt", "gid": 0, "group": "root", "md5sum": "d397b13c96e4e39f113f9caf95578e3b", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:admin_home_t:s0", "size": 25, "src": "/root/.ansible/tmp/ansible-tmp-1596467437.9946299-20844-37658898610674/source", "state": "file", "uid": 0}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipavault] ****************************************************************
transport.py 563 DEBUG task path: /root/vault_module.yml:11
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=3 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
transport.py 563 DEBUG
channel.py 1212 DEBUG [chan 14] EOF received (14)
channel.py 1212 DEBUG [chan 14] EOF sent (14)
transport.py 217 DEBUG Exit code: 0
channel.py 1212 DEBUG [chan 59] Max packet in: 32768 bytes
channel.py 1212 DEBUG [chan 59] Max packet out: 32768 bytes
transport.py 1819 DEBUG Secsh channel 59 opened.
transport.py 318 INFO RUN ['kinit', 'admin']
transport.py 519 DEBUG RUN ['kinit', 'admin']
channel.py 1212 DEBUG [chan 59] Sesch channel 59 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 59] EOF received (59)
channel.py 1212 DEBUG [chan 59] EOF sent (59)
transport.py 217 DEBUG Exit code: 0
channel.py 1212 DEBUG [chan 60] Max packet in: 32768 bytes
channel.py 1212 DEBUG [chan 60] Max packet out: 32768 bytes
transport.py 1819 DEBUG Secsh channel 60 opened.
transport.py 318 INFO RUN ['ipa', 'vault-retrieve', '24stdvault']
transport.py 519 DEBUG RUN ['ipa', 'vault-retrieve', '24stdvault']
channel.py 1212 DEBUG [chan 60] Sesch channel 60 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 Retrieved data from vault "24stdvault"
transport.py 563 DEBUG --------------------------------------
transport.py 563 DEBUG Data: VmF1bHRfZGF0YV9zdG9yZWRfaW5fZmlsZQ==
channel.py 1212 DEBUG [chan 60] EOF received (60)
channel.py 1212 DEBUG [chan 60] EOF sent (60)
transport.py 217 DEBUG Exit code: 0
channel.py 1212 DEBUG [chan 61] Max packet in: 32768 bytes
channel.py 1212 DEBUG [chan 61] Max packet out: 32768 bytes
transport.py 1819 DEBUG Secsh channel 61 opened.
transport.py 318 INFO RUN ['kdestroy', '-A']
transport.py 519 DEBUG RUN ['kdestroy', '-A']
channel.py 1212 DEBUG [chan 61] Sesch channel 61 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 61] EOF received (61)
channel.py 1212 DEBUG [chan 61] EOF sent (61)
transport.py 217 DEBUG Exit code: 0
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 |