Bug 1845676 - Provisioning on AWS with autoscaling groups omits openshift-node configmaps
Summary: Provisioning on AWS with autoscaling groups omits openshift-node configmaps
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.11.z
Assignee: Russell Teague
QA Contact: Gaoyun Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-09 19:52 UTC by Matthew Barnes
Modified: 2020-07-27 13:49 UTC (History)
0 users

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.
Clone Of:
Environment:
Last Closed: 2020-07-27 13:49:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift openshift-ansible pull 12180 0 None closed Bug 1845676: Create configmaps for all items in openshift_node_groups 2020-10-01 17:41:52 UTC
Red Hat Product Errata RHBA-2020:2990 0 None None None 2020-07-27 13:49:22 UTC

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


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