Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-11347

nmstate-operator pod shows error log: "failed applying UI Plugin: failed to render kubernetes-nmstate openshift/ui-plugin"

XMLWordPrintable

    • Low
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      nmstate-operator pod shows error log: "failed applying UI Plugin: failed to render kubernetes-nmstate openshift/ui-plugin"

      Version-Release number of selected component (if applicable):

      OCP: 4.13.0-0.nightly-2023-04-01-062001
      knmstate operator: kubernetes-nmstate-operator.4.13.0-202303301516

      How reproducible:

      100%

      Steps to Reproduce:

      1. install knmstate operator
      % oc get sub
      NAME                   PACKAGE                       SOURCE            CHANNEL
      nmstate-operator-sub   kubernetes-nmstate-operator   qe-app-registry   stable
      % oc get csv
      NAME                                              DISPLAY                            VERSION               REPLACES   PHASE
      kubernetes-nmstate-operator.4.13.0-202303301516   Kubernetes NMState Operator        4.13.0-202303301516              Succeeded
      % oc get pod
      NAME                                READY   STATUS    RESTARTS   AGE
      nmstate-operator-77577b78d6-tt2kp   1/1     Running   0          13s
      
      
      2. create nmstate CR
      ---
      apiVersion: nmstate.io/v1
      kind: NMState
      metadata:
        name: nmstate
      % oc apply -f nmstate-instance.yaml 
      nmstate.nmstate.io/nmstate created
      
      
      3. check logs of nmstate-operator pod
      % oc logs nmstate-operator-77577b78d6-tt2kp

      Actual results:

      error logs shown as below:
      {"level":"error","ts":"2023-04-04T10:00:29.949Z","msg":"Reconciler error","controller":"nmstate","controllerGroup":"nmstate.io","controllerKind":"NMState","nMState":{"name":"nmstate"},"namespace":"","name":"nmstate","reconcileID":"bbfb1c18-3a1b-4988-9ed4-ccaa3114c51e","error":"failed applying UI Plugin: failed to render kubernetes-nmstate openshift/ui-plugin: error rendering manifests: lstat bindata/kubernetes-nmstate/openshift/ui-plugin: no such file or directory","errorVerbose":"lstat bindata/kubernetes-nmstate/openshift/ui-plugin: no such file or directory\nerror rendering manifests\ngithub.com/openshift/cluster-network-operator/pkg/render.RenderDir\n\t/go/src/github.com/openshift/kubernetes-nmstate/vendor/github.com/openshift/cluster-network-operator/pkg/render/render.go:56\ngithub.com/nmstate/kubernetes-nmstate/controllers/operator.(*NMStateReconciler).renderAndApply\n\t/go/src/github.com/openshift/kubernetes-nmstate/controllers/operator/nmstate_controller.go:395\ngithub.com/nmstate/kubernetes-nmstate/controllers/operator.(*NMStateReconciler).applyOpenshiftUIPlugin\n\t/go/src/github.com/openshift/kubernetes-nmstate/controllers/operator/nmstate_controller.go:317\ngithub.com/nmstate/kubernetes-nmstate/controllers/operator.(*NMStateReconciler).applyManifests\n\t/go/src/github.com/openshift/kubernetes-nmstate/controllers/operator/nmstate_controller.go:151\ngithub.com/nmstate/kubernetes-nmstate/controllers/operator.(*NMStateReconciler).Reconcile\n\t/go/src/github.com/openshift/kubernetes-nmstate/controllers/operator/nmstate_controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/src/github.com/openshift/kubernetes-nmstate/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:121\nsigs.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:320\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:273\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:234\nruntime.goexit\n\t/usr/lib/golang/src/runtime/asm_amd64.s:1594\nfailed to render kubernetes-nmstate openshift/ui-plugin\ngithub.com/nmstate/kubernetes-nmstate/controllers/operator.(*NMStateReconciler).renderAndApply\n\t/go/src/github.com/openshift/kubernetes-nmstate/controllers/operator/nmstate_controller.go:397\ngithub.com/nmstate/kubernetes-nmstate/controllers/operator.(*NMStateReconciler).applyOpenshiftUIPlugin\n\t/go/src/github.com/openshift/kubernetes-nmstate/controllers/operator/nmstate_controller.go:317\ngithub.com/nmstate/kubernetes-nmstate/controllers/operator.(*NMStateReconciler).applyManifests\n\t/go/src/github.com/openshift/kubernetes-nmstate/controllers/operator/nmstate_controller.go:151\ngithub.com/nmstate/kubernetes-nmstate/controllers/operator.(*NMStateReconciler).Reconcile\n\t/go/src/github.com/openshift/kubernetes-nmstate/controllers/operator/nmstate_controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/src/github.com/openshift/kubernetes-nmstate/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:121\nsigs.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:320\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:273\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:234\nruntime.goexit\n\t/usr/lib/golang/src/runtime/asm_amd64.s:1594\nfailed applying UI Plugin\ngithub.com/nmstate/kubernetes-nmstate/controllers/operator.(*NMStateReconciler).applyManifests\n\t/go/src/github.com/openshift/kubernetes-nmstate/controllers/operator/nmstate_controller.go:152\ngithub.com/nmstate/kubernetes-nmstate/controllers/operator.(*NMStateReconciler).Reconcile\n\t/go/src/github.com/openshift/kubernetes-nmstate/controllers/operator/nmstate_controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/src/github.com/openshift/kubernetes-nmstate/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:121\nsigs.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:320\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:273\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:234\nruntime.goexit\n\t/usr/lib/golang/src/runtime/asm_amd64.s:1594","stacktrace":"sigs.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:273\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:234"}

      Expected results:

      there is no error logs

      Additional info:

       

              rhn-support-dougsland Douglas Landgraf
              rh-ee-qiowang Qiong Wang
              Qiong Wang Qiong Wang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: