Bug 1451927

Summary: The installer should allow for redeploy of etcd CA only.
Product: OpenShift Container Platform Reporter: Ryan Howe <rhowe>
Component: InstallerAssignee: Russell Teague <rteague>
Installer sub component: openshift-ansible QA Contact: Johnny Liu <jialiu>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: aos-bugs, dmoessne, gpei, jokerman, knakayam, mmccomas, mrobson, rhowe
Version: 3.5.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Feature: Etcd CA redeployment playbook. Reason: Previously, it was only possible to redeploy the etcd CA certificate by also redeploying the OpenShift CA certificate which was unnecessary maintenance. Result: The etcd CA certificate may now be replaced independent of the OpenShift CA certificate using the etcd CA certificate redeployment playbook (playbooks/byo/openshift-cluster/redeploy-etcd-ca.yml). Note that the OpenShift CA redeployment playbook (playbooks/byo/openshift-cluster/redeploy-openshift-ca.yml) now only replaces the OpenShift CA certificate. Similarly, the etcd CA redeployment playbook only redeploys the etcd CA certificate.
Story Points: ---
Clone Of:
: 1463772 1463773 1463774 1463775 (view as bug list) Environment:
Last Closed: 2017-08-10 05:24:06 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:
Bug Depends On:    
Bug Blocks: 1463772, 1463773, 1463774, 1463775    

Description Ryan Howe 2017-05-17 21:42:31 UTC
Description of problem:

The following will redeploy the ectd CA and OpenShift CA, we need a way to only tell ansible to only deploy the etcd ca. 

$ ansible-playbook -i <inventory_file> \
    /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/redeploy-openshift-ca.yml

Comment 6 Andrew Butcher 2017-06-14 18:07:17 UTC
Proposed solution https://github.com/openshift/openshift-ansible/pull/4404

Comment 8 Gaoyun Pei 2017-06-20 09:23:33 UTC
Verify this bug with openshift-ansible-3.6.116-1.git.0.e2840e8.el7.noarch

For Etcd CA cert redeployment, we could use playbook /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/redeploy-etcd-ca.yml

This playbook will only create new etcd CA certificate, then distribute etcd CA to etcd hosts and masters, restart etcd and master services.


For openshift CA cert redeployment, we could use playbook
/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/redeploy-openshift-ca.yml

This playbook will only create new OpenShift CA certificate, then distribute new CA cert to masters and nodes, restart master and node services.

Comment 9 Josep 'Pep' Turro Mauri 2017-06-26 08:46:08 UTC
*** Bug 1464642 has been marked as a duplicate of this bug. ***

Comment 11 errata-xmlrpc 2017-08-10 05:24:06 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/RHEA-2017:1716