Bug 2010486 - SRO package name collision between official and community version
Summary: SRO package name collision between official and community version
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Special Resource Operator
Version: 4.9
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 4.9.0
Assignee: dagray
QA Contact: liqcui
URL:
Whiteboard:
Depends On: 2009888
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-04 19:14 UTC by OpenShift BugZilla Robot
Modified: 2021-10-18 17:52 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-18 17:52:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift special-resource-operator pull 41 0 None open [release-4.9] Bug 2010486: Rename project to openshift-special-resource-operator 2021-10-04 19:14:41 UTC
Github openshift special-resource-operator pull 49 0 None open [release-4.9] Bug 2010486: SRO package name collision between official and community version 2021-10-06 19:59:25 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:52:50 UTC

Comment 4 liqcui 2021-10-09 08:05:29 UTC
Verified Result:
oc get packagemanifest openshift-special-resource-operator -n openshift-marketplace -o yaml
apiVersion: packages.operators.coreos.com/v1
kind: PackageManifest
metadata:
  creationTimestamp: "2021-10-09T01:51:44Z"
  labels:
    catalog: qe-app-registry
    catalog-namespace: openshift-marketplace
    operatorframework.io/arch.amd64: supported
    operatorframework.io/arch.arm64: supported
    operatorframework.io/arch.ppc64le: supported
    operatorframework.io/arch.s390x: supported
    operatorframework.io/os.linux: supported
    provider: Red Hat
    provider-url: redhat.com
  name: openshift-special-resource-operator
  namespace: openshift-marketplace
spec: {}
status:
  catalogSource: qe-app-registry
  catalogSourceDisplayName: Production Operators
  catalogSourceNamespace: openshift-marketplace
  catalogSourcePublisher: OpenShift QE
  channels:
  - currentCSV: openshift-special-resource-operator.4.9.0-202110081525

oc create -f-<<EOF 
apiVersion: operators.coreos.com/v1alpha1
 kind: CatalogSource metadata:
   name: psap-operator-index
   namespace: openshift-marketplace
 spec:   image: quay.io/openshift-psap-qe/sro-index:4.9
   sourceType: grpc
   #  secrets:
   #- olm-pri-pull-secret
   displayName: redhat-operators
   publisher: Openshift PSAP QE
   updateStrategy: registryPoll:
           interval: 30mEOF
