Bug 1755120 - Approve any pending CSR requests from inventory nodes is failing
Summary: Approve any pending CSR requests from inventory nodes is failing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.11.z
Assignee: Patrick Dillon
QA Contact: Gaoyun Pei
URL:
Whiteboard:
Depends On:
Blocks: 1782858
TreeView+ depends on / blocked
 
Reported: 2019-09-24 19:41 UTC by rvanderp
Modified: 2023-03-24 15:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1782858 (view as bug list)
Environment:
Last Closed: 2020-01-14 05:31:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:0017 0 None None None 2020-01-14 05:31:39 UTC

Description rvanderp 2019-09-24 19:41:00 UTC
Description of problem:

Version-Release number of the following components:
rpm -q openshift-ansible - openshift-ansible-3.11.104-1.git.0.379a011.el7.noarch

rpm -q ansible - ansible-2.6.17-1.el7ae.noarch

ansible --version - ansible 2.6.17

How reproducible:

Steps to Reproduce:
1. Deploy cluster
2. Nodes will fail to bootstrap
3.

Actual results:
See Task "Dump all candidate bootstrap hostnames" and beyond in attached log


Expected results:
Nodes to be able to bootstrap and have their CSRs accepted

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 17 Ryan Howe 2019-12-12 02:01:00 UTC
Created the following PR with the fix, setting undefined to null results in variables having python type list. 

https://github.com/openshift/openshift-ansible/pull/12050

Comment 19 Gaoyun Pei 2019-12-31 04:44:45 UTC
Verify this bug using the way mentioned in Comment 14.

When one key from oo_nodes_to_config does not map to a hostvar with l_kubelet_node_name set:
TASK [Set l_nodes_to_join from node_list] ****************************************************************************************
ok: [localhost] => {"ansible_facts": {"l_nodes_to_join": "[AnsibleUndefined, u'gpei-3node-registry-router-1', u'gpei-3master-etcd-1']"}, "changed": false}

With the patch applied:
TASK [Set l_nodes_to_join from node_list] ****************************************************************************************
ok: [localhost] => {"ansible_facts": {"l_nodes_to_join": [null, "gpei-3node-registry-router-1", "gpei-3master-etcd-1"]}, "changed": false}

And no regression issue found during installation with openshift-ansible-3.11.161-1.git.0.376158f.el7.noarch.rpm.

Comment 21 errata-xmlrpc 2020-01-14 05:31:27 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:0017


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