Bug 1641538 - redeploy-openshift-ca.yml looks for incorrect node kubeconfig
Summary: redeploy-openshift-ca.yml looks for incorrect node kubeconfig
Keywords:
Status: CLOSED DUPLICATE of bug 1628546
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.10.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.10.z
Assignee: Scott Dodson
QA Contact: Gaoyun Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-22 08:05 UTC by Borja Aranda
Modified: 2018-10-26 06:17 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-26 06:17:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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