kubevirt / hyperconverged-cluster-operator

Operator pattern for managing multi-operator products
Apache License 2.0
155 stars 153 forks source link

Unable to deploy HCO on CRC #2530

Closed jcanocan closed 1 year ago

jcanocan commented 1 year ago

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug /kind enhancement

What happened: I'm trying to deploy HCO in a CRC cluster for developing purposes. I'm getting the following error in the hyperconverged-cluster-operator:

{"level":"error","ts":"2023-09-25T10:40:46Z","logger":"controller_hyperconverged","msg":"Failed to create object for SSP","Request.Namespace":"kubevirt-hyperconverged","Request.Name":"kubevirt-hyperconverged","error":"Internal error occurred: failed calling webhook \"vssp.kb.io\": failed to call webhook: the server could not find the requested resource","stacktrace":"github.com/kubevirt/hyperconverged-cluster-operator/controllers/operands.(*genericOperand).createNewCr\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/controllers/operands/operand.go:223\ngithub.com/kubevirt/hyperconverged-cluster-operator/controllers/operands.(*genericOperand).ensure\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/controllers/operands/operand.go:89\ngithub.com/kubevirt/hyperconverged-cluster-operator/controllers/operands.(*OperandHandler).Ensure\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/controllers/operands/operandHandler.go:147\ngithub.com/kubevirt/hyperconverged-cluster-operator/controllers/hyperconverged.(*ReconcileHyperConverged).EnsureOperandAndComplete\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/controllers/hyperconverged/hyperconverged_controller.go:531\ngithub.com/kubevirt/hyperconverged-cluster-operator/controllers/hyperconverged.(*ReconcileHyperConverged).doReconcile\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/controllers/hyperconverged/hyperconverged_controller.go:480\ngithub.com/kubevirt/hyperconverged-cluster-operator/controllers/hyperconverged.(*ReconcileHyperConverged).Reconcile\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/controllers/hyperconverged/hyperconverged_controller.go:345\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:119\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227"}
{"level":"error","ts":"2023-09-25T10:40:46Z","logger":"controller_hyperconverged","msg":"failed to ensure an operand","Request.Namespace":"kubevirt-hyperconverged","Request.Name":"kubevirt-hyperconverged","error":"Internal error occurred: failed calling webhook \"vssp.kb.io\": failed to call webhook: the server could not find the requested resource","stacktrace":"github.com/kubevirt/hyperconverged-cluster-operator/controllers/operands.(*OperandHandler).Ensure\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/controllers/operands/operandHandler.go:149\ngithub.com/kubevirt/hyperconverged-cluster-operator/controllers/hyperconverged.(*ReconcileHyperConverged).EnsureOperandAndComplete\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/controllers/hyperconverged/hyperconverged_controller.go:531\ngithub.com/kubevirt/hyperconverged-cluster-operator/controllers/hyperconverged.(*ReconcileHyperConverged).doReconcile\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/controllers/hyperconverged/hyperconverged_controller.go:480\ngithub.com/kubevirt/hyperconverged-cluster-operator/controllers/hyperconverged.(*ReconcileHyperConverged).Reconcile\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/controllers/hyperconverged/hyperconverged_controller.go:345\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:119\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/src/github.com/kubevirt/hyperconverged-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227"}

What you expected to happen: Successfully deploy HCO in a CRC cluster.

How to reproduce it (as minimally and precisely as possible):

KUBEVIRT_PROVIDER=external
export IMAGE_REGISTRY=quay.io
export REGISTRY_NAMESPACE=jcanocan
make cluster-sync

Anything else we need to know?: Crc configuration:

$ crc config view
- consent-telemetry                     : yes
- enable-cluster-monitoring             : true
- memory                                : 19073

Environment:

jcanocan commented 1 year ago

Objects deployed by HCO:

