Bug #18326
closed
rbd --pool=x rename y z does not work
Added by Марк Коренберг over 7 years ago.
Updated about 7 years ago.
Description
Failed:
$ rbd --pool prod rename sva-ics_ sva-ics
rbd: mv/rename across pools not supported
source pool: prod dest pool: rbd
OK:
$ rbd rename prod/sva-ics_ prod/sva-ics
(Ubuntu 16.04's Ceph 10.2.3)
- Target version deleted (
v10.2.4)
- Project changed from Ceph to rbd
- Priority changed from Normal to Low
@Jason Borden
current implementation of rename/mv in ceph is like when source and destination pool are different then it will through an error saying rename across pools not supported.
Can we solve this by below approach:
if source and destination pool are same then we can do rename operation like currently we are doing (only meta data change) and if source and destination pool are not same then first we can copy image from source pool to destination pool then we can remove that image from source pool.
thoughts ?
Coping images between pools is a giant change -- and not what this ticket is talking about. The only thing that needs to be fixed here is that if the destination pool is not specified but the source pool is specified, default the destination pool to the source pool. Renaming between pools should continue to not be supported.
Yes, you understand me right. I just want to rename an image without moving to another pool.
- Status changed from New to In Progress
- Assignee set to Gaurav Garg
- Status changed from In Progress to Fix Under Review
- Status changed from Fix Under Review to Pending Backport
- Backport set to kraken,jewel
- Copied to Backport #18777: kraken: rbd --pool=x rename y z does not work added
- Copied to Backport #18778: jewel: rbd --pool=x rename y z does not work added
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF