Building container images with python 2.7 in kolla failed due to get_pip macro

Bug #1913048 reported by Alexey Kashavkin
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Critical
Unassigned
Stein
In Progress
Critical
Mark Goddard
Train
Fix Committed
Critical
Unassigned

Bug Description

When I try to build image with Python 2.7 I got error:

RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py && rm get-pip.py
 ---> Running in 9fc6f53e4185
curl (https://bootstrap.pypa.io/get-pip.py): response: 200, time: 0.374, size: 1928477
Traceback (most recent call last):
  File "get-pip.py", line 24226, in <module>

    main()
  File "get-pip.py", line 199, in main
    bootstrap(tmpdir=tmpdir)
  File "get-pip.py", line 82, in bootstrap

    from pip._internal.cli.main import main as pip_entry_point
  File "/tmp/tmp4rplra/pip.zip/pip/_internal/cli/main.py", line 60
    sys.stderr.write(f"ERROR: {exc}")

                  ^

SyntaxError:
invalid syntax

On January 23rd, the get_pip.py script was modified and now doesn't work well with Python 2.7. I used https://bootstrap.pypa.io/2.7/get-pip.py as a solution, but I think it needs to be correctly added to macros.

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

Yes, we already have a fix in place: https://review.opendev.org/c/openstack/kolla/+/758057

Changed in kolla:
status: New → Fix Committed
importance: Undecided → Critical
Mark Goddard (mgoddard)
Changed in kolla:
importance: Critical → Undecided
importance: Undecided → Critical
Changed in kolla:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.