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

Removing and recreating SriovOperatorConfig not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • 4.16
    • Networking / SR-IOV
    • None
    • 3
    • NHE Sprint 258, NHE Sprint 259, NHE Sprint 260
    • 3
    • False
    • Hide

      None

      Show
      None

      Deleting the SriovOperatorConfig and recreating it does not work:

       

      # oc delete SriovOperatorConfig default -n openshift-sriov-network-operator
      # cat << EOF| oc apply -f -
      > apiVersion: sriovnetwork.openshift.io/v1
      > kind: SriovOperatorConfig
      > metadata:
      >   name: default
      >   namespace: openshift-sriov-network-operator
      > spec:
      >   disableDrain: false
      >   enableInjector: true
      >   enableOperatorWebhook: true
      >   logLevel: 2
      > EOF
      Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "operator-webhook.sriovnetwork.openshift.io": failed to call webhook: Post "https://operator-webhook-service.openshift-sriov-network-operator.svc:443/validating-custom-resource?timeout=10s": service "operator-webhook-service" not found
      

      Workaround:

      # oc delete ValidatingWebhookConfiguration sriov-operator-webhook-config
      
      # cat << EOF| oc apply -f -
      > apiVersion: sriovnetwork.openshift.io/v1
      > kind: SriovOperatorConfig
      > metadata:
      >   name: default
      >   namespace: openshift-sriov-network-operator
      > spec:
      >   disableDrain: false
      >   enableInjector: true
      >   enableOperatorWebhook: true
      >   logLevel: 2
      > EOF
      sriovoperatorconfig.sriovnetwork.openshift.io/default created

      Notes:
      Somehow similar to Bug 2010073 - uninstalling and then reinstalling sriov-network-operator is not working (https://bugzilla.redhat.com/show_bug.cgi?id=2010073)

       

              thaller@redhat.com Thomas Haller
              jcastillolema Jose Castillo Lema
              Zhanqi Zhao Zhanqi Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: