From 20c773413cb50c844283883b496965b162a3fef4 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 14 Jun 2021 00:55:26 -0400 Subject: [PATCH] Fix bug in snapshot rename --- daemon-common/ceph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon-common/ceph.py b/daemon-common/ceph.py index 87235754..00878dc1 100644 --- a/daemon-common/ceph.py +++ b/daemon-common/ceph.py @@ -738,7 +738,7 @@ def rename_snapshot(zkhandler, pool, volume, name, new_name): return False, 'ERROR: No snapshot with name "{}" is present for volume "{}" in pool "{}".'.format(name, volume, pool) # 1. Rename the snapshot - retcode, stdout, stderr = common.run_os_command('rbd snap rename {}/{}@{} {}'.format(pool, volume, name, new_name)) + retcode, stdout, stderr = common.run_os_command('rbd snap rename {pool}/{volume}@{name} {pool}/{volume}@{new_name}'.format(pool=pool, volume=volume, name=name, new_name=new_name)) if retcode: return False, 'ERROR: Failed to rename RBD snapshot "{}" to "{}" for volume "{}" in pool "{}": {}'.format(name, new_name, volume, pool, stderr)