-
Bug
-
Resolution: Done
-
Major
-
None
-
4.12.0
-
None
-
None
-
Approved
-
False
-
-
This is a clone of issue OCPBUGS-4197. The following is the description of the original issue:
—
Policy with Incorrect value (see `channel`)
apiVersion: v1 kind: Policy metadata: creationTimestamp: null name: generated-policy-precache-multiple-spoke namespace: talm-test spec: disabled: false policy-templates: - objectDefinition: apiVersion: policy.open-cluster-management.io/v1 kind: ConfigurationPolicy metadata: creationTimestamp: null name: generated-policy-precache-multiple-spoke-config spec: evaluationInterval: compliant: 10s noncompliant: 10s namespaceSelector: exclude: - '*' include: - kube-* object-templates: - complianceType: Musthave objectDefinition: apiVersion: config.openshift.io/v1 kind: ClusterVersion metadata: name: version spec: channel: https://api.openshift.com/api/upgrades_info/v1/graph desiredUpdate: force: false version: 4.11.12 upstream: https://api.openshift.com/api/upgrades_info/v1/graph remediationAction: Inform severity: low status: {} remediationAction: Inform status: {}
Crash log
2022-11-28T19:11:38.280Z INFO controllers.ClusterGroupUpgrade Finish reconciling CGU {"name": "talm-test/generated-cgu-precache-multiple-spoke", "requeueRightAway": false} panic: interface conversion: interface {} is nil, not []interface {} goroutine 648 [running]: github.com/openshift-kni/cluster-group-upgrades-operator/controllers.(*ClusterGroupUpgradeReconciler).getImageForVersionFromUpdateGraph(0x14c92e0, {0xc000e80840, 0x168ffa2}, {0xc000e80800, 0x0}, {0xc0010107f7, 0x7}) /workspace/controllers/precache.go:91 +0x817 github.com/openshift-kni/cluster-group-upgrades-operator/controllers.(*ClusterGroupUpgradeReconciler).extractOpenshiftImagePlatformFromPolicies(0x0, {0xc0002f2390, 0x1, 0x0}) /workspace/controllers/validation.go:77 +0x876 github.com/openshift-kni/cluster-group-upgrades-operator/controllers.(*ClusterGroupUpgradeReconciler).validateOpenshiftUpgradeVersion(0x0, 0xc0009e8000, {0xc0002f2390, 0x0, 0x0}) /workspace/controllers/validation.go:95 +0x45 github.com/openshift-kni/cluster-group-upgrades-operator/controllers.(*ClusterGroupUpgradeReconciler).Reconcile(0xc00090e100, {0x18a2758, 0xc000476e70}, {{{0xc0007452e0, 0x9}, {0xc0007b2c30, 0x25}}}) /workspace/controllers/clustergroupupgrade_controller.go:220 +0x1ebb sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc000944140, {0x18a26b0, 0xc000660000}, {0x1528ee0, 0xc00011a900}) /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:298 +0x303 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc000944140, {0x18a26b0, 0xc000660000}) /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:253 +0x205 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2() /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:214 +0x85 created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2 /workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:210 +0x354
- clones
-
OCPBUGS-4197 CGU pod goes to CrashLoopBackOff when incorrect channel is provided for OCP precaching
- Closed
- is blocked by
-
OCPBUGS-4197 CGU pod goes to CrashLoopBackOff when incorrect channel is provided for OCP precaching
- Closed
- links to
- mentioned on