Bug 1845676

Summary: Provisioning on AWS with autoscaling groups omits openshift-node configmaps
Product: OpenShift Container Platform Reporter: Matthew Barnes <mbarnes>
Component: InstallerAssignee: Russell Teague <rteague>
Installer sub component: openshift-ansible QA Contact: Gaoyun Pei <gpei>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high Keywords: OpsBlocker, Regression
Version: 3.11.0   
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Configmap creation code was previously updated to only create configmaps which were assigned to an active host Consequence: All configmaps were not created when the customer provided a custom openshift_node_groups list Fix: Reverted code to enable creation all configmaps specified in openshift_node_groups Result: All configmaps are created as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-27 13:49:10 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 Matthew Barnes 2020-06-09 19:52:56 UTC
Description of problem:

Since this commit [1] was introduced in 3.11.155, node provisioning on AWS using auto-scaling groups for infra and compute nodes no longer generates the necessary openshift-node configmaps from which the /etc/origin/node/node-config.yaml file is extracted.

[1] https://github.com/openshift/openshift-ansible/commit/57ef046


Version-Release number of the following components:

openshift-ansible-3.11.219
ansible-2.6.18-1.el7ae.noarch

How reproducible:

Always, when using openshift-ansible >= 3.11.155


Steps to Reproduce:
1. Inventory only includes master nodes in the [nodes] group.
2. Run openshift-ansible/playbooks/aws/openshift-cluster/provision_install.yml


Actual results:

# oc get configmap -n openshift-node
  NAME                 DATA      AGE
  node-config-master   1         22h

# oc logs SYNC_POD_ON_INFRA_NODE -n openshift-node --tail=2
Error from server (NotFound): configmaps "node-config-infra" not found
error: Unable to retrieve latest config for node

# oc logs SYNC_POD_ON_COMPUTE_NODE -n openshift-node --tail=2
Error from server (NotFound): configmaps "node-config-compute" not found
error: Unable to retrieve latest config for node


Expected results:

# oc get configmap -n openshift-node
NAME                  DATA      AGE
node-config-compute   1         5h
node-config-infra     1         5h
node-config-master    1         5h

Comment 1 Russell Teague 2020-06-09 19:59:01 UTC
As discussed, we will revert this section of code.
https://github.com/openshift/openshift-ansible/commit/57ef046#diff-09f8d477b832039889e8f93cb2f2b0d5R5-R14

This will return to creating configmaps for all openshift_node_group_names in openshift_node_groups.  If the customer does not want configmaps created for all the names listed in the default opesnshit_node_groups list, they should specify their own list in their inventory.

Comment 7 errata-xmlrpc 2020-07-27 13:49:10 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-2020:2990