$ oc get all
Warning: kubevirt.io/v1 VirtualMachineInstancePresets is now deprecated and will be removed in v2.
NAME                                                       READY   STATUS    RESTARTS        AGE
pod/bridge-marker-2qjx6                                    1/1     Running   0               7m12s
pod/cdi-apiserver-845d6d7f66-wkz5z                         1/1     Running   0               7m9s
pod/cdi-deployment-7fcc478665-5gkh2                        1/1     Running   0               7m9s
pod/cdi-operator-67bb69dcfd-tc56j                          1/1     Running   0               7m33s
pod/cdi-uploadproxy-5589d9448f-z7w8l                       1/1     Running   0               7m9s
pod/cluster-network-addons-operator-85fb6c5bbb-n967g       2/2     Running   0               7m53s
pod/hostpath-provisioner-operator-6f5c6bb768-qhfg7         1/1     Running   0               7m32s
pod/hyperconverged-cluster-cli-download-85fdc7d8f8-rdcfm   1/1     Running   0               7m54s
pod/hyperconverged-cluster-operator-85c85646d7-lpcl6       1/1     Running   0               7m54s
pod/hyperconverged-cluster-webhook-7d8bdd6878-mqmbz        1/1     Running   0               7m54s
pod/kube-cni-linux-bridge-plugin-kbngd                     1/1     Running   0               7m12s
pod/kubemacpool-cert-manager-557f9dddc5-pfdcj              1/1     Running   0               7m11s
pod/kubemacpool-mac-controller-manager-5fc7b5d48c-pbh7c    2/2     Running   0               7m11s
pod/mtq-operator-578f99ff54-lg4k8                          1/1     Running   0               7m32s
pod/ssp-operator-8866df74b-7zp8q                           1/1     Running   1 (6m50s ago)   7m53s
pod/virt-api-549bc6d5b8-s4629                              1/1     Running   0               6m44s
pod/virt-controller-5cf8dffc6-z5l74                        1/1     Running   0               6m8s
pod/virt-exportproxy-75f9566b-qn42d                        1/1     Running   0               6m7s
pod/virt-handler-j4jhs                                     1/1     Running   0               6m7s
pod/virt-operator-85b7d5975d-d28bd                         1/1     Running   0               7m33s
pod/virt-operator-85b7d5975d-hrrn8                         1/1     Running   0               7m33s

NAME                                                         TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)    AGE
service/cdi-api                                              ClusterIP   10.217.4.119   <none>        443/TCP    7m9s
service/cdi-prometheus-metrics                               ClusterIP   10.217.4.44    <none>        8080/TCP   7m9s
service/cdi-uploadproxy                                      ClusterIP   10.217.5.4     <none>        443/TCP    7m9s
service/cluster-network-addons-operator-prometheus-metrics   ClusterIP   10.217.4.217   <none>        8443/TCP   7m11s
service/hostpath-provisioner-operator-service                ClusterIP   10.217.4.53    <none>        9443/TCP   7m53s
service/hyperconverged-cluster-webhook-service               ClusterIP   10.217.5.139   <none>        4343/TCP   7m53s
service/kubemacpool-service                                  ClusterIP   10.217.5.39    <none>        443/TCP    7m11s
service/kubevirt-hyperconverged-operator-metrics             ClusterIP   10.217.4.180   <none>        8383/TCP   7m35s
service/kubevirt-operator-webhook                            ClusterIP   10.217.5.223   <none>        443/TCP    6m47s
service/kubevirt-prometheus-metrics                          ClusterIP   None           <none>        443/TCP    6m47s
service/ssp-operator-metrics                                 ClusterIP   10.217.5.37    <none>        443/TCP    7m28s
service/ssp-operator-service                                 ClusterIP   10.217.4.72    <none>        9443/TCP   7m53s
service/virt-api                                             ClusterIP   10.217.4.129   <none>        443/TCP    6m47s
service/virt-exportproxy                                     ClusterIP   10.217.5.63    <none>        443/TCP    6m47s

NAME                                          DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR            AGE
daemonset.apps/bridge-marker                  1         1         1       1            1           kubernetes.io/os=linux   7m12s
daemonset.apps/kube-cni-linux-bridge-plugin   1         1         1       1            1           kubernetes.io/os=linux   7m12s
daemonset.apps/virt-handler                   1         1         1       1            1           kubernetes.io/os=linux   6m7s

