Bug 2063747 - When building a bundle, the push command fails because is passes a redundant "IMG=" on the the CLI
Summary: When building a bundle, the push command fails because is passes a redundant ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Special Resource Operator
Version: 4.10
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.11.0
Assignee: Pablo Acevedo
QA Contact: Udi Kalifon
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-14 10:22 UTC by Udi Kalifon
Modified: 2022-08-10 10:54 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 10:54:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift special-resource-operator pull 135 0 None Merged Fix make bundle-push target 2022-03-15 15:49:38 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:54:22 UTC

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


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