-
Bug
-
Resolution: Won't Do
-
Normal
-
None
-
4.16.0
-
Moderate
-
Yes
-
Rejected
-
False
-
Description of problem:
This is TP feature. can not install bundle with registry v1 format. the error: - lastTransitionTime: "2024-05-20T03:12:49Z" message: 'Unable to continue with install: ServiceAccount "hello-openshift-bundle-controller-manager" in namespace "ns-68936" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "68903-deployment"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "ns-68936"' reason: InstallFailed status: "False" type: Installed
Version-Release number of selected component (if applicable):
kuiwang@kuiwang-mac jb % oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.16.0-0.nightly-2024-05-19-083311 True False 160m Cluster version is 4.16.0-0.nightly-2024-05-19-083311
How reproducible:
always
Steps to Reproduce:
1, kuiwang@kuiwang-mac openshift-tests-private % cat regdep.json { "kind": "List", "apiVersion": "v1", "metadata": {}, "items": [ { "apiVersion": "core.rukpak.io/v1alpha2", "kind": "BundleDeployment", "metadata": { "name": "68903-deployment" }, "spec": { "installNamespace": "ns-68936", "provisionerClassName": "core-rukpak-io-registry", "source": { "image": { "ref": "quay.io/olmqe/olmv1bundle:registry-temp" }, "type": "image" } } } ] } 2, kuiwang@kuiwang-mac openshift-tests-private % oc create ns ns-68936 namespace/ns-68936 created 3, kuiwang@kuiwang-mac openshift-tests-private % oc apply -f regdep.json bundledeployment.core.rukpak.io/68903-deployment created 4, kuiwang@kuiwang-mac openshift-tests-private % oc get bd 68903-deployment -o yaml apiVersion: core.rukpak.io/v1alpha2 kind: BundleDeployment metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"core.rukpak.io/v1alpha2","kind":"BundleDeployment","metadata":{"annotations":{},"name":"68903-deployment"},"spec":{"installNamespace":"ns-68936","provisionerClassName":"core-rukpak-io-registry","source":{"image":{"ref":"quay.io/olmqe/olmv1bundle:registry-temp"},"type":"image"}}} creationTimestamp: "2024-05-20T03:12:34Z" finalizers: - core.rukpak.io/delete-cached-bundle generation: 1 name: 68903-deployment resourceVersion: "82784" uid: ed322b20-9043-4e95-94c4-cb7fac680599 spec: installNamespace: ns-68936 provisionerClassName: core-rukpak-io-registry source: image: ref: quay.io/olmqe/olmv1bundle:registry-temp type: image status: conditions: - lastTransitionTime: "2024-05-20T03:12:39Z" message: Successfully unpacked the image Bundle reason: UnpackSuccessful status: "True" type: Unpacked - lastTransitionTime: "2024-05-20T03:12:49Z" message: 'Unable to continue with install: ServiceAccount "hello-openshift-bundle-controller-manager" in namespace "ns-68936" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "68903-deployment"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "ns-68936"' reason: InstallFailed status: "False" type: Installed - lastTransitionTime: "2024-05-20T03:12:40Z" message: Installed condition is false reason: InstallationStatusFalse status: "False" type: Healthy contentURL: https://core.openshift-rukpak.svc/bundles/68903-deployment.tgz observedGeneration: 1 resolvedSource: image: ref: quay.io/olmqe/olmv1bundle@sha256:d79fc6588da76e129bc4d1517c327aae0d151b016032386a918d82eac1fe81ca type: image
Actual results:
fail to install bundle
Expected results:
succed to install bundle
Additional info:
we can install it with same bundle on 4.15