NAME                                                  READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/cdi-apiserver                         1/1     1            1           7m9s
deployment.apps/cdi-deployment                        1/1     1            1           7m9s
deployment.apps/cdi-operator                          1/1     1            1           7m53s
deployment.apps/cdi-uploadproxy                       1/1     1            1           7m9s
deployment.apps/cluster-network-addons-operator       1/1     1            1           7m54s
deployment.apps/hostpath-provisioner-operator         1/1     1            1           7m53s
deployment.apps/hyperconverged-cluster-cli-download   1/1     1            1           7m54s
deployment.apps/hyperconverged-cluster-operator       1/1     1            1           7m54s
deployment.apps/hyperconverged-cluster-webhook        1/1     1            1           7m54s
deployment.apps/kubemacpool-cert-manager              1/1     1            1           7m11s
deployment.apps/kubemacpool-mac-controller-manager    1/1     1            1           7m11s
deployment.apps/mtq-operator                          1/1     1            1           7m53s
deployment.apps/ssp-operator                          1/1     1            1           7m53s
deployment.apps/virt-api                              1/1     1            1           6m44s
deployment.apps/virt-controller                       1/1     1            1           6m8s
deployment.apps/virt-exportproxy                      1/1     1            1           6m8s
deployment.apps/virt-operator                         2/2     2            2           7m53s

NAME                                                             DESIRED   CURRENT   READY   AGE
replicaset.apps/cdi-apiserver-845d6d7f66                         1         1         1       7m9s
replicaset.apps/cdi-deployment-7fcc478665                        1         1         1       7m9s
replicaset.apps/cdi-operator-67bb69dcfd                          1         1         1       7m53s
replicaset.apps/cdi-uploadproxy-5589d9448f                       1         1         1       7m9s
replicaset.apps/cluster-network-addons-operator-85fb6c5bbb       1         1         1       7m53s
replicaset.apps/hostpath-provisioner-operator-6f5c6bb768         1         1         1       7m53s
replicaset.apps/hyperconverged-cluster-cli-download-85fdc7d8f8   1         1         1       7m54s
replicaset.apps/hyperconverged-cluster-operator-85c85646d7       1         1         1       7m54s
replicaset.apps/hyperconverged-cluster-webhook-7d8bdd6878        1         1         1       7m54s
replicaset.apps/kubemacpool-cert-manager-557f9dddc5              1         1         1       7m11s
replicaset.apps/kubemacpool-mac-controller-manager-5fc7b5d48c    1         1         1       7m11s
replicaset.apps/mtq-operator-578f99ff54                          1         1         1       7m53s
replicaset.apps/ssp-operator-8866df74b                           1         1         1       7m53s
replicaset.apps/virt-api-549bc6d5b8                              1         1         1       6m44s
replicaset.apps/virt-controller-5cf8dffc6                        1         1         1       6m8s
replicaset.apps/virt-exportproxy-75f9566b                        1         1         1       6m7s
replicaset.apps/virt-operator-85b7d5975d                         2         2         2       7m53s

NAME                                        HOST/PORT                                                   PATH   SERVICES           PORT    TERMINATION          WILDCARD
route.route.openshift.io/cdi-uploadproxy    cdi-uploadproxy-kubevirt-hyperconverged.apps-crc.testing           cdi-uploadproxy    <all>   reencrypt/Redirect   None
route.route.openshift.io/virt-exportproxy   virt-exportproxy-kubevirt-hyperconverged.apps-crc.testing          virt-exportproxy   <all>   reencrypt            None

NAME                                                    AGE     PHASE
kubevirt.kubevirt.io/kubevirt-kubevirt-hyperconverged   7m12s   Deployed

NAME                                                     AGE
hyperconverged.hco.kubevirt.io/kubevirt-hyperconverged   7m13s

And SSP logs looks fine:

