Bug 1825987 - KCM doesn't get new client certs on recovery flow
Summary: KCM doesn't get new client certs on recovery flow
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: kube-controller-manager
Version: 4.4
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.4.z
Assignee: Tomáš Nožička
QA Contact: zhou ying
Depends On: 1825983
TreeView+ depends on / blocked
Reported: 2020-04-20 16:04 UTC by Tomáš Nožička
Modified: 2020-05-18 13:35 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1825983
Last Closed: 2020-05-18 13:35:02 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift cluster-kube-controller-manager-operator pull 401 0 None closed [release-4.4] Bug 1825987: Sync new client cert-key on recovery 2020-10-20 10:40:44 UTC
Red Hat Product Errata RHBA-2020:2133 0 None None None 2020-05-18 13:35:23 UTC

Description Tomáš Nožička 2020-04-20 16:04:15 UTC
+++ This bug was initially created as a clone of Bug #1825983 +++

On recovery flow, KASO regenerate certificates routine create new KCM client certs in openshift-config-managed namespace. We need to sync them to openshift-kube-controller-manager namespace so cert syncer can sync them to disk to be live-reloaded.

Comment 1 Maciej Szulik 2020-04-22 18:34:23 UTC
This along with https://bugzilla.redhat.com/show_bug.cgi?id=1817997 is required for the automatic cert-rotation to fully work.
Given that there are the following items left:
- https://github.com/openshift/cluster-kube-controller-manager-operator/pull/401 - Sync new client cert-key on recovery for 4.4
- https://github.com/kubernetes/kubernetes/pull/90360 - Fix client-ca dynamic reload in apiserver

With the latter we need to land it upstream first and backport to the current origin master and only then back to 4.4.

With all of the above tasks we'll continue to land this ASAP, but that won't make the 4.4.0 cut.
We still have the manual steps described in 
working we have a fallback solution in place for 4.4.0.

Comment 5 zhou ying 2020-05-09 12:53:18 UTC
[root@dhcp-140-138 scripts]# ./check_secrets_experts-30.sh 
2020-05-08T06:07:41Z  2020-06-07T06:07:42Z  openshift-config-managed	kube-controller-manager-client-cert-key

2020-05-08T06:07:41Z  2020-06-07T06:07:42Z  openshift-kube-controller-manager	kube-controller-manager-client-cert-key

[root@dhcp-140-138 ~]# oc get clusterversion 
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.4.0-0.nightly-2020-05-08-004736   True        False         30h     Cluster version is 4.4.0-0.nightly-2020-05-08-004736

Comment 7 errata-xmlrpc 2020-05-18 13:35:02 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.


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