Bug 1423447 - fail to install ocp on the hosts which enable excluders due to no openshift_version available
Summary: fail to install ocp on the hosts which enable excluders due to no openshift_v...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Giuseppe Scrivano
QA Contact: liujia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-17 11:10 UTC by liujia
Modified: 2017-07-24 14:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-04-12 19:01:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0903 0 normal SHIPPED_LIVE OpenShift Container Platform atomic-openshift-utils bug fix and enhancement 2017-04-12 22:45:42 UTC

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


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