Ok, I think I got it. It seems to come from here :
tracker.ceph.com/issues/6047

I'm trying to snapshot an image while I previously made a snapshot of my 
pool... whereas it just works fine when using a brand new pool. I'm using ceph 
v0.80.10 on Ubuntu 14.04. As I see, it has been patched since dumpling. Could 
it be a regression ?



De : ceph-users [mailto:[email protected]] De la part de NEVEU 
Stephane
Envoyé : jeudi 26 novembre 2015 15:49
À : [email protected]
Objet : [ceph-users] rbd_inst.create

Hi all,

I'm using python scripts to create rbd images like described here 
http://docs.ceph.com/docs/giant/rbd/librbdpy/
rbd_inst.create(ioctx, 'myimage', size, old_format=False, features=1) seems to 
create a layering image
rbd_inst.create(ioctx, 'myimage', size, old_format=False, features=2) seems to 
create a stripped image

Setting up "rbd default format =2" in ceph.conf and just using the following 
(without feature=x)
rbd_inst.create(ioctx, 'myimage', size) seems to create a layered + stripped 
image

If someone could point me to the documentation about those bitmasks (features), 
that would be great :) I cannot find it.

Moreover, when my images are created this way (using rbd_inst.create with 
python), no way to snapshot an image !
#rbd snap create rbd/myimage@snap1
.... -1 librbd: failed to create snap id: (22) Invalid argument

Same thing with img.create_snap(snap) in python, snapshots are not created.




[@@ THALES GROUP INTERNAL @@]

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to