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

Bug 1781504

Summary: cam-operator pulls operator image by tag instead of by digest
Product: OpenShift Container Platform Reporter: Jason Shepherd <jshepherd>
Component: Migration ToolingAssignee: Jason Montleon <jmontleo>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2.zCC: dymurray
Target Milestone: ---   
Target Release: 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1781690 (view as bug list) Environment:
Last Closed: 2020-02-06 20:20:49 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:    
Bug Blocks: 1781690    

Description Jason Shepherd 2019-12-10 07:25:59 UTC
Description of problem:

cam-operator pulls 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/cam-operator -o=jsonpath='{.metadata.name}{"\t"}{range .status.channels[*]}{.currentCSV}{"\t"}{.currentCSVDesc.annotations.containerImage}{"\n"}{end}'

Actual results:

cam-operator	cam-operator.v1.0.0	registry.redhat.io/rhcam-1-0/openshift-migration-rhel7-operator:v1.0


Expected results:

cam-operator	cam-operator.v1.0.0	registry.redhat.io/rhcam-1-0/openshift-migration-rhel7-operator@sha256:<blah>



Additional info:

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

Comment 1 John Matthews 2019-12-10 12:02:48 UTC
Thank you for the BZ.

We've updated our operator to use shas about ~2-3 weeks ago but we haven't yet released a version with the work.
Planning to release this in our next z-stream targeting 12/19.

Comment 3 Xin jiang 2020-01-15 07:33:01 UTC
Verified.
  - containerID: cri-o://8fddef6f7dfc407f9eb71300ddee4dd9e90df3bc85bd4519b5416d6ee8cfdcd3
    image: image-registry.openshift-image-registry.svc:5000/rhcam-1-1/openshift-migration-rhel7-operator@sha256:7745ebf22e24d79bfd1f8d1c674b47ef785bb70c2361006454129fd871ce5f9c
    imageID: image-registry.openshift-image-registry.svc:5000/rhcam-1-1/openshift-migration-rhel7-operator@sha256:7745ebf22e24d79bfd1f8d1c674b47ef785bb70c2361006454129fd871ce5f9c

Comment 5 errata-xmlrpc 2020-02-06 20:20:49 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:0440