Project

General

Profile

Bug #18326

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

Added by Марк Коренберг 10 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Low
Assignee:
Target version:
-
Start date:
12/22/2016
Due date:
% Done:

0%

Source:
Tags:
Backport:
kraken,jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rbd
Release:
jewel
Needs Doc:
No

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

Copied to rbd - Backport #18777: kraken: rbd --pool=x rename y z does not work Resolved
Copied to rbd - Backport #18778: jewel: rbd --pool=x rename y z does not work Resolved

History

#1 Updated by Loic Dachary 10 months ago

  • Target version deleted (v10.2.4)

#2 Updated by Jason Dillaman 10 months ago

  • Project changed from Ceph to rbd
  • Priority changed from Normal to Low

#3 Updated by Gaurav Garg 9 months ago

@jason
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 ?

#4 Updated by Jason Dillaman 9 months 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.

#5 Updated by Марк Коренберг 9 months ago

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

#6 Updated by Gaurav Garg 9 months ago

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

#7 Updated by Gaurav Garg 9 months ago

  • Status changed from In Progress to Need Review

#8 Updated by Jason Dillaman 9 months ago

  • Status changed from Need Review to Pending Backport
  • Backport set to kraken,jewel

#9 Updated by Nathan Cutler 9 months ago

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

#10 Updated by Nathan Cutler 9 months ago

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

#11 Updated by Nathan Cutler 6 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF