Project

General

Profile

Actions

Support #22040

open

list_children will hung(or timeout) when pool was unreachable

Added by wb song over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Tags:
Reviewed:
Affected Versions:
Pull request ID:

Description


[root~ ]# ceph osd lspools
18 rbd,19 wl,27 lmy,29 dym,
[root~ ]# rbd children wl/im925@luo
rbd: listing children failed: (110) Connection timed out
2017-11-03 17:24:49.445958 7f93d38e9d40 -1 librbd::api::Image: list_children: error reading list of children from pool lmy
[root~ ]#

Since list_children will traverse every pool's metadata object of rbd_children and it will hung(or timeout) when pool was unreachable, this causes the entire cluster of children cannot be queried.

So, how about stored the child's metadata in parent-image (e.g child_<chid_id> just like snapshot stored in rbd_header.<image_id>) not only in pool's rbd_children?

In that way, we can queried children info not only from pool's rbd_children but also from parent's rbd_header.<image_id>. If this method is feasible, I will implement it.

Thanks.

No data to display

Actions

Also available in: Atom PDF