[Bug 2080208] [NEW] ceph-volume AttributeError EntryPoints

Peter Sabaini 2080208 at bugs.launchpad.net
Tue Sep 10 08:06:33 UTC 2024


Public bug reported:

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

```

** Affects: ceph (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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 package in Ubuntu:
  New

Bug description:
  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/ubuntu/+source/ceph/+bug/2080208/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list