Bug 1744984

Summary: KCM cannot recover from deleting its lease configmap
Product: OpenShift Container Platform Reporter: Michal Fojtik <mfojtik>
Component: kube-controller-managerAssignee: Mike Dame <mdame>
Status: CLOSED ERRATA QA Contact: zhou ying <yinzhou>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.0CC: aos-bugs, deads, jokerman, maszulik, mdame, mfojtik, mmccomas, xxia, yinzhou
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1718061
: 1780843 (view as bug list) Environment:
Last Closed: 2020-05-04 11:13:08 UTC Type: ---
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: 1718061, 1780843, 1781240    

Comment 1 Mike Dame 2019-12-05 22:01:31 UTC
I've created an e2e test and updated the RBAC rules which I believe fix this issue, and allow the configmap to be automatically recreated upon deletion. Should this bug be updated to target 4.4 for the PR to merge, or should I clone it to 4.4?

Comment 3 zhou ying 2019-12-16 05:38:40 UTC
Confirmed with payload: 4.4.0-0.nightly-2019-12-15-184910, the issue has fixed:

[root@dhcp-140-138 ~]# oc  get cm -n kube-system
NAME                                 DATA   AGE
bootstrap                            1      117m
cluster-config-v1                    1      126m
extension-apiserver-authentication   6      126m
kube-controller-manager              0      126m
root-ca                              1      126m
[root@dhcp-140-138 ~]# oc delete cm/kube-controller-manager  -n kube-system
configmap "kube-controller-manager" deleted
[root@dhcp-140-138 ~]# oc get cm -n kube-system
NAME                                 DATA   AGE
bootstrap                            1      118m
cluster-config-v1                    1      126m
extension-apiserver-authentication   6      126m
kube-controller-manager              0      11s
root-ca                              1      126m

Comment 5 errata-xmlrpc 2020-05-04 11:13:08 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:0581