Bug 2063747

Summary: When building a bundle, the push command fails because is passes a redundant "IMG=" on the the CLI
Product: OpenShift Container Platform Reporter: Udi Kalifon <ukalifon>
Component: Special Resource OperatorAssignee: Pablo Acevedo <pacevedo>
Status: CLOSED ERRATA QA Contact: Udi Kalifon <ukalifon>
Severity: high Docs Contact:
Priority: high    
Version: 4.10CC: bthurber
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 10:54:04 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 Udi Kalifon 2022-03-14 10:22:13 UTC
Description of problem:
I built a bundle and failed on the last make target:

.PHONY: bundle-push
bundle-push: ## Push the bundle image.
        $(BUNDLE_CONTAINER_COMMAND) push IMG=$(BUNDLE_IMG)

You get this weird error:

docker push IMG=quay.io/ukalifon/special-resource-operator-bundle:v0.0.1
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Error: invalid reference format
make: *** [Makefile:199: bundle-push] Error 125

To fix it, just remove the IMG= from the push command.


How reproducible:
100%


Steps to Reproduce:
1. git clone https://github.com/openshift/special-resource-operator
2. cd special-resource-operator
3. podman login -u <quay_user> quay.io
4. IMAGE_TAG_BASE=quay.io/<quay_user>/special-resource-operator IMG=quay.io/<quay_user>/special-resource-operator make local-image-build local-image-push bundle bundle-build bundle-push


Actual results:
The last make target tries to run "podman push IMG=..." and fails because you don't need to pass "IMG=..."


Expected results:
Make should run without errors

Comment 2 Udi Kalifon 2022-03-18 16:48:34 UTC
Verified on Mar. 18th with the latest version from git.

Comment 5 errata-xmlrpc 2022-08-10 10:54:04 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 (Important: OpenShift Container Platform 4.11.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-2022:5069