:command:`group snap rm` *group-snap-spec*
Remove a snapshot from a group.
-:command:`group snap rename` *group-snap-spec* *snap-spec*
+:command:`group snap rename` *group-snap-spec* *snap-name*
Rename group's snapshot.
:command:`image-meta get` *image-spec* *key*
:param image_ioctx: determines which RADOS pool the image belongs to.
:type ioctx: :class:`rados.Ioctx`
- :param name: the name of the image to remove
+ :param name: the name of the image to add
:type name: str
:raises: :class:`ObjectNotFound`
def remove_image(self, image_ioctx, image_name):
"""
- Remove an image to a group.
+ Remove an image from a group.
:param image_ioctx: determines which RADOS pool the image belongs to.
:type ioctx: :class:`rados.Ioctx`
ret = rbd_group_snap_rename(self._ioctx, self._name, _old_snap_name,
_new_snap_name)
if ret != 0:
- raise make_ex(ret, 'error removing group snapshot',
+ raise make_ex(ret, 'error renaming group snapshot',
group_errno_to_exception)
def list_snaps(self):
* ``name`` (str) - name of the image
- * ``pool`` (int) - name of the pool this image belongs to
+ * ``pool`` (int) - id of the pool this image belongs to
* ``state`` (int) - state of the image
"""
while True:
self.images = <rbd_group_image_info_t*>realloc_chk(self.images,
self.num_images *
- sizeof(rbd_group_image_info_t))
+ sizeof(rbd_group_image_info_t))
with nogil:
ret = rbd_group_image_list(group._ioctx, group._name,
self.images,