Bug #19128
closedrbd import needs to sanity check auto-generated image name
0%
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 .
Updated by Josh Durgin about 7 years ago
- Project changed from Ceph to rbd
- Category deleted (
librbd)
Updated by Jason Dillaman about 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
Updated by Mykola Golub about 7 years ago
- Status changed from New to Fix Under Review
- Assignee set to Mykola Golub
Updated by Jason Dillaman about 7 years ago
- Status changed from Fix Under Review to Resolved