Bug 1337425 - [ansible-2.0] installer failed if yum-utils wasn't installed
Summary: [ansible-2.0] installer failed if yum-utils wasn't installed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Andrew Butcher
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-19 07:55 UTC by Anping Li
Modified: 2016-07-04 00:46 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-07 10:56:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1208 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise atomic-openshift-utils bug fix update 2016-06-07 14:55:01 UTC

Description Anping Li 2016-05-19 07:55:28 UTC
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:

Comment 1 openshift-github-bot 2016-05-20 17:32:30 UTC
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

Comment 3 Anping Li 2016-05-25 00:36:53 UTC
The fix works well.

Comment 5 errata-xmlrpc 2016-06-07 10:56:33 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, 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


Note You need to log in before you can comment on or make changes to this bug.