Bug 1922235

Summary: [build-watch] e2e-aws-upi - e2e-aws-upi container setup failing because of Python code version mismatch
Product: OpenShift Container Platform Reporter: Kevin Pouget <kpouget>
Component: InstallerAssignee: Aditya Narayanaswamy <anarayan>
Installer sub component: openshift-installer QA Contact: Gaoyun Pei <gpei>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: high CC: aaleman, mstaeble, rravanel
Version: 4.6   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Pip version 21 does not support Python 2 installed, leading to an error resolving all the dependent packages required to setup the container. Pip version is now fixed to a version less than 21 to avoid this problem.
Story Points: ---
Clone Of: Environment:
[sig-sippy] infrastructure should work
Last Closed: 2021-07-27 22:37:34 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: 4.8.0
Embargoed:

Description Kevin Pouget 2021-01-29 13:52:26 UTC
test: e2e-aws-upi - e2e-aws-upi container setup is failing frequently in CI, see search results:
https://testgrid.k8s.io/redhat-openshift-ocp-release-4.6-informing#release-openshift-ocp-installer-e2e-aws-upi-4.6
https://prow.ci.openshift.org/view/gcs/origin-ci-test/logs/release-openshift-ocp-installer-e2e-aws-upi-4.6/1355145020251836416

because of a mix of Python 2 and 3 files:

> 21.0-py2.7.egg/pip/_internal/utils/unpacking.py", line 276
>     f'Cannot determine archive format of {location}'
>                                                    ^
> SyntaxError: invalid syntax
> 
>   File "/tmp/.local/lib/python2.7/site-packages/pip-21.0-py2.7.egg/pip/_internal/utils/wheel.py", line 60
>     p for p in wheel_zip.namelist() if p.startswith(f"{info_dir}/")
>                                                                  ^
> SyntaxError: invalid syntax
> 
>   File "/tmp/.local/lib/python2.7/site-packages/pip-21.0-py2.7.egg/pip/_internal/vcs/git.py", line 156
>     raise ValueError(f'unexpected show-ref line: {line!r}')
>                                                          ^
> SyntaxError: invalid syntax
> 
>   File "/tmp/.local/lib/python2.7/site-packages/pip-21.0-py2.7.egg/pip/_internal/vcs/versioncontrol.py", line 72
>     req = f'{repo_url}@{rev}#egg={egg_project_name}'

Comment 1 aaleman 2021-02-01 19:33:17 UTC
@keving Pouget: This is not a test infrastructure issue but a test issue, please contact the owner of the step

Comment 2 Matthew Staebler 2021-02-03 16:51:56 UTC
*** Bug 1924806 has been marked as a duplicate of this bug. ***

Comment 3 Matthew Staebler 2021-02-03 22:38:52 UTC
This has been fixed by https://github.com/openshift/release/pull/15226.

In the rehearsal for that PR, the test made it past the python issue.

This bug is only relevant to CI, so I am moving this BZ to Verified.

Comment 6 errata-xmlrpc 2021-07-27 22:37: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 (Moderate: OpenShift Container Platform 4.8.2 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-2021:2438