Because of @CLIWriteCommand, the parameter name has to adhere to
the mon command API. Commit
dcb51b067a49 ("mgr/rbd_support: define
commands using CLICommand") accidentally changed image_id_spec to
image_spec, breaking external users such as go-ceph.
Fixes: https://tracker.ceph.com/issues/54057
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
@CLIWriteCommand('rbd task add trash remove')
@with_latest_osdmap
- def task_add_trash_remove(self, image_spec: str) -> Tuple[int, str, str]:
+ def task_add_trash_remove(self, image_id_spec: str) -> Tuple[int, str, str]:
"""
Remove an image from the trash asynchronously in the background
"""
with self.task.lock:
- return self.task.queue_trash_remove(image_spec)
+ return self.task.queue_trash_remove(image_id_spec)
@CLIWriteCommand('rbd task add migration execute')
@with_latest_osdmap