Skip to content

reef: pybind/mgr/devicehealth: skip legacy objects that cannot be loaded - #56479

Merged
batrick merged 5 commits into
ceph:reeffrom
batrick:wip-65153-reef
Apr 2, 2024
Merged

batrick merged 5 commits into
ceph:reeffrom
batrick:wip-65153-reef

Conversation

@batrick

@batrick batrick commented Mar 26, 2024

Copy link
Copy Markdown
Member

batrick added 5 commits March 26, 2024 09:35
This flag prevents promotion of a standby manager to the active. It also drops
the current active.

Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit 2e2a3f1)
Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit 9ebcbdb)
Vanilla `mgr fail` will just fail the active.

Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit a066467)
Failure without fix looks like:

    2023-12-21T16:05:55.737+0000 7fbe585b0700  0 [devicehealth DEBUG root] loading object ABC_DEADB33F_FA
    2023-12-21T16:05:55.737+0000 7fbe585b0700 -1 log_channel(cluster) log [ERR] : Unhandled exception from module 'devicehealth' while running on mgr.x: [errno 2] RADOS object not found (Failed to operate read op for oid ABC_DEADB33F_FA)
    2023-12-21T16:05:55.737+0000 7fbe585b0700 -1 devicehealth.serve:
    2023-12-21T16:05:55.737+0000 7fbe585b0700 -1 Traceback (most recent call last):
    File "/home/pdonnell/ceph/src/pybind/mgr/devicehealth/module.py", line 394, in serve
        self._do_serve()
    File "/home/pdonnell/ceph/src/pybind/mgr/mgr_module.py", line 524, in check
        return func(self, *args, **kwargs)
    File "/home/pdonnell/ceph/src/pybind/mgr/devicehealth/module.py", line 354, in _do_serve
        finished_loading_legacy = self.check_legacy_pool()
    File "/home/pdonnell/ceph/src/pybind/mgr/devicehealth/module.py", line 326, in check_legacy_pool
        if self._load_legacy_object(ioctx, obj.key):
    File "/home/pdonnell/ceph/src/pybind/mgr/devicehealth/module.py", line 300, in _load_legacy_object
        ioctx.operate_read_op(op, oid)
    File "rados.pyx", line 3723, in rados.Ioctx.operate_read_op
    rados.ObjectNotFound: [errno 2] RADOS object not found (Failed to operate read op for oid ABC_DEADB33F_FA)

Credit to Greg Farnum for postulating the cause.

Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit aa30adb)
Log looks like after test:

    2023-12-21T16:09:28.804+0000 7fbe7fd86700  0 [devicehealth DEBUG root] loading object ABC_DEADB33F_FA
    2023-12-21T16:09:28.805+0000 7fbe7fd86700  0 [devicehealth DEBUG root] object rados.Object(ioctx=<rados.Ioctx object at 0x7fbeee0c4668>,key=ABC_DEADB33F_FA,nspace=--default--,locator=None) does not exist because it is deleted in HEAD
    2023-12-21T16:09:28.805+0000 7fbe7fd86700  0 [devicehealth DEBUG root] finished reading legacy pool, complete = True

Credit to Greg Farnum for postulating the cause.

Fixes: https://tracker.ceph.com/issues/63882
Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit 5e6fc0b)
@batrick
batrick requested a review from a team as a code owner March 26, 2024 13:35
@batrick batrick added this to the reef milestone Mar 26, 2024
@batrick batrick added the pybind label Mar 26, 2024
@batrick batrick modified the milestones: reef, v18.2.3 Mar 26, 2024
@ljflores

ljflores commented Apr 1, 2024

Copy link
Copy Markdown
Member

@yuriw

yuriw commented Apr 2, 2024

Copy link
Copy Markdown
Contributor

@batrick
batrick merged commit 9cad217 into ceph:reef Apr 2, 2024
@batrick
batrick deleted the wip-65153-reef branch April 2, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants