'#!/usr/bin/env python' does not work on Ubuntu Focal (e.g. in 55-heat-config)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Expired
|
High
|
Unassigned |
Bug Description
Description
===========
On Ubuntu Focal there is no package which provides 'python'. os-refresh-config uses the construct '#!/usr/bin/env python' which fails - because python cannot be found.
Steps to reproduce
==================
Boot Ubuntu Focal with os-collect-config installed.
Expected result
===============
A valid python interpreter is found and the scripts are executed.
Actual result
=============
An error message is displayed - os-collect-config cannot run scripts which need 'python'.
Environment
===========
Ubuntu Focal VM running inside a Heat stack created with OpenStack diskimage-builder running in OpenStack Train installed with OpenStack Ansible.
Logs & Configs
==============
Mar 01 08:17:51 glr01-gitlab-
Mar 01 08:17:51 glr01-gitlab-
Mar 01 08:17:51 glr01-gitlab-
Mar 01 08:17:51 glr01-gitlab-
Changed in tripleo: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → ussuri-3 |
tags: | added: alert |
Changed in tripleo: | |
milestone: | ussuri-3 → ussuri-rc3 |
Changed in tripleo: | |
milestone: | ussuri-rc3 → victoria-1 |
Changed in tripleo: | |
milestone: | victoria-1 → victoria-3 |
Changed in tripleo: | |
milestone: | victoria-3 → wallaby-1 |
Changed in tripleo: | |
milestone: | wallaby-1 → wallaby-2 |
Changed in tripleo: | |
milestone: | wallaby-2 → wallaby-3 |
Changed in tripleo: | |
milestone: | wallaby-3 → wallaby-rc1 |
Changed in tripleo: | |
milestone: | wallaby-rc1 → xena-1 |
This looks like a packaging issue. The source code does not hard code `#!/usr/bin/env python`. See: http:// paste.openstack .org/show/ 790205/ . We need to find a way for it to use python3 instead.