Description of problem: The Ansible rpm is mssing the python-passlib dependency (has it only as a build dependency for unit tests, but some functionality needs it as a runtime depenency) Version-Release number of selected component (if applicable): 2.3.2.0-1.el7 How reproducible: Easily Steps to Reproduce: 1. test/runner/ansible-test integration -vvv posix/ci/ --start-at lookups Actual results: TASK [lookups : create a password (with salt) file] **************************** task path: /root/rpmbuild/BUILD/ansible-2.3.2.0/test/integration/targets/lookups/tasks/main.yml:104 fatal: [testhost]: FAILED! => { "failed": true, "msg": "An unhandled exception occurred while running the lookup plugin 'password'. Error was a <class 'ansible.errors.AnsibleError'>, original message: passlib must be installed to encrypt vars_prompt values" } to retry, use: --limit @/root/rpmbuild/BUILD/ansible-2.3.2.0/test/integration/lookups-QUKGNg.retry PLAY RECAP ********************************************************************* testhost : ok=21 changed=4 unreachable=0 failed=1 NOTICE: To resume at this test target, use the option: --start-at lookups NOTICE: To resume after this test target, use the option: --start-at loops ERROR: Command "ansible-playbook lookups-QUKGNg.yml -i inventory -e @integration_config.yml -vvv" returned exit status 2. Expected results: test succeeds. Additional info: We actually have the package in Extras, so this is a matter of just including one Requires: line.
another way to reproduce (without having the tests): ansible -m debug -a msg="{{ lookup('password', '/dev/null encrypt=md5_crypt') }}"
# rpm -q ansible ansible-2.3.2.0-2.el7.noarch # rpm -q --requires ansible /usr/bin/python2 PyYAML config(ansible) = 2.3.2.0-2.el7 python(abi) = 2.7 python-crypto python-httplib2 python-jinja2 python-paramiko python-passlib python-setuptools python-six rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 sshpass rpmlib(PayloadIsXz) <= 5.2-1 # yum info python-passlib | grep repo Loaded plugins: product-id, search-disabled-repos, subscription-manager From repo : extras
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, 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-2017:2606