INFO[0000] building the index                            bundles="[quay.io/openshift-psap-qe/special-resource-operator-bundle:4.9.0]"
INFO[0000] resolved name: quay.io/openshift-psap-qe/special-resource-operator-bundle:4.9.0 
INFO[0000] fetched                                       digest="sha256:8aa4f2ff991bb43207e04b8259fa8177fa7d73385575b507c681a021f04476a2"
INFO[0000] fetched                                       digest="sha256:7f9bc1afa9aaab7c31ac6bbc309098c03bd0e9279ee33ff94012ca22d79574e1"
INFO[0000] fetched                                       digest="sha256:6baf28cfd9c4a566c447ef7b221cb8e2eabdd02da2923af7a48fff0cc582ef3c"
INFO[0000] fetched                                       digest="sha256:11509029bd7188ea05f49059874208756b3d0da5e25204c8446722643046b846"
INFO[0000] fetched                                       digest="sha256:b0e98e3e3e00d8aa88500256895be0134f9e217a98527b26430b7699301ea52c"
INFO[0000] unpacking layer: {application/vnd.docker.image.rootfs.diff.tar.gzip sha256:11509029bd7188ea05f49059874208756b3d0da5e25204c8446722643046b846 14750 [] map[] <nil>} 
INFO[0000] unpacking layer: {application/vnd.docker.image.rootfs.diff.tar.gzip sha256:6baf28cfd9c4a566c447ef7b221cb8e2eabdd02da2923af7a48fff0cc582ef3c 411 [] map[] <nil>} 
INFO[0000] unpacking layer: {application/vnd.docker.image.rootfs.diff.tar.gzip sha256:7f9bc1afa9aaab7c31ac6bbc309098c03bd0e9279ee33ff94012ca22d79574e1 434 [] map[] <nil>} 
INFO[0000] Could not find optional dependencies file     dir=bundle_tmp123798822 file=bundle_tmp123798822/metadata load=annotations
INFO[0000] found csv, loading bundle                     dir=bundle_tmp123798822 file=bundle_tmp123798822/manifests load=bundle
INFO[0000] loading bundle file                           dir=bundle_tmp123798822/manifests file=openshift-special-resource-operator.clusterserviceversion.yaml load=bundle
INFO[0000] loading bundle file                           dir=bundle_tmp123798822/manifests file=special-resource-controller-manager-metrics-monitor_monitoring.coreos.com_v1_servicemonitor.yaml load=bundle
INFO[0000] loading bundle file                           dir=bundle_tmp123798822/manifests file=special-resource-controller-manager-metrics-service_v1_service.yaml load=bundle
INFO[0000] loading bundle file                           dir=bundle_tmp123798822/manifests file=special-resource-dependencies_v1_configmap.yaml load=bundle
INFO[0000] loading bundle file                           dir=bundle_tmp123798822/manifests file=special-resource-lifecycle_v1_configmap.yaml load=bundle
INFO[0000] loading bundle file                           dir=bundle_tmp123798822/manifests file=special-resource-metrics-reader_rbac.authorization.k8s.io_v1_clusterrole.yaml load=bundle
INFO[0000] loading bundle file                           dir=bundle_tmp123798822/manifests file=special-resource-prometheus-k8s_rbac.authorization.k8s.io_v1_role.yaml load=bundle
INFO[0000] loading bundle file                           dir=bundle_tmp123798822/manifests file=special-resource-prometheus-k8s_rbac.authorization.k8s.io_v1_rolebinding.yaml load=bundle
INFO[0000] loading bundle file                           dir=bundle_tmp123798822/manifests file=sro.openshift.io_specialresources.yaml load=bundle
INFO[0000] Generating dockerfile                         bundles="[quay.io/openshift-psap-qe/special-resource-operator-bundle:4.9.0]"
INFO[0000] writing dockerfile: index.Dockerfile974935764  bundles="[quay.io/openshift-psap-qe/special-resource-operator-bundle:4.9.0]"
INFO[0000] running podman build                          bundles="[quay.io/openshift-psap-qe/special-resource-operator-bundle:4.9.0]"
INFO[0000] [podman build --format docker -f index.Dockerfile974935764 -t quay.io/openshift-psap-qe/sro-index:4.9 .]  bundles="[quay.io/openshift-psap-qe/special-resource-operator-bundle:4.9.0]"
[mirroradmin@ec2-18-217-45-133 sro]$ podman push quay.io/openshift-psap-qe/sro-index:4.9
Getting image source signatures
Copying blob 0a4dc43c12db done  
Copying blob 1e3f5916e89b skipped: already exists  
Copying blob 4e7f383eb531 skipped: already exists  
Copying blob bc276c40b172 skipped: already exists  
Copying blob 69b6a9e7faa7 skipped: already exists  
Copying blob a98a386b6ec2 skipped: already exists  
Copying config 29d6f6e683 done  
Writing manifest to image destination
Storing signatures

oc create -f-<<EOF
>  apiVersion: operators.coreos.com/v1alpha1
>  kind: CatalogSource
>  metadata:
>    name: psap-operator-index
>    namespace: openshift-marketplace
>  spec:
>    image: quay.io/openshift-psap-qe/sro-index:4.9
>    sourceType: grpc
>    #  secrets:
>    #- "olm-pri-pull-secret"
>    displayName: Openshift QE Catalog
>    publisher: Openshift QE
>    updateStrategy:
>  registryPoll:
>            interval: 30m
> EOF

oc get packagemanifest -A |grep -i special
default                 openshift-special-resource-operator                  openshift-special-resource-operator   120m
openshift-marketplace   special-resource-operator                            Community Operators                   4h45m
openshift-marketplace   openshift-special-resource-operator                  Production Operators                  4h21m
openshift-marketplace   openshift-special-resource-operator                  Openshift QE Catalog                  9m37s


oc get clusterserviceversion openshift-special-resource-operator.v4.9.0  -n openshift-operators -o json |grep -i openshift-special-resource-operator.
            "operatorframework.io/properties": "{\"properties\":[{\"type\":\"olm.package\",\"value\":{\"packageName\":\"openshift-special-resource-operator\",\"version\":\"4.9.0\"}},{\"type\":\"olm.gvk\",\"value\":{\"group\":\"sro.openshift.io\",\"kind\":\"SpecialResource\",\"version\":\"v1beta1\"}},{\"type\":\"olm.gvk.required\",\"value\":{\"group\":\"nfd.openshift.io\",\"version\":\"v1\",\"kind\":\"NodeFeatureDiscovery\"}}]}",
        "name": "openshift-special-resource-operator.v4.9.0"

Expected:
PackageName Change to openshift-special-resource-operator
CSV Name is openshift-special-resource-operator.xxxxx

Comment 6 errata-xmlrpc 2021-10-18 17:52:30 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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), 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/RHSA-2021:3759


Note You need to log in before you can comment on or make changes to this bug.