Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2428617

Summary: Cephadm bootstrap failed with error "cannot import name 'soft_unicode' from 'markupsafe'"
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vinayak Papnoi <vpapnoi>
Component: BuildAssignee: Justin Caratzas <jcaratza>
Status: CLOSED UPSTREAM QA Contact: Vinayak Papnoi <vpapnoi>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 7.1CC: cephqe-warriors, jcaratza, kdeb
Target Milestone: ---Keywords: Automation, Regression
Target Release: 7.1z9   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python3-jinja2-3.0.3-2.el9cp.noarch Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-03-04 10:00:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vinayak Papnoi 2026-01-12 04:23:21 UTC
Description of problem:

Cluster bootstrap with cephadm failed with below mentioned error:

2026-01-11 10:45:09,530 - cephci - ceph:1630 - INFO - Execute cephadm --image quay.io/rhceph-ci/rhceph:v7.1-94ac038d76599a14e3b79955004e0bf99200bc7a bootstrap --mon-ip 10.0.195.122 on 10.0.195.122
2026-01-11 10:45:50,668 - cephci - ceph:1660 - INFO - Execution of cephadm --image quay.io/rhceph-ci/rhceph:v7.1-94ac038d76599a14e3b79955004e0bf99200bc7a bootstrap --mon-ip 10.0.195.122 on 10.0.195.122 took 41.138569 seconds
2026-01-11 10:45:50,669 - cephci - test_cephadm:188 - ERROR - cephadm --image quay.io/rhceph-ci/rhceph:v7.1-94ac038d76599a14e3b79955004e0bf99200bc7a bootstrap --mon-ip 10.0.195.122 returned RuntimeError: Failed command: /usr/bin/podman run --rm --ipc=host --stop-signal=SIGTERM --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=quay.io/rhceph-ci/rhceph:v7.1-94ac038d76599a14e3b79955004e0bf99200bc7a -e NODE_NAME=ceph-smoke-knr4w1-0ycn9y-node1-installer -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/9b117b94-eeda-11f0-a653-fa163eca016c:/var/log/ceph:z -v /tmp/ceph-tmpayvmpipf:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmpjk5bbu5a:/etc/ceph/ceph.conf:z quay.io/rhceph-ci/rhceph:v7.1-94ac038d76599a14e3b79955004e0bf99200bc7a mgr module enable cephadm: Error ENOENT: module 'cephadm' reports that it cannot run on the active manager daemon: cannot import name 'soft_unicode' from 'markupsafe' (/lib64/python3.9/site-packages/markupsafe/__init__.py) (pass --force to force enablement)

Traceback (most recent call last):
  File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/sbin/cephadm/__main__.py", line 11397, in <module>
  File "/usr/sbin/cephadm/__main__.py", line 11385, in main
  File "/usr/sbin/cephadm/__main__.py", line 6398, in _rollback
  File "/usr/sbin/cephadm/__main__.py", line 2638, in _default_image
  File "/usr/sbin/cephadm/__main__.py", line 6717, in command_bootstrap
  File "/usr/sbin/cephadm/__main__.py", line 6092, in enable_cephadm_mgr_module
  File "/usr/sbin/cephadm/__main__.py", line 6656, in cli
  File "/usr/sbin/cephadm/__main__.py", line 4904, in run
  File "/usr/sbin/cephadm/__main__.py", line 2278, in call_throws
RuntimeError: Failed command: /usr/bin/podman run --rm --ipc=host --stop-signal=SIGTERM --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=quay.io/rhceph-ci/rhceph:v7.1-94ac038d76599a14e3b79955004e0bf99200bc7a -e NODE_NAME=ceph-smoke-knr4w1-0ycn9y-node1-installer -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/9b117b94-eeda-11f0-a653-fa163eca016c:/var/log/ceph:z -v /tmp/ceph-tmpayvmpipf:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmpjk5bbu5a:/etc/ceph/ceph.conf:z quay.io/rhceph-ci/rhceph:v7.1-94ac038d76599a14e3b79955004e0bf99200bc7a mgr module enable cephadm: Error ENOENT: module 'cephadm' reports that it cannot run on the active manager daemon: cannot import name 'soft_unicode' from 'markupsafe' (/lib64/python3.9/site-packages/markupsafe/__init__.py) (pass --force to force enablement)

 and code 1 on 10.0.195.122



Version-Release number of selected component (if applicable):
18.2.1-371.el9cp

How reproducible:
1/1

Steps to Reproduce:
1. Bootstrap a cluster with above mentioned builds
2.
3.

Actual results:
Bootstrap fails

Expected results:
Bootstrap must be successful

Additional info:

Comment 8 Red Hat Bugzilla 2026-03-04 10:00:08 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.