'#!/usr/bin/env python' does not work on Ubuntu Focal (e.g. in 55-heat-config)

Bug #1865329 reported by Andreas Florath
10
This bug affects 2 people
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-runner-3lo4swudclmf os-collect-config[2582]: dib-run-parts Sun Mar 1 08:17:51 UTC 2020 Running /usr/libexec/os-refresh-config/configure.d/55-heat-config
Mar 01 08:17:51 glr01-gitlab-runner-3lo4swudclmf os-collect-config[2592]: /usr/bin/env: ‘python’: No such file or directory
Mar 01 08:17:51 glr01-gitlab-runner-3lo4swudclmf os-collect-config[2550]: [2020-03-01 08:17:51,868] (os-refresh-config) [ERROR] during configure phase. [Command '['dib-run-parts', '/usr/libexec/os-refresh-config/configure.d']' returned non-zero exit status 127]
Mar 01 08:17:51 glr01-gitlab-runner-3lo4swudclmf os-collect-config[2550]: [2020-03-01 08:17:51,869] (os-refresh-config) [ERROR] Aborting...

Tags: alert
wes hayutin (weshayutin)
Changed in tripleo:
status: New → Triaged
importance: Undecided → High
milestone: none → ussuri-3
Revision history for this message
Luke Short (ekultails) wrote :

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.

wes hayutin (weshayutin)
tags: added: alert
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-3 → ussuri-rc3
Revision history for this message
Ian (superian) wrote :

Still affects Ubuntu MATE 20.04 Focal beta, e.g.

$ youtube-dl --help
/usr/bin/env: ‘python’: No such file or directory

Given how many packages use Python, this does seem to be serious.

wes hayutin (weshayutin)
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
Revision history for this message
Marios Andreou (marios-b) wrote :

This is an automated action. Bug status has been set to 'Incomplete' and target milestone has been removed due to inactivity. If you disagree please re-set these values and reach out to us on freenode #tripleo

Changed in tripleo:
milestone: xena-1 → none
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tripleo because there has been no activity for 60 days.]

Changed in tripleo:
status: Incomplete → Expired
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.