Bug 1455310 - Metrics installer fails if python2-passlib is installed
Summary: Metrics installer fails if python2-passlib is installed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: ---
Assignee: ewolinet
QA Contact: Junqi Zhao
URL:
Whiteboard:
: 1455417 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-24 18:16 UTC by Vikas Laad
Modified: 2017-08-16 19:51 UTC (History)
6 users (show)

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
Clone Of:
Environment:
Last Closed: 2017-08-10 05:25:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 09:02:50 UTC

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


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