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

controller should not watch build.config.openshift.io when capability is disabled

    XMLWordPrintable

Details

    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      The openshift controller manager operator contains a controller that watches the "build.config.openshift.io" resource to configure build behavior on the cluster.
      
      This resource is not available when the build capability is disabled, but the controller within the operator is still running and trying to watch the resource, resulting in errors like this:
      
      E1013 17:01:30.994635       1 reflector.go:147] k8s.io/client-go@v0.28.2/tools/cache/reflector.go:229: Failed to watch *v1.Build: failed to list *v1.Build: the server could not find the requested resource (get builds.config.openshift.io)
      
      
      

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

      4.14
      
      

      How reproducible:

      Always for a cluster w/ the build capability disabled
      
      

      Steps to Reproduce:

      1. Stand up a cluster w/ the build capability disabled (or just no caps enabled)
      2. look at the logs for the openshift controller manager operator: oc -n openshift-controller-manager-operator logs -l app=openshift-controller-manager-operator --tail -1
      
      

      Actual results:

      Errors in the logs due to the resource not existing:
      
      W1013 17:04:57.556638       1 reflector.go:535] k8s.io/client-go@v0.28.2/tools/cache/reflector.go:229: failed to list *v1.Build: the server could not find the requested resource (get builds.config.openshift.io)
      E1013 17:04:57.557052       1 reflector.go:147] k8s.io/client-go@v0.28.2/tools/cache/reflector.go:229: Failed to watch *v1.Build: failed to list *v1.Build: the server could not find the requested resource (get builds.config.openshift.io)
      
      

      Expected results:

      The controller in question should not be running at all when the build capability is disabled, so there should be no errors related to this in the logs.
      
      

      This needs to be backported to 4.14 when fixed.

      Attachments

        Issue Links

          Activity

            People

              cdaley Corey Daley
              bparees@redhat.com Ben Parees
              Jitendar Singh Jitendar Singh
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: