Bug 1809320
| Summary: | OLM dependency resolution works different between 4.2 and 4.3+ | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Vu Dinh <vdinh> |
| Component: | OLM | Assignee: | Vu Dinh <vdinh> |
| OLM sub component: | OLM | QA Contact: | Jian Zhang <jiazha> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | ecordell, gmargali, kuiwang, uchapaga |
| Version: | 4.2.z | ||
| Target Milestone: | --- | ||
| Target Release: | 4.5.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-07-13 17:17:29 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Vu Dinh
2020-03-02 20:29:28 UTC
Hi Vu,
Thanks very much for your suggestion!
Cluster version is 4.5.0-0.nightly-2020-04-29-231711
mac:~ jianzhang$ oc exec olm-operator-58d756bdd-4vd7s -- olm --version
OLM version: 0.14.2
git commit: 15f5ba3e984f0f06abfbc6d9d3a38c3f659d2e60
1, Create a namespace and subscribe the OCS in it.
mac:~ jianzhang$ oc adm new-project openshift-storage
Created project openshift-storage
mac:~ jianzhang$ oc get sub
NAME PACKAGE SOURCE CHANNEL
lib-bucket-provisioner-alpha-community-operators-openshift-marketplace lib-bucket-provisioner community-operators alpha
ocs-operator ocs-operator redhat-operators stable-4.3
2, It requires the ObjectBucket and ObjectBucketClaims CRDs.
mac:~ jianzhang$ oc get csv ocs-operator.v4.3.0 -o=jsonpath='{.spec.customresourcedefinitions.required}'
[map[description:Claim a bucket just like claiming a PV. Automate you app bucket provisioning by creating OBC with your app deployment. A secret and configmap (name=claim) will be created with access details for the app pods. displayName:Object Bucket Claim kind:ObjectBucketClaim name:objectbucketclaims.objectbucket.io resources:[map[kind:Service name:services version:v1] map[kind:Secret name:secrets version:v1] map[kind:ConfigMap name:configmaps version:v1] map[kind:StatefulSet name:statefulsets.apps version:v1]] version:v1alpha1] map[description:Used under-the-hood. Created per ObjectBucketClaim and keeps provisioning information. displayName:Object Bucket kind:ObjectBucket name:objectbuckets.objectbucket.io resources:[map[kind:Service name:services version:v1] map[kind:Secret name:secrets version:v1] map[kind:ConfigMap name:configmaps version:v1] map[kind:StatefulSet name:statefulsets.apps version:v1]] version:v1alpha1]]
3, Check the csv status.
mac:~ jianzhang$ oc get csv
NAME DISPLAY VERSION REPLACES PHASE
lib-bucket-provisioner.v1.0.0 lib-bucket-provisioner 1.0.0 Succeeded
ocs-operator.v4.3.0 OpenShift Container Storage 4.3.0 Succeeded
mac:~ jianzhang$ oc get pods
NAME READY STATUS RESTARTS AGE
lib-bucket-provisioner-9468547bd-jjskh 1/1 Running 0 2m19s
noobaa-operator-5847db64fb-mggvk 1/1 Running 0 2m16s
ocs-operator-8bfbd45d7-888vl 1/1 Running 0 2m16s
rook-ceph-operator-66644464c9-csfx8 1/1 Running 0 2m16s
The OCS installed successfully, LGTM, verify it.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409 |