Trove Image Create Error

Clark Boylan cboylan at sapwetik.org
Tue Jan 26 22:03:07 UTC 2021


On Tue, Jan 26, 2021, at 5:28 AM, Ammad Syed wrote:
> 
> Hi,
> 
> I am creating a trove image with default parameters. 
> 
>  
> ./trovestack build-image ubuntu bionic true ubuntu
>   
> 
> I am having below error . Please advise.
> 
> 2021-01-26 13:19:24.905 | Installing collected packages: wheel, 
> setuptools, pip
> 2021-01-26 13:19:25.292 |   Attempting uninstall: pip
> 2021-01-26 13:19:25.293 |     Found existing installation: pip 9.0.1
> 2021-01-26 13:19:25.294 |     Uninstalling pip-9.0.1:
> 2021-01-26 13:19:25.309 |       Successfully uninstalled pip-9.0.1
> 2021-01-26 13:19:26.231 | Successfully installed pip-21.0 
> setuptools-52.0.0 wheel-0.36.2
> 2021-01-26 13:19:26.761 | + python2 /tmp/get-pip.py -U --force-reinstall
> 2021-01-26 13:19:27.367 | Traceback (most recent call last):
> 2021-01-26 13:19:27.367 |   File "/tmp/get-pip.py", line 24226, in 
> <module>
> 2021-01-26 13:19:27.371 |     main()
> 2021-01-26 13:19:27.371 |   File "/tmp/get-pip.py", line 199, in main
> 2021-01-26 13:19:27.372 |     bootstrap(tmpdir=tmpdir)
> 2021-01-26 13:19:27.372 |   File "/tmp/get-pip.py", line 82, in 
> bootstrap
> 2021-01-26 13:19:27.372 |     from pip._internal.cli.main import main 
> as pip_entry_point
> 2021-01-26 13:19:27.372 |   File 
> "/tmp/tmpxnphbN/pip.zip/pip/_internal/cli/main.py", line 60
> 2021-01-26 13:19:27.372 |     sys.stderr.write(f"ERROR: {exc}")
> 2021-01-26 13:19:27.372 |                                    ^
> 2021-01-26 13:19:27.372 | SyntaxError: invalid syntax
> 2021-01-26 13:19:27.396 | ++ 
> /usr/lib/python3/dist-packages/diskimage_builder/lib/img-functions:run_in_target:59 :   check_break after-error run_in_target bash
> 2021-01-26 13:19:27.409 | ++ 
> /usr/lib/python3/dist-packages/diskimage_builder/lib/common-functions:check_break:143 :   echo ''
> 2021-01-26 13:19:27.410 | ++ 
> /usr/lib/python3/dist-packages/diskimage_builder/lib/common-functions:check_break:143 :   egrep -e '(,|^)after-error(,|$)' -q
> 2021-01-26 13:19:27.428 | + 
> /usr/lib/python3/dist-packages/diskimage_builder/lib/img-functions:run_in_target:1 :   trap_cleanup
> 2021-01-26 13:19:27.439 | + 
> /usr/lib/python3/dist-packages/diskimage_builder/lib/img-functions:trap_cleanup:36 :   exitval=1
> 2021-01-26 13:19:27.447 | + 
> /usr/lib/python3/dist-packages/diskimage_builder/lib/img-functions:trap_cleanup:37 :   cleanup
> 2021-01-26 13:19:27.457 | + 
> /usr/lib/python3/dist-packages/diskimage_builder/lib/img-functions:cleanup:42    :   unmount_image
> 
> -- 
> Regards,
> 
> 
> Syed Ammad Ali

This issue is that get-pip.py has been updated to be python3 only. There is work going on in diskimage-builder to fix this here: https://review.opendev.org/c/openstack/diskimage-builder/+/772254. If trove is keeping up to date with diskimage-builder this will get fixed in the next release.

Clark



More information about the openstack-discuss mailing list