Bug 1423447

Summary: fail to install ocp on the hosts which enable excluders due to no openshift_version available
Product: OpenShift Container Platform Reporter: liujia <jiajliu>
Component: InstallerAssignee: Giuseppe Scrivano <gscrivan>
Status: CLOSED ERRATA QA Contact: liujia <jiajliu>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.5.0CC: aos-bugs, jokerman, mmccomas, wmeng
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-12 19:01:58 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 liujia 2017-02-17 11:10:09 UTC
Description of problem:
Rpm install ocp3.5 on the hosts which installed and enabled atomic-openshift-excluder and atomic-openshift-docker-excluer. Install failed due to openshift_version check is before task "disable_excluder.yml".

TASK [openshift_version : fail] ************************************************
task path: /usr/share/ansible/openshift-ansible/roles/openshift_version/tasks/main.yml:76
fatal: [openshift-109.lab.eng.nay.redhat.com]: FAILED! => {
    "changed": false, 
    "failed": true, 
    "invocation": {
        "module_args": {
            "msg": "No OpenShift version available, please ensure your systems are fully registered and have access to appropriate yum repositories."
        }, 
        "module_name": "fail"
    }
}

MSG:

No OpenShift version available, please ensure your systems are fully registered and have access to appropriate yum repositories.


Version-Release number of selected component (if applicable):
atomic-openshift-utils-3.5.10-1.git.0.ba66b63.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. install excluders on fresh rhel host.
# yum install atomic-openshift-excluder
# yum install atomic-openshift-docker-excluder
2. run install palybook(change symbolic link to workaround another blocked bug1423444)
# ansible-playbook -i /root/.config/hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/config.yml
3.

Actual results:
Install failed because it can not detect available version.

Expected results:
Install should be successful.

Additional info:

Comment 1 Scott Dodson 2017-02-21 20:23:05 UTC
Need to make sure that playbooks/common/openshift-cluster/disable_excluder.yml prior to running these plays and then ensure playbooks/common/openshift-cluster/reset_excluder.yml is run afterwards.

Comment 2 Giuseppe Scrivano 2017-02-23 18:01:50 UTC
I was able to quickly reproduce the issue following the specified steps.

This patch:

https://github.com/openshift/openshift-ansible/pull/3471

fixes the issue for me and I was able to install OCP 3.5 on a host with atomic-openshift-excluder atomic-openshift-docker-excluder preinstalled.

Comment 4 liujia 2017-02-28 02:19:43 UTC
Version:
atomic-openshift-utils-3.5.17-1.git.0.561702e.el7.noarch

Steps:
1. install excluders on fresh rhel host.
2. run install palybook on above hosts

Result:
Install seccessfully.

Comment 6 errata-xmlrpc 2017-04-12 19:01:58 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-2017:0903