Project

General

Profile

Bug #19128

rbd import needs to sanity check auto-generated image name

Added by peng zhang 6 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Low
Assignee:
Target version:
Start date:
03/02/2017
Due date:
% Done:

0%

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

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 4 months ago

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

#2 Updated by Jason Dillaman 4 months 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 4 months ago

  • Status changed from New to Need Review
  • Assignee set to Mykola Golub

#4 Updated by Jason Dillaman 4 months ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF