-
Bug
-
Resolution: Done-Errata
-
Normal
-
4.15
-
Critical
-
No
-
OPECO 248
-
1
-
Rejected
-
False
-
-
N/A
-
Release Note Not Required
Description of problem:
In OLMv1: Catalogd When a failing catalog exists(wrong pollInterval), the newly created catalog cannot be unpacked.
Version-Release number of selected component (if applicable):
release-4.15 with open TP
How reproducible:
always
Steps to Reproduce:
1.Enable TP. $ oc patch featuregate cluster -p '{"spec": {"featureSet": "TechPreviewNoUpgrade"}}' --type=merge
2.Create a catalog with wrong pollInterval (1mm) jitli@RedHat:~$ cat catalog-redhat-wrongpollInterval.yaml apiVersion: catalogd.operatorframework.io/v1alpha1 kind: Catalog metadata: name: redhat-operators-wrongpollinterval spec: source: image: pollInterval: 1mm ref: quay.io/olmqe/olmtest-operator-index:nginxolm69242 type: image
jitli@RedHat:~$ oc create -f catalog-redhat-wrongpollInterval.yaml catalog.catalogd.operatorframework.io/redhat-operators-wrongpollinterval created jitli@RedHat:~$ oc get catalog NAME PHASE AGE redhat-operators-wrongpollinterval 116s jitli@RedHat:~$ oc get catalog redhat-operators-wrongpollinterval -o yaml apiVersion: catalogd.operatorframework.io/v1alpha1 kind: Catalog metadata: creationTimestamp: "2023-12-21T08:51:32Z" generation: 1 name: redhat-operators-wrongpollinterval resourceVersion: "350799" uid: 2d6b7292-cdce-45a6-a126-af95505fe18e spec: source: image: pollInterval: 1mm ref: quay.io/olmqe/olmtest-operator-index:nginxolm69242 type: image
3. then create a catalog jitli@RedHat:~$ cat catalog-redhat-jitli.yaml apiVersion: catalogd.operatorframework.io/v1alpha1 kind: Catalog metadata: name: redhat-operators-jitli spec: source: image: ref: quay.io/olmqe/olmtest-operator-index:nginxolm69242 type: image jitli@RedHat:~$ oc create -f catalog-redhat-jitli.yaml catalog.catalogd.operatorframework.io/redhat-operators-jitli created jitli@RedHat:~$ oc get catalog NAME PHASE AGE redhat-operators-jitli 2m1s redhat-operators-wrongpollinterval 12m
Actual results:
jitli@RedHat:~$ oc get catalog NAME PHASE AGE redhat-operators-jitli 2m1s redhat-operators-wrongpollinterval 12m
jitli@RedHat:~/work/src/test/catalogd/69123$ oc get catalog redhat-operators-wrongpollinterval -o yaml apiVersion: catalogd.operatorframework.io/v1alpha1 kind: Catalog metadata: creationTimestamp: "2023-12-21T08:51:32Z" generation: 1 name: redhat-operators-wrongpollinterval resourceVersion: "350799" uid: 2d6b7292-cdce-45a6-a126-af95505fe18e spec: source: image: pollInterval: 1mm ref: quay.io/olmqe/olmtest-operator-index:nginxolm69242 type: image
Expected results:
jitli@RedHat:~$ oc get catalog NAME PHASE AGE redhat-operators-jitli Unpacked 2m1s redhat-operators-wrongpollinterval Failing 12m
or check and reject when creating with wrong format
jitli@RedHat:~$ oc create -f catalog-redhat.yaml The Catalog "redhatT-operators-jitli" is invalid: metadata.name: Invalid value: "redhatT-operators-jitli": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
Additional info:
Will always be stuck
- is cloned by
-
OCPBUGS-25893 [OLM v1.0] Catalog wrong type parameter will block the catalog deleted
- Closed
- links to
-
RHEA-2024:0041 OpenShift Container Platform 4.16.z bug fix update