Bug 2052840 - IMAGE_BUILDER=docker make test-e2e-operator-ocp runs with podman instead of docker
Summary: IMAGE_BUILDER=docker make test-e2e-operator-ocp runs with podman instead of d...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.11.0
Assignee: Christoph Stäbler
QA Contact: Aleksandra Malykhin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-10 06:55 UTC by Aleksandra Malykhin
Modified: 2022-08-10 10:49 UTC (History)
1 user (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift kubernetes-nmstate pull 255 0 None open Do not ignore parameters for ocp tests 2022-02-10 06:57:51 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:49:02 UTC

Description Aleksandra Malykhin 2022-02-10 06:55:56 UTC
Description of problem:


Version-Release number of selected component (if applicable):
kubernetes-nmstate 4.10.0-202201310820
Cluster version is 4.10.0-0.nightly-2022-02-02-000921


How reproducible:
100%

Steps to Reproduce:

Req:
install  go >= 1.17 
install  docker

You need to run the tests from the kubernetes-nmstate folder. As the test setup will build and push the operator image, you must be able to pull & push from your registry and the repository where the operator is pushed to must be readable from your cluster (-> easiest is to make the repository public)

You can use this command to create the repos 'IMAGE_BUILDER=<podman/docker> IMAGE_REPO=<your repo user> make push' and change it permissions manually if you have problems

Steps to reproduce:
git clone https://github.com/openshift/kubernetes-nmstate
cd kubernetes-nmstate/
docker login -u="..." -p="..." <your image repo>
KUBEVIRT_PROVIDER=external KUBECONFIG=<path to kubeconfig> DEV_IMAGE_REGISTRY=<your image repo> IMAGE_REPO=<your repo user> IMAGE_BUILDER=docker make test-e2e-operator-ocp


Actual results:
The error
+ podman manifest rm quay.io/amalykhi/kubernetes-nmstate-handler:latest
hack/build-push-container.podman.sh: line 18: podman: command not found
+ true
+ podman manifest create quay.io/amalykhi/kubernetes-nmstate-handler:latest
hack/build-push-container.podman.sh: line 19: podman: command not found
make[2]: *** [Makefile:148: push-handler] Error 127
make[2]: Leaving directory '/home/kni/kubernetes-nmstate'

Expected Result:
Ran 4 of 4 Specs in 174.214 seconds
SUCCESS! -- 4 Passed | 0 Failed | 0 Pending | 0 Skipped
PASS

Comment 2 Aleksandra Malykhin 2022-02-10 09:59:05 UTC
Verified
kubernetes-nmstate 4.10.0-202201310820
Cluster version is 4.10.0-0.nightly-2022-02-02-000921

The steps to reproduse see in the description.


[kni@provisionhost-0-0 kubernetes-nmstate]$ KUBEVIRT_PROVIDER=external KUBECONFIG=<path to kubeconfig> DEV_IMAGE_REGISTRY=<your image repo> IMAGE_REPO=<your repo user> IMAGE_BUILDER=docker make test-e2e-operator-ocp

Result

Ran 4 of 4 Specs in 156.036 seconds
SUCCESS! -- 4 Passed | 0 Failed | 0 Pending | 0 Skipped
PASS

Comment 4 errata-xmlrpc 2022-08-10 10:48:34 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.