Project

General

Profile

Actions

Bug #18326

closed

rbd --pool=x rename y z does not work

Added by Марк Коренберг over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
kraken,jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rbd
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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)


Related issues 2 (0 open2 closed)

Copied to rbd - Backport #18777: kraken: rbd --pool=x rename y z does not workResolvedNathan CutlerActions
Copied to rbd - Backport #18778: jewel: rbd --pool=x rename y z does not workResolvedNathan CutlerActions
Actions #1

Updated by Loïc Dachary over 7 years ago

  • Target version deleted (v10.2.4)
Actions #2

Updated by Jason Dillaman over 7 years ago

  • Project changed from Ceph to rbd
  • Priority changed from Normal to Low
Actions #3

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 ?

Actions #4

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.

Actions #5

Updated by Марк Коренберг over 7 years ago

Yes, you understand me right. I just want to rename an image without moving to another pool.

Actions #6

Updated by Gaurav Garg about 7 years ago

  • Status changed from New to In Progress
  • Assignee set to Gaurav Garg
Actions #7

Updated by Gaurav Garg about 7 years ago

  • Status changed from In Progress to Fix Under Review
Actions #8

Updated by Jason Dillaman about 7 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to kraken,jewel
Actions #9

Updated by Nathan Cutler about 7 years ago

  • Copied to Backport #18777: kraken: rbd --pool=x rename y z does not work added
Actions #10

Updated by Nathan Cutler about 7 years ago

  • Copied to Backport #18778: jewel: rbd --pool=x rename y z does not work added
Actions #11

Updated by Nathan Cutler about 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF