]> git.apps.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:29:21 +0000 (09:29 +0200)
commite924d34e154388a0341e668b6e83e2f0f550ecf6
tree65ad895a61a783717dc8a126a87eebf5c92b22c9
parent843b67fd949f59e219eebb333eb6a51e86b22412
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
  reef ]
src/pybind/rbd/rbd.pyx
src/test/pybind/test_rbd.py