Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928389 - sys-cluster/ceph-18.2.1-r1 ceph-volume cannot find it's python module
Summary: sys-cluster/ceph-18.2.1-r1 ceph-volume cannot find it's python module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-04-01 15:22 UTC by ev
Modified: 2024-04-02 07:09 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ev 2024-04-01 15:22:26 UTC
ceph-volume cannot start despite it's code being installed in /usr/lib/python3.11/site-packages/ceph_volume. 

It makes it makes this version of ceph unusable because It cannot manage, start or restart any OSDs.


Example error from the shell:

 ~ # ceph-volume
Traceback (most recent call last):
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 563, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration
 
During handling of the above exception, another exception occurred:
 
Traceback (most recent call last):
  File "/usr/sbin/ceph-volume", line 33, in <module>
    sys.exit(load_entry_point('ceph-volume==1.0.0', 'console_scripts', 'ceph-volume')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/sbin/ceph-volume", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 981, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 565, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for ceph-volume
Comment 1 ev 2024-04-01 16:41:45 UTC
This bug was caused by https://bugs.gentoo.org/924065 
In commit https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d23e75b2b7242c31b33bdc7b869edf599002262

I've reverted these changes in my local overlay and got ceph-volume working again. 

Please revert these changes in the main repo and do some basic testing before modifying ebuilds in the future.
Comment 2 Larry the Git Cow gentoo-dev 2024-04-01 17:55:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a37c82fd3188758ae0b68f7347176fbdcf099a9

commit 5a37c82fd3188758ae0b68f7347176fbdcf099a9
Author:     Patrick McLean <chutzpah@gentoo.org>
AuthorDate: 2024-04-01 17:54:43 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2024-04-01 17:55:11 +0000

    sys-cluster/ceph: Don't remove egg-info files (bug #928389)
    
    Closes: https://bugs.gentoo.org/928389
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 sys-cluster/ceph/{ceph-16.2.15.ebuild => ceph-16.2.15-r1.ebuild}  | 5 -----
 sys-cluster/ceph/{ceph-18.2.1-r1.ebuild => ceph-18.2.1-r2.ebuild} | 4 ----
 2 files changed, 9 deletions(-)