Bug 1915871

Summary: operator-sdk version in new downstream image should be v1.2.0-ocp not v4.7.0
Product: OpenShift Container Platform Reporter: Jesus M. Rodriguez <jesusr>
Component: Operator SDKAssignee: Jesus M. Rodriguez <jesusr>
Status: CLOSED ERRATA QA Contact: Fan Jia <jfan>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.7CC: aos-bugs
Target Milestone: ---Keywords: UpcomingSprint
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
No doc update because this is a fix for feature that has yet to be released.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:52:44 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 Jesus M. Rodriguez 2021-01-13 15:42:55 UTC
The new operator-sdk image downstream is building the binary with the OCP version tag instead of the version that the SDK binary is built from. 

$ docker run -it --entrypoint=/bin/sh --user 1000:0 registry.build01.ci.openshift.org/ci-op-6qx8ss8d/stable:operator-sdk
sh-4.4$ operator-sdk version
operator-sdk version: "7ead15f5-dirty", commit: "7ead15f5713d34654270b7c9fb64ecedcd176d8e", kubernetes version: "v1.19.4", go version: "go1.15.5", GOOS: "linux", GOARCH: "amd64"

It should be something like this:

operator-sdk version "v1.2.0-ocp", commit: "7ead15f5713d34654270b7c9fb64ecedcd176d8e", ...

Comment 1 Jesus M. Rodriguez 2021-01-13 15:45:31 UTC
Fixed by PR https://github.com/openshift/ocp-release-operator-sdk/pull/88

[jesusr@transam ocp-release-operator-sdk{fix-dockerfile-location}]$ docker run -it --entrypoint=/bin/sh --user 1000:0 registry.build01.ci.openshift.org/ci-op-vyrnkhfv/stable:operator-sdk
sh-4.4$ operator-sdk version
operator-sdk version: "v1.2.0-ocp", commit: "becd14ac2f95e9bf7641687fd947ad3a4df1f658", kubernetes version: "v1.18.8", go version: "go1.15.5", GOOS: "linux", GOARCH: "amd64"


This will make it easier to know when a user is using a downstream release of SDK and which upstream release it aligns with.

Comment 3 Fan Jia 2021-01-20 09:22:39 UTC
The latest image openshift-enterprise-operator-sdk-container-v4.7.0-202101190702.p0 doesn't have the fix PR. Will test when the latest image ok.

Comment 8 errata-xmlrpc 2021-02-24 15:52:44 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.7.0 security, bug fix, and enhancement 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-2020:5633