Bug 1337425
| Summary: | [ansible-2.0] installer failed if yum-utils wasn't installed | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Anping Li <anli> |
| Component: | Installer | Assignee: | Andrew Butcher <abutcher> |
| Status: | CLOSED ERRATA | QA Contact: | Ma xiaoqiang <xiama> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.2.0 | CC: | abutcher, aos-bugs, jokerman, mmccomas, xtian |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-06-07 10:56:33 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: | |||
Commit pushed to master at https://github.com/openshift/openshift-ansible https://github.com/openshift/openshift-ansible/commit/e8316eea9956568f907db93b541115e5aaeb21a3 Merge pull request #1924 from abutcher/BZ1337425 Bug 1337425 - [ansible-2.0] installer failed if yum-utils wasn't installed The fix works well. 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-2016:1208 |
Description of problem: openshift-ansible use the command 'repoquery',which is in yum-utils package and isn't installed for Minimal RHEL-7.x. ansilbe 1.9 installed this pacakages before call it. but it wasn't installed by ansible 2.0 Version-Release number of selected component (if applicable): ansible-2.0.2.0-1.el7.noarch openshift-ansible:master How reproducible: always Steps to Reproduce: 1. prepare a minimal RHEL 7.x. the yum-utils wasn't pre-installed. 2. install openshift ansible-playbook -i config/host /root/openshift-ansible/playbooks/byo/config.yml -vvv Actual results: #2 TASK [docker : Get current installed version if docker_version is specified] *** task path: /root/openshift-ansible/roles/docker/tasks/main.yml:4 <host2master.example.com> ESTABLISH SSH CONNECTION FOR USER: root <host2master.example.com> SSH: EXEC ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r host2master.example.com '/bin/sh -c '"'"'mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1463642976.49-142748608500409 `" && echo "` echo $HOME/.ansible/tmp/ansible-tmp-1463642976.49-142748608500409 `"'"'"'' <host2master.example.com> PUT /tmp/tmpd4ATuB TO /root/.ansible/tmp/ansible-tmp-1463642976.49-142748608500409/command <host2master.example.com> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r '[host2master.example.com]' <host2master.example.com> ESTABLISH SSH CONNECTION FOR USER: root <host2master.example.com> SSH: EXEC ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r -tt host2master.example.com '/bin/sh -c '"'"'LANG=en_US.utf8 LC_ALL=en_US.utf8 LC_MESSAGES=en_US.utf8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1463642976.49-142748608500409/command; rm -rf "/root/.ansible/tmp/ansible-tmp-1463642976.49-142748608500409/" > /dev/null 2>&1'"'"'' fatal: [host2master.example.com]: FAILED! => {"changed": false, "cmd": "repoquery --installed --qf '%{version}' docker", "failed": true, "invocation": {"module_args": {"_raw_params": "repoquery --installed --qf '%{version}' docker", "_uses_shell": false, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "msg": "[Errno 2] No such file or directory", "rc": 2} NO MORE HOSTS LEFT ************************************************************* to retry, use: --limit @/root/openshift-ansible/playbooks/byo/config.retry PLAY RECAP ********************************************************************* host2master.example.com : ok=56 changed=3 unreachable=0 failed=1 host2node.example.com : ok=20 changed=1 unreachable=0 failed=0 localhost : ok=10 changed=6 unreachable=0 failed=0 Expected results: openshift-ansible can be installed by ansible 2.0 Additional info: