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

Bug 1458653

Summary: unnecessary openshift version check on NFS host without OCP repo leads to Installation failed
Product: OpenShift Container Platform Reporter: Weihua Meng <wmeng>
Component: InstallerAssignee: Steve Milner <smilner>
Status: CLOSED ERRATA QA Contact: Weihua Meng <wmeng>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.6.0CC: aos-bugs, jokerman, lmeyer, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-10 05:26:47 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 Weihua Meng 2017-06-05 06:35:14 UTC
Description of problem:
Install OpenShift on Atomic Host with RHEL as NFS server without OCP repo as before, Installation failed.

Version-Release number of selected component (if applicable):
openshift-ansible-3.6.94-1.git.0.fff177b.el7.noarch.rpm

How reproducible:
Always

Steps to Reproduce:
1. Install OpenShift on Atomic Host with RHEL as NFS server without OCP repo
[masters]
AH host1

[nodes]
AH host1
AH host2

[nfs]
RHEL host1

Actual results:
Installation FAILURE
Failure summary:

  1. Host:     RHEL host1
     Play:     Verify Requirements
     Task:     openshift_version : fail
     Message:  Package atomic-openshift not found

Expected results:
Installation SUCCESS as before

Additional info:

Comment 1 Steve Milner 2017-06-13 14:55:50 UTC
Doing a little debugging the issue stems from this pattern:

1. openshift_version is a dependency of openshift_health_checker
2. openshift_version includes set_version_rpm.yml as is_containerized is False
3. roles/openshift_version/tasks/set_version_rpm.yml uses repoquery to find atomic-openshift, but it is not there in this scenario.

Comment 2 Steve Milner 2017-06-19 15:12:01 UTC
PR: https://github.com/openshift/openshift-ansible/pull/4495

Comment 3 Luke Meyer 2017-06-20 19:16:18 UTC
This is fail task in the openshift_version role. It's just reported under the same summary as checks would be (all failures are now). So excluding the NFS host from checks won't actually address this (although it might be necessary to do that too).

Comment 4 Steve Milner 2017-06-20 20:17:03 UTC
I follow what you're saying Luke.

It looks like there are three locations which include the role:

roles/openshift_health_checker/meta/main.yml: Noted here with scoped hosts
roles/openshift_common/meta/main.yml: Includes without scoping hosts
roles/openshift_docker/meta/main.yml: Includes without scoping hosts

I'll look at trying to keep nfs and lbs out of package checking rather than skipping them within the health checks.

Comment 6 Weihua Meng 2017-06-27 08:02:46 UTC
not fixed with openshift-ansible-3.6.126-1.git.0.58d33f0.el7.noarch.rpm

Comment 7 Scott Dodson 2017-06-27 21:34:18 UTC
in openshift-ansible-3.6.123.1002-1.git.0.506cfa7.el7

Comment 8 Weihua Meng 2017-06-27 22:39:08 UTC
I would like to wait for 3.6.127 to verify

Comment 9 Weihua Meng 2017-06-28 01:46:29 UTC
Verified on openshift-ansible-3.6.123.1002-1.git.0.506cfa7.el7.noarch.rpm
Fixed.

Install SUCCESS

Comment 11 errata-xmlrpc 2017-08-10 05:26:47 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