]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind/rbd: add ImageMemberOfGroup exception
authorIlya Dryomov <idryomov@gmail.com>
Mon, 21 Apr 2025 15:11:17 +0000 (17:11 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 25 Apr 2025 07:41:02 +0000 (09:41 +0200)
commit2c2c446c7b2f28057aab2db7458cb821ba825584
tree8c663280c2c8dc8c5ad21b8c9258f6d8cd175eb2
parent663054e73c833848e445341df4a1e1b3a7e8e17a
pybind/rbd: add ImageMemberOfGroup exception

EMLINK is returned by rbd_remove() if the image is a member of a group.
Add a dedicated exception similar to ImageBusy or ImageHasSnapshots and
a test for it.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 61075e344c18e57b7416072f66c2e335d4d89d75)

Conflicts:
src/test/pybind/test_rbd.py [ commits 68eea0eb814e
  ("src/tools/rbd: add group info command to output group id")
  and e5ccce14c4b0 ("rbd: add group snap info command") not in
  squid ]
src/pybind/rbd/rbd.pyx
src/test/pybind/test_rbd.py