Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1455310

Summary: Metrics installer fails if python2-passlib is installed
Product: OpenShift Container Platform Reporter: Vikas Laad <vlaad>
Component: InstallerAssignee: ewolinet
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: high Docs Contact:
Priority: medium    
Version: 3.6.0CC: aos-bugs, jokerman, juzhao, mifiedle, mmccomas, wsun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Incorrect check for python libs used for metrics role Consequence: Playbook would fail when checking for python2-passlib is installed Fix: Update the query for checking availability of library Result: Playbook will not incorrectly fail out when python2-passlib is installed
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-10 05:25:32 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 Vikas Laad 2017-05-24 18:16:28 UTC
Description of problem:
Installing metrics using playbook fails if python2-passlib is installed. It always checks for python-passlib and makes the installer fails.

Yum install python-passlib fails 
Package python-passlib-1.6.2-2.el7.noarch is obsoleted by python2-passlib-1.6.5-1.el7.noarch which is already installed

Commenting the validation makes playbook successfully install metrics.

Version-Release number of selected component (if applicable):
Latest opensift-ansible

How reproducible:
Run latest metrics install playbook

Actual results:
Installer fails

Expected results:
Installer should check for python2-passlib or python-passlib

Additional info:

Comment 2 Vikas Laad 2017-05-24 18:39:10 UTC
Here is the actual error i got from playbook

TASK [openshift_metrics : Check that python-passlib is available on the control host] ****************************************
fatal: [192.1.0.7]: FAILED! => {
    "assertion": "'not installed' not in passlib_result.stdout", 
    "changed": false, 
    "evaluated_to": false, 
    "failed": true, 
    "msg": "python-passlib rpm must be installed on control host"
}
        to retry, use: --limit @/root/openshift-ansible/playbooks/byo/openshift-cluster/openshift-metrics.retry

PLAY RECAP *******************************************************************************************************************
192.1.0.7                  : ok=13   changed=1    unreachable=0    failed=1   
localhost                  : ok=2    changed=0    unreachable=0    failed=0

Comment 4 Scott Dodson 2017-05-25 17:31:20 UTC
*** Bug 1455417 has been marked as a duplicate of this bug. ***

Comment 6 Junqi Zhao 2017-06-05 06:14:01 UTC
python2-passlib was installed on ansible control node now, and it did not throw out error after Metrics was deployed.

# rpm -qa | grep python2-passlib
python2-passlib-1.6.5-1.el7.noarch

Environment info:
# rpm -qa | grep openshift-ansible
openshift-ansible-filter-plugins-3.6.94-1.git.0.fff177b.el7.noarch
openshift-ansible-playbooks-3.6.94-1.git.0.fff177b.el7.noarch
openshift-ansible-docs-3.6.94-1.git.0.fff177b.el7.noarch
openshift-ansible-callback-plugins-3.6.94-1.git.0.fff177b.el7.noarch
openshift-ansible-roles-3.6.94-1.git.0.fff177b.el7.noarch
openshift-ansible-3.6.94-1.git.0.fff177b.el7.noarch
openshift-ansible-lookup-plugins-3.6.94-1.git.0.fff177b.el7.noarch

# openshift version
openshift v3.6.85
kubernetes v1.6.1+5115d708d7
etcd 3.1.0

Comment 8 errata-xmlrpc 2017-08-10 05:25:32 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/RHEA-2017:1716