Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941069 - sys-cluster/ceph-19.2.0 fails to start bluestore-osd via ceph-volume
Summary: sys-cluster/ceph-19.2.0 fails to start bluestore-osd via ceph-volume
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-10-06 12:41 UTC by ev
Modified: 2024-10-14 00:52 UTC (History)
2 users (show)

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


Attachments
emerge --info ceph (emerge-info-ceph-19.2.0.txt,7.11 KB, text/plain)
2024-10-06 12:41 UTC, ev
Details
Patch fixing this issue. (ceph-19.2.0-fix-importlib.metadata-compat.patch,1.81 KB, patch)
2024-10-12 11:49 UTC, ev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ev 2024-10-06 12:41:21 UTC
Created attachment 904953 [details]
emerge --info ceph

I wanted to test right now masked 19.2.0 version of ceph ebuild.
Currently it cannot start bluestore ceph-volume OSD.

I've tested it on 2 ceph 18 clusters. Both have the same error.

Log with error

/etc/init.d/ceph-osd.1 start
 * Mounting Bluestore
exception caught by decorator
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/ceph_volume/decorators.py", line 59, in newfunc
    return f(*a, **kw)
           ^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/ceph_volume/main.py", line 118, in main
    self.enable_plugins()
  File "/usr/lib/python3.12/site-packages/ceph_volume/main.py", line 83, in enable_plugins
    plugins = _load_library_extensions()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/ceph_volume/main.py", line 188, in _load_library_extensions
    for ep in get_entry_points(group=group):
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-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'
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-06 12:47:48 UTC
Try https://github.com/ceph/ceph/pull/59739
Comment 2 ev 2024-10-12 11:48:32 UTC
I've applied https://github.com/ceph/ceph/pull/59739 to ceph-19.2.0.ebuild and it fixed my issues.

Link to patch directly from github: https://patch-diff.githubusercontent.com/raw/ceph/ceph/pull/59739.patch
Comment 3 ev 2024-10-12 11:49:45 UTC
Created attachment 905190 [details, diff]
Patch fixing this issue.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-14 00:52:54 UTC

The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5404f9963b19a5ceebe574bed1b1808ba9b9dba4

commit 5404f9963b19a5ceebe574bed1b1808ba9b9dba4
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-10-14 00:49:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-14 00:49:45 +0000

    sys-cluster/ceph: fix compat w/ newer importlib
    
    Closes: https://bugs.gentoo.org/920906
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-cluster/ceph/ceph-19.2.0-r1.ebuild             | 513 +++++++++++++++++++++
 sys-cluster/ceph/files/ceph-19.2.0-importlib.patch |  45 ++
 2 files changed, 558 insertions(+)