Project

General

Profile

Actions

Bug #77340

closed
SB SB

cephadm binary extracted from Rocky 10 image fails on CentOS Stream 9 due to unsupported Python -P shebang option

Bug #77340: cephadm binary extracted from Rocky 10 image fails on CentOS Stream 9 due to unsupported Python -P shebang option

Added by Shweta Bhosale 6 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Fixed In:
v21.3.0-78-g84ac1de643
Released In:
Upkeep Timestamp:
2026-08-27T18:34:44+00:00

Description

When using a cephadm binary extracted from a Rocky Linux 10-based container image on a CentOS Stream 9 host, cephadm fails to execute because the shebang contains Python flags that are not supported by the host's default Python version.

The cephadm binary starts with:

#! /usr/bin/python3 -sP

CentOS Stream 9 ships with Python 3.9 by default:

[root@trial016 ~]# cat /etc/redhat-release
CentOS Stream release 9

[root@trial016 ~]# python -V
Python 3.9.25

The -P option was introduced in newer Python releases and is not recognized by Python 3.9. As a result, executing cephadm directly through the shebang fails:

[root@trial016 ~]# /var/lib/ceph/<fsid>/cephadm.<hash> check-host

Unknown option: -P
usage: /usr/bin/python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.


Related issues 1 (0 open — 1 closed)

Copied to Ceph - Backport #77390: umbrella: cephadm binary extracted from Rocky 10 image fails on CentOS Stream 9 due to unsupported Python -P shebang optionResolvedShweta Bhosale

Actions

SB Updated by Shweta Bhosale 6 months ago Actions #1

  • Backport set to umbrella

SB Updated by Shweta Bhosale 6 months ago Actions #2

  • Pull request ID set to 69421

KC Updated by Kefu Chai 6 months ago Actions #3

  • Status changed from In Progress to Fix Under Review

UB Updated by Upkeep Bot 6 months ago Actions #4

  • Status changed from Fix Under Review to Pending Backport
  • Merge Commit set to 84ac1de6438cf1de3eabf19206b0bef5ef6f758d
  • Fixed In set to v21.3.0-78-g84ac1de643
  • Upkeep Timestamp set to 2026-06-13T01:15:28+00:00

UB Updated by Upkeep Bot 6 months ago Actions #5

  • Copied to Backport #77390: umbrella: cephadm binary extracted from Rocky 10 image fails on CentOS Stream 9 due to unsupported Python -P shebang option added

UB Updated by Upkeep Bot 6 months ago Actions #6

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #7

  • Status changed from Pending Backport to Resolved
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-06-13T01:15:28+00:00 to 2026-08-27T18:34:44+00:00
Actions

Also available in: PDF Atom