Bug 1654737

Summary: Node Scaleup fails with error "the role 'openshift_master_facts' was not found"
Product: OpenShift Container Platform Reporter: Christian Koep <ckoep>
Component: InstallerAssignee: Scott Dodson <sdodson>
Installer sub component: openshift-ansible QA Contact: sheng.lao <shlao>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: gpei
Version: 3.9.0   
Target Milestone: ---   
Target Release: 3.9.z   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-30 13:51:07 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:

Description Christian Koep 2018-11-29 15:00:54 UTC
The node scaleup playbook fails on OpenShift Container Platform 3.9.51 with the following error:

    ERROR! the role 'openshift_master_facts' was not found [...]

This issue has already been reported [1] and fixed [2] upstream.

I could not find a related BZ for this, so I figured to open one. This should make it easier to track the release of the next errata that will contain the fix.


[1] - https://github.com/openshift/openshift-ansible/issues/10766
[2] - https://github.com/openshift/openshift-ansible/pull/10767

Comment 1 Scott Dodson 2018-11-29 15:16:06 UTC
The linked PR is in openshift-ansible-3.9.55-1

Comment 2 sheng.lao 2018-11-30 07:05:05 UTC
Reproduce with openshift-ansible-3.9.51-1.git.0.c4968ca.el7.noarch.rpm
The error appears to have been in 'playbooks/openshift-node/scaleup.yml': line 42, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  - openshift_master_facts
    ^ here

Verify with openshift-ansible-3.9.55-1.git.0.e30645d.el7.noarch.rpm
1. Successfully Scale-up node  
2. new app on the new node
# oc get node --show-labels 
NAME                            STATUS    ROLES     AGE       VERSION             LABELS
ip-172-18-10-115.ec2.internal   Ready     compute   12m       v1.9.1+a0ce1bc657   ... role=new_node ...

# oc get pod
nodejs-mongodb-example-2-tk54t   1/1       Running     0          8m

# oc get pod nodejs-mongodb-example-2-tk54t -o yaml | grep -A 1 nodeSelector:
    role: new_node