Fix error renaming keys

This function was not implemented and thus failed; implements it.
This commit is contained in:
2020-03-30 21:16:39 -04:00
parent 09aeb33d13
commit 44efd66f2c
2 changed files with 40 additions and 1 deletions

View File

@ -965,7 +965,7 @@ def rename_volume(zk_conn, pool, name, new_name):
# 2. Rename the volume in Zookeeper
zkhandler.renamekey(zk_conn, {
'/ceph/volumes/{}/{}'.format(pool, name): '/ceph/volumes/{}/{}'.format(pool, new_name),
'/ceph/snapshots/{}/{}'.format(pool, name): '/ceph/snapshots/{}/{}'.format(pool, new_name),
'/ceph/snapshots/{}/{}'.format(pool, name): '/ceph/snapshots/{}/{}'.format(pool, new_name)
})
# 3. Get volume stats