Project

General

Profile

Bug #19128

rbd import needs to sanity check auto-generated image name

Added by peng zhang about 7 years ago. Updated almost 7 years ago.

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

0%

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

Description

I see a qa :
[root@lab8106 ~]# rbd import /bin/ls ls@snap
rbd: destination snapname specified for a command that doesn't use it

it limit the image to a name ls@snap,but when import with out the des image ,it went wrong

like this:

1、rename a local file name to a file with @
[root@lab8106 ~]# cp /bin/ls /tmp/ls@1
2、import the file
[root@lab8106 ~]# rbd import /tmp/ls@1
Importing image: 100% complete...done.
3、can ls,can not info,can not rm
[root@lab8106 ~]# rbd ls|grep ls@1
ls@1
[root@lab8106 ~]# rbd info ls@1
error setting snapshot context: (2) No such file or directory
[root@lab8106 ~]# rbd rm ls@1
rbd: snapname specified for a command that doesn't use it

so may limit import a image with only local name has a @

hope some one resolve it,thank you .

History

#1 Updated by Josh Durgin almost 7 years ago

  • Project changed from Ceph to rbd
  • Category deleted (librbd)

#2 Updated by Jason Dillaman almost 7 years ago

  • Subject changed from rbd import name not limit to rbd import needs to sanity check auto-generated image name
  • Priority changed from High to Low

#3 Updated by Mykola Golub almost 7 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Mykola Golub

#4 Updated by Jason Dillaman almost 7 years ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF