[Bug 2064717] Re: ceph-volume needs "packaging" and "ceph" modules

Matthew Ruffell 2064717 at bugs.launchpad.net
Thu Apr 9 05:48:02 UTC 2026


Hi Ghadi,

Is there any reason why you just add to Depends instead of both Depends and
Build-Depends?

The previous uploads had the diffs:

diff -Nru ceph-18.2.4/debian/changelog ceph-18.2.4/debian/changelog
--- ceph-18.2.4/debian/changelog	2024-07-29 20:00:47.000000000 +0000
+++ ceph-18.2.4/debian/changelog	2024-09-02 09:41:58.000000000 +0000
@@ -1,3 +1,11 @@
+ceph (18.2.4-0ubuntu1~cloud1) jammy-bobcat; urgency=medium
+
+  * d/control: Add python3-{packaging,ceph-common} to (Build-)Depends
+    as these are undocumented/detected runtime dependencies in
+    ceph-volume (LP: #2064717).
+
+ -- James Page <james.page at ubuntu.com>  Mon, 02 Sep 2024 10:41:58 +0100
+
 ceph (18.2.4-0ubuntu1~cloud0) jammy-bobcat; urgency=medium
 
   * New upstream point release (LP: #2075358):
diff -Nru ceph-18.2.4/debian/control ceph-18.2.4/debian/control
--- ceph-18.2.4/debian/control	2024-07-29 20:00:47.000000000 +0000
+++ ceph-18.2.4/debian/control	2024-09-02 09:39:25.000000000 +0000
@@ -89,6 +89,7 @@
  protobuf-compiler,
  python3-cherrypy3,
  python3-dev,
+ python3-packaging,
  python3-pecan,
  python3-setuptools,
  python3-sphinx,
@@ -485,6 +486,8 @@
  e2fsprogs,
  lvm2,
  parted,
+ python3-ceph-common (= ${binary:Version}),
+ python3-packaging,
  util-linux,
  xfsprogs,
  ${misc:Depends},
  
diff -Nru ceph-19.2.0~git20240301.4c76c50/debian/changelog ceph-19.2.0~git20240301.4c76c50/debian/changelog
--- ceph-19.2.0~git20240301.4c76c50/debian/changelog	2024-04-19 02:47:00.000000000 +0000
+++ ceph-19.2.0~git20240301.4c76c50/debian/changelog	2024-05-18 10:40:36.000000000 +0000
@@ -1,3 +1,19 @@
+ceph (19.2.0~git20240301.4c76c50-0ubuntu6.1) noble; urgency=medium
+
+  [ Luciano Lo Giudice]
+  * d/control: Add python3-{packaging,ceph-common} to (Build-)Depends
+    as these are undocumented/detected runtime dependencies in
+    ceph-volume (LP: #2064717).
+
+  [ James Page ]
+  * d/cephadm.install: Install cephadmlib Python module which the
+    cephadm script uses (LP: #2063456).
+  * d/control: Update Vcs-* to point to Launchpad for Ubuntu packaging.
+  * d/p/mgr-distutils.patch: Directly use vendored distutils from
+    setuptools for Python that runs in the mgr daemon (LP: #2065867).
+
+ -- James Page <james.page at ubuntu.com>  Sat, 18 May 2024 12:40:36 +0200
+
 ceph (19.2.0~git20240301.4c76c50-0ubuntu6) noble; urgency=medium
 
   * Drop dependency on python3-distutils again (it appears the change from
diff -Nru ceph-19.2.0~git20240301.4c76c50/debian/control ceph-19.2.0~git20240301.4c76c50/debian/control
--- ceph-19.2.0~git20240301.4c76c50/debian/control	2024-04-19 02:47:00.000000000 +0000
+++ ceph-19.2.0~git20240301.4c76c50/debian/control	2024-05-18 10:40:36.000000000 +0000
@@ -8,8 +8,7 @@
  Gaudenz Steinlin <gaudenz at debian.org>,
  Bernd Zeimetz <bzed at debian.org>,
 Homepage: http://ceph.com/
-Vcs-Git: https://salsa.debian.org/ceph-team/ceph.git
-Vcs-Browser: https://salsa.debian.org/ceph-team/ceph
+Vcs-Git: https://git.launchpad.net/~ubuntu-server-dev/ubuntu/+source/ceph
 Build-Depends:
  architecture-is-64-bit,
  cmake,
@@ -93,6 +92,7 @@
  python3-dev,
  python3-jinja2,
  python3-markupsafe,
+ python3-packaging,
  python3-pecan,
  python3-pip,
  python3-setuptools,
@@ -490,6 +490,8 @@
  e2fsprogs,
  lvm2,
  parted,
+ python3-ceph-common (= ${binary:Version}),
+ python3-packaging,
  util-linux,
  xfsprogs,
  ${misc:Depends},
  
While yours just has:

diff -Nru ceph-17.2.9/debian/changelog ceph-17.2.9/debian/changelog
--- ceph-17.2.9/debian/changelog	2026-02-08 20:51:55.000000000 +0000
+++ ceph-17.2.9/debian/changelog	2026-02-25 16:22:00.000000000 +0000
@@ -1,3 +1,9 @@
+ceph (17.2.9-0ubuntu0.22.04.3) jammy; urgency=medium
+
+  * debian/control: Add missing python3 dependencies (LP: #2064717).
+
+ -- Ghadi Elie Rahme <ghadi.rahme at canonical.com>  Wed, 25 Feb 2026 16:22:00 +0000
+
 ceph (17.2.9-0ubuntu0.22.04.2) jammy-security; urgency=medium
 
   * SECURITY UPDATE: Improper certificate checking via Pybind
diff -Nru ceph-17.2.9/debian/control ceph-17.2.9/debian/control
--- ceph-17.2.9/debian/control	2024-02-08 11:33:49.000000000 +0000
+++ ceph-17.2.9/debian/control	2026-02-25 16:14:56.000000000 +0000
@@ -496,6 +496,8 @@
  e2fsprogs,
  lvm2,
  parted,
+ python3-ceph-common (= ${binary:Version}),
+ python3-packaging,
  util-linux,
  xfsprogs,
  ${misc:Depends},


I would prefer to be consistent with noble and bobcat. Can I add python3-packaging
to build depends?

I will also ask the Ceph Team for their +1 on the Jammy upload.

Thanks,
Matthew

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceph in Ubuntu.
https://bugs.launchpad.net/bugs/2064717

Title:
  ceph-volume needs "packaging" and "ceph" modules

Status in Ceph OSD Charm:
  Fix Released
Status in Ceph OSD Charm reef series:
  Invalid
Status in Ubuntu Cloud Archive:
  Fix Released
Status in Ubuntu Cloud Archive bobcat series:
  Fix Released
Status in ceph package in Ubuntu:
  Fix Released
Status in ceph source package in Jammy:
  New
Status in ceph source package in Noble:
  Fix Released
Status in ceph source package in Oracular:
  Fix Released

Bug description:
  [ Impact ]
  ceph-volume tool is not usable directly after install due to a missing dependencies.

  [ Test Plan ]
  sudo apt install ceph-volume
  ceph-volume --help

  [ Where problems could occur ]
  The missing packaging module is immediately obvious - the ceph dependency less so as ceph-volume is usually installed with ceph-osd (which already pulls this in).  Direct users of ceph-volume will get new depends pulled in.

  [ Original Bug Report ]
  The ceph-volume program needs python3-packaging but it looks like we're not installing it in jammy-caracal

  https://github.com/ceph/ceph/pull/54423/commits/0985e201342fa53c014a811156aed661b4b8f994
  https://openstack-ci-reports.ubuntu.com/artifacts/dcf/917920/4/check/jammy-caracal/dcf9973/index.html

  Traceback excerpt:

  2024-05-02 19:31:54.624912 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 INFO unit.ceph-osd/0.juju-log server.go:316 mon:27: osdize cmd: ['ceph-volume', 'lvm', 'create', '--osd-fsid', 'aef29aff-df24-4bb8-bfb3-bcd607761b2e', '--bluestore', '--data', 'ceph-aef29aff-df24-4bb8-bfb3-bcd607761b2e/osd-block-aef29aff-df24-4bb8-bfb3-bcd607761b2e']
  2024-05-02 19:31:54.624972 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60 Traceback (most recent call last):
  2024-05-02 19:31:54.624990 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "/usr/sbin/ceph-volume", line 33, in <module>
  2024-05-02 19:31:54.625002 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60     sys.exit(load_entry_point('ceph-volume==1.0.0', 'console_scripts', 'ceph-volume')())
  2024-05-02 19:31:54.625014 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "/usr/sbin/ceph-volume", line 25, in importlib_load_entry_point
  2024-05-02 19:31:54.625189 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60     return next(matches).load()
  2024-05-02 19:31:54.625210 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
  2024-05-02 19:31:54.625222 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60     module = import_module(match.group('module'))
  2024-05-02 19:31:54.625234 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
  2024-05-02 19:31:54.625247 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60     return _bootstrap._gcd_import(name[level:], package, level)
  2024-05-02 19:31:54.625259 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  2024-05-02 19:31:54.625541 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  2024-05-02 19:31:54.625598 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  2024-05-02 19:31:54.625611 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  2024-05-02 19:31:54.625622 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  2024-05-02 19:31:54.625633 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  2024-05-02 19:31:54.625975 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "/usr/lib/python3/dist-packages/ceph_volume/main.py", line 9, in <module>
  2024-05-02 19:31:54.626007 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60     from ceph_volume import log, devices, configuration, conf, exceptions, terminal, inventory, drive_group, activate
  2024-05-02 19:31:54.626057 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "/usr/lib/python3/dist-packages/ceph_volume/devices/__init__.py", line 1, in <module>
  2024-05-02 19:31:54.626072 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60     from . import lvm, simple, raw # noqa
  2024-05-02 19:31:54.626280 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "/usr/lib/python3/dist-packages/ceph_volume/devices/lvm/__init__.py", line 1, in <module>
  2024-05-02 19:31:54.626313 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60     from .main import LVM # noqa
  2024-05-02 19:31:54.626327 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "/usr/lib/python3/dist-packages/ceph_volume/devices/lvm/main.py", line 4, in <module>
  2024-05-02 19:31:54.626339 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60     from . import activate
  2024-05-02 19:31:54.626359 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "/usr/lib/python3/dist-packages/ceph_volume/devices/lvm/activate.py", line 9, in <module>
  2024-05-02 19:31:54.626371 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60     from ceph_volume.util import encryption as encryption_utils
  2024-05-02 19:31:54.626465 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60   File "/usr/lib/python3/dist-packages/ceph_volume/util/encryption.py", line 9, in <module>
  2024-05-02 19:31:54.626490 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60     from packaging import version
  2024-05-02 19:31:54.626502 | focal-medium | 2024-05-02 19:31:54 [ERROR] unit-ceph-osd-0.log: 2024-05-02 19:31:52 WARNING unit.ceph-osd/0.mon-relation-changed logger.go:60 ModuleNotFoundError: No module named 'packaging'

To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-ceph-osd/+bug/2064717/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list