[Bug 2080208] Re: ceph-volume AttributeError EntryPoints

James Page 2080208 at bugs.launchpad.net
Fri Oct 4 13:33:59 UTC 2024


verified on noble/proposed:

root at evident-troll:~# apt-cache policy ceph-volume
ceph-volume:
  Installed: 19.2.0-0ubuntu0.24.04.1
  Candidate: 19.2.0-0ubuntu0.24.04.1
  Version table:
 *** 19.2.0-0ubuntu0.24.04.1 100
        100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     19.2.0~git20240301.4c76c50-0ubuntu6.1 500
        500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
     19.2.0~git20240301.4c76c50-0ubuntu6 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
root at evident-troll:~# ceph-volume

ceph-volume: Deploy Ceph OSDs using different device technologies like lvm or
physical disks.

Log Path: /var/log/ceph
Ceph Conf: Unable to load expected Ceph config at: /etc/ceph/ceph.conf

Available subcommands:

lvm                      Use LVM and LVM-based technologies to deploy OSDs
simple                   Manage already deployed OSDs with ceph-volume
raw                      Manage single-device OSDs on raw block devices
inventory                Get this nodes available disk inventory
activate                 Activate an OSD
drive-group              
    Deploy OSDs according to a drive groups specification.

    The DriveGroup specification must be passed in json.
    It can either be (preference in this order)
      - in a file, path passed as a positional argument
      - read from stdin, pass "-" as a positional argument
      - a json string passed via the --spec argument

    Either the path postional argument or --spec must be specifed.
    


See "ceph-volume --help" for full list of options.


** Tags removed: verification-needed verification-needed-noble
** Tags added: verification-done verification-done-noble

-- 
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/2080208

Title:
  ceph-volume AttributeError EntryPoints

Status in Ceph:
  Unknown
Status in ceph package in Ubuntu:
  Fix Released
Status in ceph source package in Noble:
  Fix Committed
Status in ceph source package in Oracular:
  Fix Released

Bug description:
  [Impact]
  ceph-volume tool is non-functional in proposed updates for Ubuntu 24.04 (19.2.0~rc2-0ubuntu0.24.04.1).

  
  [Test Case]
  sudo apt install ceph-volume
  sudo ceph-volume -h

  
  [Where things could go wrong]
  The upstream proposed fix has not yet been accepted and the patch does increase the code complexity in this area; fix has been tested in PPA prior to upload to reduce risk.

  
  [Original Bug Report]
  ceph-volume fails with an AttributeError, cf. below.

  I believe this might be due to importlib_metadata removing deprecated
  shims:

  https://importlib-
  metadata.readthedocs.io/en/latest/history.html#v5-0-0

  ```
  ubuntu at cunning-marmoset:~$ sudo ceph-volume -h
  exception caught by decorator
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/ceph_volume/decorators.py", line 59, in newfunc
      return f(*a, **kw)
             ^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/ceph_volume/main.py", line 118, in main
      self.enable_plugins()
    File "/usr/lib/python3/dist-packages/ceph_volume/main.py", line 83, in enable_plugins
      plugins = _load_library_extensions()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/ceph_volume/main.py", line 188, in _load_library_extensions
      for ep in get_entry_points(group=group):
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/ceph_volume/main.py", line 14, in get_entry_points
      return entry_points().get(group, [])  # type: ignore
             ^^^^^^^^^^^^^^^^^^
  AttributeError: 'EntryPoints' object has no attribute 'get'
  -->  AttributeError: 'EntryPoints' object has no attribute 'get'

  ubuntu at cunning-marmoset:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID:	Ubuntu
  Description:	Ubuntu Oracular Oriole (development branch)
  Release:	24.10
  Codename:	oracular

  ubuntu at cunning-marmoset:~$ apt-cache policy ceph-volume
  ceph-volume:
    Installed: 19.2.0~rc2-0ubuntu1
    Candidate: 19.2.0~rc2-0ubuntu1
    Version table:
   *** 19.2.0~rc2-0ubuntu1 500
          500 http://archive.ubuntu.com/ubuntu oracular/main amd64 Packages
          100 /var/lib/dpkg/status

  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ceph/+bug/2080208/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list