Bug #18326
closedrbd --pool=x rename y z does not work
0%
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)
Updated by Jason Dillaman over 7 years ago
- Project changed from Ceph to rbd
- Priority changed from Normal to Low
Updated by Gaurav Garg over 7 years ago
@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 ?
Updated by Jason Dillaman over 7 years ago
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.
Updated by Марк Коренберг over 7 years ago
Yes, you understand me right. I just want to rename an image without moving to another pool.
Updated by Gaurav Garg about 7 years ago
- Status changed from New to In Progress
- Assignee set to Gaurav Garg
Updated by Gaurav Garg about 7 years ago
- Status changed from In Progress to Fix Under Review
Updated by Jason Dillaman about 7 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to kraken,jewel
Updated by Nathan Cutler about 7 years ago
- Copied to Backport #18777: kraken: rbd --pool=x rename y z does not work added
Updated by Nathan Cutler about 7 years ago
- Copied to Backport #18778: jewel: rbd --pool=x rename y z does not work added
Updated by Nathan Cutler about 7 years ago
- Status changed from Pending Backport to Resolved