-
Bug
-
Resolution: Done
-
Normal
-
None
-
4.13.0, 4.14.0
-
Moderate
-
No
-
Hypershift Sprint 236, Hypershift Sprint 237
-
2
-
False
-
This is a clone of issue OCPBUGS-13111. The following is the description of the original issue:
—
Description of problem:
During the creation of a new HostedCluster, the control-plane-operator reports several lines of logs like
{"level":"error","ts":"2023-05-04T05:24:03Z","msg":"failed to remove service ca annotation and secret: %w","controller":"hostedcontrolplane","controllerGroup":"hypershift.openshift.io","controllerKind":"HostedControlPlane","hostedControlPlane":{"name":"demo-02","namespace":"clusters-demo-02"},"namespace":"clusters-demo-02","name":"demo-02","reconcileID":"5ffe0a7f-94ce-4745-b89d-4d5168cabe8d","error":"failed to get service: Service \"node-tuning-operator\" not found","stacktrace":"github.com/openshift/hypershift/control-plane-operator/controllers/hostedcontrolplane.(*HostedControlPlaneReconciler).reconcile\n\t/hypershift/control-plane-operator/controllers/hostedcontrolplane/hostedcontrolplane_controller.go:929\ngithub.com/openshift/hypershift/control-plane-operator/controllers/hostedcontrolplane.(*HostedControlPlaneReconciler).update\n\t/hypershift/control-plane-operator/controllers/hostedcontrolplane/hostedcontrolplane_controller.go:830\ngithub.com/openshift/hypershift/control-plane-operator/controllers/hostedcontrolplane.(*HostedControlPlaneReconciler).Reconcile\n\t/hypershift/control-plane-operator/controllers/hostedcontrolplane/hostedcontrolplane_controller.go:677\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:121\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:320\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/hypershift/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:234"}
Until the Service / Secret are created.
Version-Release number of selected component (if applicable):
Management cluster: 4.14.0-nightly Hosted Cluster: 4.13.0 or 4.14.0-nightly
How reproducible:
Always
Steps to Reproduce:
1. Create a hosted cluster
Actual results:
HostedCluster is created but there are several unnecessary "error" logs in the control-plane-operator
Expected results:
No error logs from control-plane-operator/controllers/hostedcontrolplane/hostedcontrolplane_controller.go:removeServiceCAAnnotationAndSecret() during normal cluster creation
Additional info:
- blocks
-
OCPBUGS-14302 Error logs related to NTO Service during HostedCluster creation
- New
- clones
-
OCPBUGS-13111 Error logs related to NTO Service during HostedCluster creation
- Closed
- is blocked by
-
OCPBUGS-13111 Error logs related to NTO Service during HostedCluster creation
- Closed
- is cloned by
-
OCPBUGS-14302 Error logs related to NTO Service during HostedCluster creation
- New
- links to