openshift-kni / eco-gotests

Ecosystem QE Golang Test Automation
Apache License 2.0
6 stars 28 forks source link

ExternallyManaged General Verifying connectivity with different IP protocols fails to locate nmstate-cert-manager #207

Open gkopels opened 2 months ago

gkopels commented 2 months ago

ExternallyManaged General Verifying connectivity with different IP protocols [externallymanaged, generalexcreated, 63527, test_id:63527, polarion-parameter-IPStack:IPv4

The latest knmstate is using openshift cert service, so no cert manager pod is not deployed. Need to check if test case needs to be modified.

openshift-nmstate nmstate-console-plugin-8ddd7bf7-jhml9 1/1 Running 0 5m48s openshift-nmstate nmstate-handler-7cvd4 1/1 Running 0 5m48s openshift-nmstate nmstate-handler-b8tv9 1/1 Running 0 5m48s openshift-nmstate nmstate-handler-ldhcj 1/1 Running 0 5m48s openshift-nmstate nmstate-handler-m54rk 1/1 Running 0 5m48s openshift-nmstate nmstate-handler-sxj8z 1/1 Running 0 5m48s openshift-nmstate nmstate-handler-ztztm 1/1 Running 0 5m48s openshift-nmstate nmstate-operator-575c8975d-flzxx 1/1 Running 0 47h openshift-nmstate nmstate-webhook-b8648f9c9-4drhd 1/1 Running 0 5m48s openshift-nmstate nmstate-webhook-b8648f9c9-c6n7w 1/1 Running 0 5m48s Webhook {"level":"info","ts":"2024-09-17T18:38:11.307Z","logger":"controller-runtime.certwatcher","msg":"Updated current TLS certificate"} {"level":"info","ts":"2024-09-17T18:38:11.307Z","logger":"controller-runtime.webhook","msg":"Serving webhook server","host":"","port":9443} {"level":"info","ts":"2024-09-17T18:38:11.307Z","logger":"controller-runtime.certwatcher","msg":"Starting certificate watcher"} Controller kubernetes-nmstate-operator.4.16.0-202409111235 {"level":"error","ts":"2024-09-17T19:16:46.248Z","msg":"Reconciler error","controller":"nmstate","controllerGroup":"nmstate.io","controllerKind":"NMState","NMState":{"name":"nmstate"},"namespace":"","name":"nmstate","reconcileID":"911d8e5c-54e0-4a39-9ee9-2a00abe317e4","error":"failed deleting obsolete cert-manager deployment at openshift: an empty namespace may not be set when a resource name is provided","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/src/github.com/openshift/kubernetes-nmstate/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:329[nsigs.k8s.io/controller-runtime/pkg/internal/controller.(Controller).processNextWorkItem](http://nsigs.k8s.io/controller-runtime/pkg/internal/controller.(Controller).processNextWorkItem)\n\t/go/src/github.com/openshift/kubernetes-nmstate/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:274[nsigs.k8s.io/controller-runtime/pkg/internal/controller.(Controller).Start.func2.2](http://nsigs.k8s.io/controller-runtime/pkg/internal/controller.(Controller).Start.func2.2)\n\t/go/src/github.com/openshift/kubernetes-nmstate/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:235"}

gkopels commented 2 months ago
        nmstateCertDeployment, err = deployment.Pull(
            APIClient, netparam.NMStateCertDeploymentName, NetConfig.NMStateOperatorNamespace)
        if err != nil {
            glog.V(90).Infof("Error to pull deployment %s namespace %s, retry",
                netparam.NMStateCertDeploymentName, NetConfig.NMStateOperatorNamespace)

            return false, nil
        }