Project

General

Profile

Actions

Bug #23055

closed

Ceph contains a number of scripts that will only run if Python 2 is present

Added by Nathan Cutler about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Ceph ships with a number of Python scripts that start with the following line:

#!/usr/bin/env python

On most if not all current systems (unverified assumption), "python" is a symlink to "python2".

On more recent openSUSE and SLES systems, at least, there is a "python3", but no "python2" or even "python". As a result, all of these scripts fail.

Since Python 2 is being slowly and inexorably deprecated, and Python 3 is already available for all supported distros, let us change these shebangs to

#!/usr/bin/env python3

and fix any breakage that ensues.

Actions

Also available in: Atom PDF