]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind/rbd: add Python bindings for mirror group control
authorImran Imtiaz <imran.imtiaz@uk.ibm.com>
Fri, 13 Feb 2026 11:06:00 +0000 (11:06 +0000)
committerImran Imtiaz <imran.imtiaz@uk.ibm.com>
Fri, 13 Feb 2026 11:06:00 +0000 (11:06 +0000)
commit27606568881cc107dfafc63d3902a17d1fc54a4c
treeb5d8d628bccaf32d73f399c4e5250bb29a20e530
parentf2d6455e0000bd56af4ca7d074952c18f9290daa
pybind/rbd: add Python bindings for mirror group control

Add methods to the rbd.Group class for mirror group operations:
- mirror_group_enable(mode) / mirror_group_disable(force)
- mirror_group_promote(force) / mirror_group_demote()
- mirror_group_resync()
- mirror_group_get_global_status()
- mirror_group_get_instance_id()

Also adds the required Cython declarations in c_rbd.pxd for
rbd_mirror_group_status_state_t, rbd_mirror_group_site_status_t,
and rbd_mirror_group_global_status_t structs.

Fixes: https://tracker.ceph.com/issues/74707
Signed-off-by: Imran Imtiaz <imran.imtiaz@uk.ibm.com>
src/include/rbd/librbd.h
src/librbd/librbd.cc
src/pybind/rbd/c_rbd.pxd
src/pybind/rbd/mock_rbd.pxi
src/pybind/rbd/rbd.pyx