Feature #42618
rbd namespace support should support renaming existing namespaces
Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Tags:
Description
According to the rbd(8) man page , RBD namespaces can currently be created, listed and deleted. It would be useful to have a command to rename an existing namespace, e.g. rbd namespace rename <pool-name>/<namespace-name> <pool-name>/<new-namespace-name>
. Currently, one would have to delete and re-create the namespace (resulting in all images contained in there to be lost).
Related issues
History
#1 Updated by Lenz Grimmer over 4 years ago
- Related to Subtask #24410: [namespaces] management APIs and CLI commands added
#2 Updated by Lenz Grimmer over 4 years ago
- Description updated (diff)
#3 Updated by Jason Dillaman over 4 years ago
- Status changed from New to Rejected
The namespace affects data placement within the OSDs. You cannot, therefore, with O(1) complexity rename a namespace. You can, however, "rbd cp", "rbd import/export", "rbd clone", "rbd migration ..." across namespaces (since it requires a full image copy to move it to a new namespace).