Bug 1781502

Summary: Local Storage Operator pulls the operator image by tag instead of by digest
Product: OpenShift Container Platform Reporter: Jason Shepherd <jshepherd>
Component: StorageAssignee: Christian Huffman <chuffman>
Status: CLOSED ERRATA QA Contact: Qin Ping <piqin>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.zCC: aos-bugs, bbennett, jsafrane
Target Milestone: ---   
Target Release: 4.3.z   
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-04-30 01:28:07 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:
Bug Depends On: 1817826    
Bug Blocks:    

Description Jason Shepherd 2019-12-10 07:21:31 UTC
Description of problem:

Local Storage Operator pulls the operator image by tag instead of by digest


Version-Release number of selected component (if applicable):

$ oc version
Client Version: openshift-clients-4.2.2-201910250432-4-g4ac90784
Server Version: 4.2.10
Kubernetes Version: v1.14.6+17b1cc6

How reproducible:

$ oc get packagemanifest/local-storage-operator -o=jsonpath='{.metadata.name}{"\t"}{range .status.channels[*]}{.currentCSV}{"\t"}{.currentCSVDesc.annotations.containerImage}{"\n"}{end}'

Actual results:

local-storage-operator	local-storage-operator.4.2.9-201911261133	quay.io/openshift/origin-local-storage-operator:4.2.0


Expected results:

local-storage-operator	local-storage-operator.4.2.9-201911261133	quay.io/openshift/origin-local-storage-operator@sha256:<blah>


Additional info:

http://post-office.corp.redhat.com/archives/openshift-sme/2019-October/msg01602.html

Comment 5 Ben Bennett 2020-04-01 14:11:51 UTC
Setting the target to 4.5.  We will make backport decisions once the bug is understood.

Comment 11 Qin Ping 2020-04-21 07:29:28 UTC
Verified with: local-storage-operator.4.3.14-202004200457

oc get packagemanifest/local-storage-operator -oyaml

...
  - currentCSV: local-storage-operator.4.3.14-202004200457
    currentCSVDesc:
      annotations:
        alm-examples: |-
          [
            {
              "apiVersion": "local.storage.openshift.io/v1",
              "kind": "LocalVolume",
              "metadata": {
                "name": "example"
              },
              "spec": {
                "storageClassDevices": [
                  {
                    "devicePaths": [
                        "/dev/vde",
                        "/dev/vdf"
                    ],
                    "fsType": "ext4",
                    "storageClassName": "foobar",
                    "volumeMode": "Filesystem"
                  }
                ]
              }
            }
          ]
        capabilities: Full Lifecycle
        categories: Storage
        containerImage: quay.io/openshift-qe-optional-operators/ose-local-storage-operator@sha256:acfc2a75ea85a43dd13e03b4152b26fcbca98d5dd2c024ed7c9aa70edd3d9ba2
        createdAt: "2019-08-14T00:00:00Z"
        description: Configure and use local storage volumes in kubernetes and Openshift
        olm.skipRange: '>=4.2.0 <4.3.0'
        repository: https://github.com/openshift/local-storage-operator
        support: Red Hat
      apiservicedefinitions: {}
      customresourcedefinitions:
        owned:
        - description: Manage local storage volumes for OpenShift
          displayName: Local Volume operator
          kind: LocalVolume
          name: localvolumes.local.storage.openshift.io
          version: v1
      description: Local Storage Operator
      displayName: Local Storage
      installModes:
      - supported: true
        type: OwnNamespace
      - supported: true
        type: SingleNamespace
      - supported: false
        type: MultiNamespace
      - supported: true
        type: AllNamespaces
      minKubeVersion: 1.14.0
      provider:
        name: Red Hat
      relatedImages:
      - quay.io/openshift-qe-optional-operators/ose-local-storage-operator@sha256:acfc2a75ea85a43dd13e03b4152b26fcbca98d5dd2c024ed7c9aa70edd3d9ba2
      - quay.io/openshift-qe-optional-operators/ose-local-storage-static-provisioner@sha256:f99129f2186de856a2e2a117ffcb660b136541df756cc293f91fc67a86885646
      - quay.io/openshift-qe-optional-operators/ose-local-storage-diskmaker@sha256:590bf097c61297afea2c28c01941a44aaa91a489c40c948703f9d71b23b89b8a
      version: 4.3.14-202004200457
    name: "4.3"
...

Comment 13 errata-xmlrpc 2020-04-30 01:28:07 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/RHBA-2020:1529