-
Bug
-
Resolution: Done
-
Blocker
-
quay-v3.5.7
-
False
-
False
-
Description:
This is an issue found when deploy Quay 3.5.7 with Operator, when choose to all managed components(only monitoring is unmanaged), QuayRegistry deployment was blocked, checked Quay Operator POD Logs, found the following panic error "Observed a panic: Missing model for GVK rbac.authorization.k8s.io/v1beta1, Kind=Role", see attached detailed Operator POD logs quay_3.5.7_operator_pod.logs
Note: Quay image is "quay-operator-bundle-container-v3.5.7-3"
2021/09/13 02:39:27 well-defined vars that were never replaced: CLAIR_SERVICE_HOST E0913 02:39:27.906023 1 runtime.go:76] Observed a panic: Missing model for GVK rbac.authorization.k8s.io/v1beta1, Kind=Role goroutine 436 [running]: k8s.io/apimachinery/pkg/util/runtime.logPanic(0x2741c80, 0xc001826d40) /workspace/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:74 +0x95 k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0) /workspace/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:48 +0x89 panic(0x2741c80, 0xc001826d40) /opt/rh/go-toolset-1.15/root/usr/lib/go-toolset-1.15-golang/src/runtime/panic.go:969 +0x1b9 github.com/quay/quay-operator/pkg/kustomize.ModelFor(0xc0015e1e00, 0x19, 0xc0015e1e1a, 0x7, 0xc0011d4a7c, 0x4, 0x4, 0x0) /workspace/pkg/kustomize/kustomize.go:166 +0x1605 github.com/quay/quay-operator/pkg/kustomize.generate(0xc000150200, 0xc0006f9ef0, 0x2d, 0xc0009bd110, 0xe, 0x0, 0x0, 0x0, 0xc000fc4000) /workspace/pkg/kustomize/kustomize.go:216 +0x7ea github.com/quay/quay-operator/pkg/kustomize.Inflate(0xc0007e6a50, 0xc0006421c0, 0xc0000ea3c0, 0x2dd15e0, 0xc0005a96a0, 0x0, 0x0, 0x0, 0x2d70420, 0xc000c8b770) /workspace/pkg/kustomize/kustomize.go:485 +0xde5 github.com/quay/quay-operator/controllers/quay.(*QuayRegistryReconciler).Reconcile(0xc00098c140, 0x2dc4920, 0xc00043d680, 0xc00067c509, 0x7, 0xc00067c4fc, 0x4, 0xc00043d680, 0xdd63ff, 0xc00003c000, ...) /workspace/controllers/quay/quayregistry_controller.go:269 +0x22e7 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc000b11d60, 0x2dc4860, 0xc0008ee080, 0x28781a0, 0xc000d32920) /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:297 +0x317 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc000b11d60, 0x2dc4860, 0xc0008ee080, 0x0) /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:252 +0x205 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2(0x2dc4860, 0xc0008ee080) /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215 +0x4a k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1() /workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:185 +0x37 k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0xc000a85f50) /workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155 +0x5f k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc00134bf50, 0x2d72b00, 0xc00043d500, 0xc0008ee001, 0xc00014e120) /workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156 +0xad k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000a85f50, 0x3b9aca00, 0x0, 0x1, 0xc00014e120) /workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x98 k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext(0x2dc4860, 0xc0008ee080, 0xc0005a9640, 0x3b9aca00, 0x0, 0xc00049d101) /workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:185 +0xa6 k8s.io/apimachinery/pkg/util/wait.UntilWithContext(0x2dc4860, 0xc0008ee080, 0xc0005a9640, 0x3b9aca00) /workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:99 +0x57 created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1 /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:212 +0x45e panic: Missing model for GVK rbac.authorization.k8s.io/v1beta1, Kind=Role [recovered] panic: Missing model for GVK rbac.authorization.k8s.io/v1beta1, Kind=Role goroutine 436 [running]: k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0) /workspace/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:55 +0x10c panic(0x2741c80, 0xc001826d40) /opt/rh/go-toolset-1.15/root/usr/lib/go-toolset-1.15-golang/src/runtime/panic.go:969 +0x1b9 github.com/quay/quay-operator/pkg/kustomize.ModelFor(0xc0015e1e00, 0x19, 0xc0015e1e1a, 0x7, 0xc0011d4a7c, 0x4, 0x4, 0x0) /workspace/pkg/kustomize/kustomize.go:166 +0x1605 github.com/quay/quay-operator/pkg/kustomize.generate(0xc000150200, 0xc0006f9ef0, 0x2d, 0xc0009bd110, 0xe, 0x0, 0x0, 0x0, 0xc000fc4000) /workspace/pkg/kustomize/kustomize.go:216 +0x7ea github.com/quay/quay-operator/pkg/kustomize.Inflate(0xc0007e6a50, 0xc0006421c0, 0xc0000ea3c0, 0x2dd15e0, 0xc0005a96a0, 0x0, 0x0, 0x0, 0x2d70420, 0xc000c8b770) /workspace/pkg/kustomize/kustomize.go:485 +0xde5 github.com/quay/quay-operator/controllers/quay.(*QuayRegistryReconciler).Reconcile(0xc00098c140, 0x2dc4920, 0xc00043d680, 0xc00067c509, 0x7, 0xc00067c4fc, 0x4, 0xc00043d680, 0xdd63ff, 0xc00003c000, ...) /workspace/controllers/quay/quayregistry_controller.go:269 +0x22e7 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc000b11d60, 0x2dc4860, 0xc0008ee080, 0x28781a0, 0xc000d32920) /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:297 +0x317 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc000b11d60, 0x2dc4860, 0xc0008ee080, 0x0) /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:252 +0x205 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2(0x2dc4860, 0xc0008ee080) /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215 +0x4a k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1() /workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:185 +0x37 k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0xc000a85f50) /workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155 +0x5f k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc00134bf50, 0x2d72b00, 0xc00043d500, 0xc0008ee001, 0xc00014e120) /workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156 +0xad k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000a85f50, 0x3b9aca00, 0x0, 0x1, 0xc00014e120) /workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x98 k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext(0x2dc4860, 0xc0008ee080, 0xc0005a9640, 0x3b9aca00, 0x0, 0xc00049d101) /workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:185 +0xa6 k8s.io/apimachinery/pkg/util/wait.UntilWithContext(0x2dc4860, 0xc0008ee080, 0xc0005a9640, 0x3b9aca00) /workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:99 +0x57 created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1 /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:212 +0x45e
Steps:
- Deployed Quay 3.5.7 Operator on OCP 4.8 Single Namespace
- Deploy OCS 4.8.1 and create NooBaa Resource
- Create QuayRegistry, choose monitoring component to false, other components set to true
- Check the status of QuayRegistry
Expected Results
QuayRegistry deployment complete successfully.
Actual Results**
QuayRegistry deployment was failed.