$ oc logs deployment.apps/ssp-operator
{"level":"info","ts":"2023-09-25T13:26:55Z","logger":"setup","msg":"OLM cert directory found, copying cert files"}
I0925 13:26:56.276992       1 request.go:690] Waited for 1.047567996s due to client-side throttling, not priority and fairness, request: GET:https://10.217.4.1:443/apis/snapshot.kubevirt.io/v1alpha1?timeout=32s
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.builder","msg":"skip registering a mutating webhook, object does not implement admission.Defaulter or WithDefaulter wasn't called","GVK":"ssp.kubevirt.io/v1beta2, Kind=SSP"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.builder","msg":"Registering a validating webhook","GVK":"ssp.kubevirt.io/v1beta2, Kind=SSP","path":"/validate-ssp-kubevirt-io-v1beta2-ssp"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.webhook","msg":"Registering webhook","path":"/validate-ssp-kubevirt-io-v1beta2-ssp"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controllers.Resources","msg":"Found namespace","Namespace":"kubevirt-hyperconverged"}
{"level":"info","ts":"2023-09-25T13:26:58Z","msg":"starting manager"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.webhook.webhooks","msg":"Starting webhook server"}
{"level":"info","ts":"2023-09-25T13:26:58Z","msg":"Starting server","kind":"health probe","addr":"[::]:8081"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"setup","msg":"Starting Prometheus metrics endpoint server with TLS"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.certwatcher","msg":"Updated current TLS certificate"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.webhook","msg":"Serving webhook server","host":"","port":9443}
I0925 13:26:58.800469       1 leaderelection.go:248] attempting to acquire leader lease kubevirt-hyperconverged/734f7229.kubevirt.io...
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.certwatcher","msg":"Starting certificate watcher"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.certwatcher","msg":"Updated current TLS certificate"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.certwatcher","msg":"Starting certificate watcher"}
I0925 13:27:14.594021       1 leaderelection.go:258] successfully acquired lease kubevirt-hyperconverged/734f7229.kubevirt.io
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting vm-controller"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting service-controller"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"vm-controller started"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1beta2.SSP"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.Namespace"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ServiceAccount"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ConfigMap"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ClusterRoleBinding"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ClusterRole"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1beta1.DataSource"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.Template"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.APIService"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1beta1.VirtualMachineClusterInstancetype"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.Role"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1beta1.DataImportCron"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1beta1.VirtualMachineClusterPreference"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.RoleBinding"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ValidatingWebhookConfiguration"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.Service"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.Deployment"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ConfigMap"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.Route"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"vm-controller","controllerGroup":"kubevirt.io","controllerKind":"VirtualMachine","source":"kind source: *v1.VirtualMachine"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.PrometheusRule"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ServiceMonitor"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ServiceAccount"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting Controller","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting Controller","controller":"vm-controller","controllerGroup":"kubevirt.io","controllerKind":"VirtualMachine"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"service-controller started"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"service-controller","controllerGroup":"","controllerKind":"Service","source":"kind source: *v1.Service"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting Controller","controller":"service-controller","controllerGroup":"","controllerKind":"Service"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting workers","controller":"service-controller","controllerGroup":"","controllerKind":"Service","worker count":1}
{"level":"info","ts":"2023-09-25T13:27:14Z","logger":"controllers.Resources","msg":"Starting service reconciliation...","request":"kubevirt-hyperconverged/ssp-operator-metrics"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting workers","controller":"vm-controller","controllerGroup":"kubevirt.io","controllerKind":"VirtualMachine","worker count":1}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting workers","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","worker count":1}
[jcanocan@linux-desktop hyperconverged-cluster-operator]$ oc logs deployment.apps/ssp-operator
{"level":"info","ts":"2023-09-25T13:26:55Z","logger":"setup","msg":"OLM cert directory found, copying cert files"}
I0925 13:26:56.276992       1 request.go:690] Waited for 1.047567996s due to client-side throttling, not priority and fairness, request: GET:https://10.217.4.1:443/apis/snapshot.kubevirt.io/v1alpha1?timeout=32s
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.builder","msg":"skip registering a mutating webhook, object does not implement admission.Defaulter or WithDefaulter wasn't called","GVK":"ssp.kubevirt.io/v1beta2, Kind=SSP"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.builder","msg":"Registering a validating webhook","GVK":"ssp.kubevirt.io/v1beta2, Kind=SSP","path":"/validate-ssp-kubevirt-io-v1beta2-ssp"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.webhook","msg":"Registering webhook","path":"/validate-ssp-kubevirt-io-v1beta2-ssp"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controllers.Resources","msg":"Found namespace","Namespace":"kubevirt-hyperconverged"}
{"level":"info","ts":"2023-09-25T13:26:58Z","msg":"starting manager"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.webhook.webhooks","msg":"Starting webhook server"}
{"level":"info","ts":"2023-09-25T13:26:58Z","msg":"Starting server","kind":"health probe","addr":"[::]:8081"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"setup","msg":"Starting Prometheus metrics endpoint server with TLS"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.certwatcher","msg":"Updated current TLS certificate"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.webhook","msg":"Serving webhook server","host":"","port":9443}
I0925 13:26:58.800469       1 leaderelection.go:248] attempting to acquire leader lease kubevirt-hyperconverged/734f7229.kubevirt.io...
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.certwatcher","msg":"Starting certificate watcher"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.certwatcher","msg":"Updated current TLS certificate"}
{"level":"info","ts":"2023-09-25T13:26:58Z","logger":"controller-runtime.certwatcher","msg":"Starting certificate watcher"}
I0925 13:27:14.594021       1 leaderelection.go:258] successfully acquired lease kubevirt-hyperconverged/734f7229.kubevirt.io
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting vm-controller"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting service-controller"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"vm-controller started"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1beta2.SSP"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.Namespace"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ServiceAccount"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ConfigMap"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ClusterRoleBinding"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ClusterRole"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1beta1.DataSource"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.Template"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.APIService"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1beta1.VirtualMachineClusterInstancetype"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.Role"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1beta1.DataImportCron"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1beta1.VirtualMachineClusterPreference"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.RoleBinding"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ValidatingWebhookConfiguration"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.Service"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.Deployment"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ConfigMap"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.Route"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"vm-controller","controllerGroup":"kubevirt.io","controllerKind":"VirtualMachine","source":"kind source: *v1.VirtualMachine"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.PrometheusRule"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ServiceMonitor"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","source":"kind source: *v1.ServiceAccount"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting Controller","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting Controller","controller":"vm-controller","controllerGroup":"kubevirt.io","controllerKind":"VirtualMachine"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"service-controller started"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting EventSource","controller":"service-controller","controllerGroup":"","controllerKind":"Service","source":"kind source: *v1.Service"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting Controller","controller":"service-controller","controllerGroup":"","controllerKind":"Service"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting workers","controller":"service-controller","controllerGroup":"","controllerKind":"Service","worker count":1}
{"level":"info","ts":"2023-09-25T13:27:14Z","logger":"controllers.Resources","msg":"Starting service reconciliation...","request":"kubevirt-hyperconverged/ssp-operator-metrics"}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting workers","controller":"vm-controller","controllerGroup":"kubevirt.io","controllerKind":"VirtualMachine","worker count":1}
{"level":"info","ts":"2023-09-25T13:27:14Z","msg":"Starting workers","controller":"ssp","controllerGroup":"ssp.kubevirt.io","controllerKind":"SSP","worker count":1}
0xFelix commented 1 year ago

https://github.com/kubevirt/hyperconverged-cluster-operator/blob/8a8c5184abb4b9caca62cafef33e609225ebfb42/deploy/webhooks.yaml#L138

needs to be updated to point to v1beta2, see:

https://github.com/kubevirt/ssp-operator/blob/67cd8503d1463aba2505335167bec0f380ca5c40/webhooks/ssp_webhook.go#L56