Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1847408

Summary: [csi-driver-manila-operator] Two conflicting app registries for manila driver operator
Product: OpenShift Container Platform Reporter: Wei Duan <wduan>
Component: StorageAssignee: aos-storage-staff <aos-storage-staff>
Status: CLOSED ERRATA QA Contact: Wei Duan <wduan>
Severity: high Docs Contact:
Priority: high    
Version: 4.5CC: aos-bugs, aos-storage-staff, jsafrane, piqin
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: 1847405 Environment:
Last Closed: 2020-07-15 10:17:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1847405    
Bug Blocks:    

Description Wei Duan 2020-06-16 10:26:16 UTC
+++ This bug was initially created as a clone of Bug #1847405 +++

Description of problem:
There are two conflicting app registries for manila driver operator and should remove one. 

Version-Release number of selected component (if applicable):
[wduan@MINT appregistry]$ oc get  clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.5.0-0.nightly-2020-06-11-183238   True        False         29h     Error while reconciling 4.5.0-0.nightly-2020-06-11-183238: the cluster operator image-registry is degraded

How reproducible:
Always

Steps to Reproduce:
1. Create operatorsouce with registryNamespace: rh-osbs-operators under quay.io. 
2. Check bundle files on manila-app-registry pod, there are two operators for manila as below, they have the same version for csv/crd, but different contents.
sh-4.2$ ls | grep manila
csi-driver-manila-operator
csi-driver-manila-operator-metadata-container
3. Install these two operators, always got the wrong content like:
[wduan@MINT appregistry]$ oc get csv -o yaml | grep image | grep operator
image: registry.redhat.io/openshift4/ose-csi-driver-manila-rhel7-operator@sha256:4dbd69aba5adf45477a1bc84f61573a9e01cc4359fdabc6229190dfa7ad9ae0f:latest

Actual results:
There are two conflicting app registries

Expected results:
Should only one app registry exists

Additional info:
$ oc get packagemanifests csi-driver-manila-operator-metadata-container -ojson|jq .status.channels[].currentCSVDesc.relatedImages
[
  "registry.redhat.io/openshift4/ose-csi-external-provisioner-rhel7@sha256:37cddbf16e82ff008a34118b767d1c4889163dd0967079c558b5faccbbd36767",
  "registry.redhat.io/openshift4/ose-csi-external-snapshotter-rhel7@sha256:cf4de79e43f43ab66e2449d0637ac164f922d9a5def3cbbde7ac1c1fa62b6879",
  "registry.redhat.io/openshift4/ose-csi-node-driver-registrar@sha256:cb32fe8cf8a89627179db8ed907289b00d65d2db05dff72a0df5ea978bb482e9",
  "registry.redhat.io/openshift4/ose-csi-driver-manila-rhel7@sha256:c93e0c46662241a7de16a844ef6dc2ac813842890363217177a58e9af415ef01",
  "registry.redhat.io/openshift4/ose-csi-driver-manila-rhel7-operator@sha256:4dbd69aba5adf45477a1bc84f61573a9e01cc4359fdabc6229190dfa7ad9ae0f",
  "registry.redhat.io/openshift4/ose-csi-driver-manila-rhel7-operator@sha256:4dbd69aba5adf45477a1bc84f61573a9e01cc4359fdabc6229190dfa7ad9ae0f:latest",
  "registry.redhat.io/openshift4/ose-csi-driver-nfs-rhel7@sha256:d645bb0797c0601ada33cf635d2b89f49107f0af7e7ebf5c25bde757b96977f1"
]

registry.redhat.io/openshift4/ose-csi-driver-manila-rhel7-operator@sha256:4dbd69aba5adf45477a1bc84f61573a9e01cc4359fdabc6229190dfa7ad9ae0f:latest comes from csi-driver-manila-operator app registry

Comment 4 Wei Duan 2020-06-17 13:08:33 UTC
With the latest bundle, there are two app registries but not conflict yet. All files are the same with latest fixes.
sh-4.2$ ls | grep manila
csi-driver-manila-operator
csi-driver-manila-operator-metadata-container

I remove the testblock label and keep ON_QA status to see if we have the chance to remove one.

Comment 5 Wei Duan 2020-06-19 03:27:08 UTC
Tested with the official manila-csi-driver-operator.
Others will be removed.

Comment 7 errata-xmlrpc 2020-07-15 10:17:52 UTC
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/RHEA-2020:2925