Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-12712

Excessive reflector.go failures related to watching ImageContentSourcePolicy objects

XMLWordPrintable

    • Low

      In normal operation of the openstack-operator, whether or not there is a ImageContentSourcePolicy resource in the cluster, the operator prints failures related to the ImageContentSourcePolicy resource:

      E0103 11:48:59.939880       1 reflector.go:147] go/pkg/mod/k8s.io/client-go@v0.29.12/tools/cache/reflector.go:229: Failed to watch *v1alpha1.ImageContentSourcePolicy: unknown (get imagecontentsourcepolicies.operator.openshift.io)
      E0103 11:49:37.412674       1 reflector.go:147] go/pkg/mod/k8s.io/client-go@v0.29.12/tools/cache/reflector.go:229: Failed to watch *v1alpha1.ImageContentSourcePolicy: unknown (get imagecontentsourcepolicies.operator.openshift.io)
      E0103 11:50:10.949293       1 reflector.go:147] go/pkg/mod/k8s.io/client-go@v0.29.12/tools/cache/reflector.go:229: Failed to watch *v1alpha1.ImageContentSourcePolicy: unknown (get imagecontentsourcepolicies.operator.openshift.io)
      E0103 11:51:01.940747       1 reflector.go:147] go/pkg/mod/k8s.io/client-go@v0.29.12/tools/cache/reflector.go:229: Failed to watch *v1alpha1.ImageContentSourcePolicy: unknown (get imagecontentsourcepolicies.operator.openshift.io) 

      This is because the operator doesn't have permission to "watch" this resource:

      $ oc auth can-i watch imagecontentsourcepolicies.operator.openshift.io --as openstack-operator-controller-manager
      Warning: resource 'imagecontentsourcepolicies' is not namespace scoped in group 'operator.openshift.io'
      
      no 

      We can solve this by simply allowing the operator to watch this resource, since it's already allowed to Get and List anyway.

              rhn-support-bshephar Brendan Shephard (Inactive)
              rhn-support-bshephar Brendan Shephard (Inactive)
              rhos-dfg-df
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: