Bug 1641538

Summary: redeploy-openshift-ca.yml looks for incorrect node kubeconfig
Product: OpenShift Container Platform Reporter: Borja Aranda <farandac>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED DUPLICATE QA Contact: Gaoyun Pei <gpei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.10.0CC: aos-bugs, jokerman, mjahangi, mmccomas
Target Milestone: ---   
Target Release: 3.10.z   
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: 2018-10-26 06:17:12 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 Borja Aranda 2018-10-22 08:05:19 UTC
Description of problem:
In 3.10, the redeploy-openshift-ca.yml playbook looks for node kubeconfigs with the old naming convention "system:node:nodename" instead of newer "node.kubeconfig".

~~~
TASK [Update node client kubeconfig CA data] ************************************************************************************************************************************************************************************************************************************
fatal: [node1]: FAILED! => {"changed": false, "failed": true, "msg": "[Errno 2] No such file or directory: '/etc/origin/node/system:node:nodename1.kubeconfig'"}
~~~

The following task should be changed:
~~~
- name: Update node client kubeconfig CA data
    kubeclient_ca:
      client_path: "{{ openshift.common.config_base }}/node/system:node:{{ openshift.common.hostname }}.kubeconfig"
~~~

And probably the bootstrap.kubeconfig should be changed too, just in case the node.kubeconfig is deleted and the node is bootstrapped again.

Version-Release number of the following components:
rpm -q openshift-ansible
rpm -q ansible
ansible --version

How reproducible:
Always

Steps to Reproduce:
1. Run the playbook to redeploy openshift CA

Actual results:
node kubeconfigs not found.

Expected results:
kubeconfig found and CA changed.