-
Bug
-
Resolution: Done
-
Critical
-
None
-
ACM 2.10.0, ACM 2.9.0
-
None
-
False
-
None
-
False
-
No
-
-
-
Critical
Description of problem:
OCP 3.11 is missing Lease API which blocks some Application lifecycle functionalities on ACM.
application-manager-addon is blocked.
Version-Release number of selected component (if applicable):
oc version Client Version: 4.15.0-202402082307.p0.g48dcf59.assembly.stream.el8-48dcf59 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Kubernetes Version: v1.11.0+d4cacc0 ===========> k8s core version
The Kubernetes Lease API was introduced in k8s version 1.14
Related OCP issue linked here: https://issues.redhat.com/browse/OCPBUGS-31069
How reproducible:
Steps to Reproduce:
- Log inside managed cluster
- Check on the logs from addons
- ...
Actual results:
$ oc logs -f -n open-cluster-management-agent-addon application-manager-7b6fd79dd4-6gtnh E0319 20:41:25.678812 1 lease_controller.go:78] Failed to update lease application-manager/open-cluster-management-agent-addon: the server could not find the requested resource (post leases.coordination.k8s.io) on managed cluster E0319 20:41:25.678825 1 lease_controller.go:82] Trying to update lease on the hub I0319 20:41:25.678834 1 lease_controller.go:92] trying to update lease "clc311-239"/"application-manager" I0319 20:41:25.732197 1 lease_controller.go:133] addon lease "clc311-239"/"application-manager" updated E0319 20:41:55.771808 1 leaderelection.go:331] error initially creating leader election record: the server could not find the requested resource (post leases.coordination.k8s.io)
Expected results:
Here is what lease api looks like
apiVersion: coordination.k8s.io/v1 kind: Lease metadata: creationTimestamp: "2024-03-18T19:25:57Z" name: application-manager namespace: open-cluster-management-agent-addon resourceVersion: "937812" uid: a19fbcfe-b3d2-4d10-9acb-e02da5fba10a spec: leaseDurationSeconds: 60 renewTime: "2024-03-19T20:41:39.527932Z"
- is blocked by
-
OCPBUGS-31069 OCP 3.11 Missing Kubernetes Lease API
- New
- is cloned by
-
ACM-10548 OCP 3.11 Missing Kubernetes Lease API
- Closed