Hello Jason, On Mon, Apr 20, 2015 at 01:48:14PM -0400, Jason Dillaman wrote: > Can you please run 'rbd info' on template-win2k8-20150420 and > template-win2k8-20150420@snap? I just want to verify which RBD features are > currently enabled on your images. Have you overridden the value of > rbd_default_features in your ceph.conf? Did you use the new rbd CLI option > '--image-features' when creating the image?
sure, now I can see the difference:
this is image created using rbd create ...
[root@vfnphav1a python-rbd]# rbd info ssd2r/template-win2k8-20150420
rbd image 'template-win2k8-20150420':
size 40960 MB in 10240 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.abc32ae8944a
format: 2
features: layering
flags:
this is the image created using python script:
[root@vfnphav1a python-rbd]# rbd info ssd2r/template-win2k8-20150420_
rbd image 'template-win2k8-20150420_':
size 40960 MB in 10240 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.5e6236db3ab3
format: 2
features:
flags:
I haven't used any --image-features, nor have I rbd_default_features in
ceph.conf.
apparantly the problem is in missing layering feature. So the python rbd create
method does not enable layering, although v2 format is used - when I added
rbd.RBD_FEATURE_LAYERING flag, I can properly protect created snapshots.
problem solved for me :)
Maybe the question is, whether layering should be enabled by default, but
now that I know what is the problem, It's no big deal..
thanks a lot for your time!
BR
nikola ciprich
>
> --
>
> Jason Dillaman
> Red Hat
> [email protected]
> http://www.redhat.com
>
>
> ----- Original Message -----
> From: "Nikola Ciprich" <[email protected]>
> To: "Jason Dillaman" <[email protected]>
> Cc: [email protected]
> Sent: Monday, April 20, 2015 12:41:26 PM
> Subject: Re: [ceph-users] hammer (0.94.1) - "image must support layering(38)
> Function not implemented" on v2 image
>
> Hello Jason,
>
> here it is:
>
> [root@vfnphav1a ceph]# rbd snap protect ssd2r/template-win2k8-20150420_@snap
> 2015-04-20 18:33:43.635427 7fa0344ca760 20 librbd::ImageCtx: enabling
> caching...
> 2015-04-20 18:33:43.635458 7fa0344ca760 20 librbd::ImageCtx: Initial cache
> settings: size=33554432 num_objects=10 max_dirty=25165824
> target_dirty=16777216 max_dirty_age=1
> 2015-04-20 18:33:43.635497 7fa0344ca760 20 librbd: open_image: ictx =
> 0x4672010 name = 'template-win2k8-20150420_' id = '' snap_name = ''
> 2015-04-20 18:33:43.636792 7fa0344ca760 20 librbd: detect format of
> template-win2k8-20150420_ : new
> 2015-04-20 18:33:43.637901 7fa0344ca760 10 librbd::ImageCtx: cache bytes
> 33554432 order 22 -> about 42 objects
> 2015-04-20 18:33:43.637906 7fa0344ca760 10 librbd::ImageCtx: init_layout
> stripe_unit 4194304 stripe_count 1 object_size 4194304 prefix
> rbd_data.5e6236db3ab3 format rbd_data.5e6236db3ab3.%016llx
> 2015-04-20 18:33:43.637932 7fa0344ca760 10 librbd::ImageWatcher: registering
> image watcher
> 2015-04-20 18:33:43.643651 7fa0344ca760 20 librbd: ictx_refresh 0x4672010
> 2015-04-20 18:33:43.645062 7fa0344ca760 20 librbd: new snapshot id=6
> name=snap size=42949672960 features=0
> 2015-04-20 18:33:43.645075 7fa0344ca760 20 librbd::ImageCtx: finished
> flushing cache
> 2015-04-20 18:33:43.645083 7fa0344ca760 20 librbd: snap_protect 0x4672010 snap
> 2015-04-20 18:33:43.645089 7fa0344ca760 20 librbd: ictx_check 0x4672010
> 2015-04-20 18:33:43.645090 7fa0344ca760 -1 librbd: snap_protect: image must
> support layering
> rbd: protecting snap failed: (38) Function not implemented
> 2015-04-20 18:33:43.645115 7fa0344ca760 20 librbd: close_image 0x4672010
> 2015-04-20 18:33:43.645117 7fa0344ca760 10 librbd::ImageCtx: canceling async
> requests: count=0
> 2015-04-20 18:33:43.645148 7fa0344ca760 10 librbd::ImageWatcher:
> unregistering image watcher
>
>
> In the meantime, I realised what could be the difference here.. the image
> I've got trouble protecting
> snapshot is created using python rbd binding..
>
> here's simple script to reproduce:
>
> #!/usr/bin/python
>
> import rados
> import rbd
>
> rc=rados.Rados(conffile='/etc/ceph/ceph.conf')
> rc.connect()
> ioctx = rc.open_ioctx('ssd2r')
>
> rbdi=rbd.RBD()
> rbdi.create(ioctx, 'test', 1024**2, old_format=False)
>
> will it help?
>
> BR
>
> nik
>
>
>
>
> On Mon, Apr 20, 2015 at 11:35:07AM -0400, Jason Dillaman wrote:
> > Can you add "debug rbd = 20" your ceph.conf, re-run the command, and
> > provide a link to the generated librbd log messages?
> >
> > Thanks,
> >
> > --
> >
> > Jason Dillaman
> > Red Hat
> > [email protected]
> > http://www.redhat.com
> >
> >
> > ----- Original Message -----
> > From: "Nikola Ciprich" <[email protected]>
> > To: [email protected]
> > Sent: Monday, April 20, 2015 10:54:17 AM
> > Subject: [ceph-users] hammer (0.94.1) - "image must support layering(38)
> > Function not implemented" on v2 image
> >
> > Hello,
> >
> > I'd like to ask about another problem I've stumbled upon..
> >
> > I've got format 2 image + snapshot, and while trying to protect snapshot
> > I'm getting following error:
> >
> > [root@vfnphav1a ~]# rbd ls -l ssd2r
> > NAME SIZE PARENT FMT PROT LOCK
> > fio_test 4096M 2
> > template-win2k8-20150420 40960M 2
> > template-win2k8-20150420@snap 40960M 2
> >
> > [root@vfnphav1a ~]# rbd snap protect ssd2r/template-win2k8-20150420@snap
> > rbd: protecting snap failed: 2015-04-20 16:47:31.587489 7f5e9e4fa760 -1
> > librbd: snap_protect: image must support layering(38) Function not
> > implemented
> >
> >
> > am I doing something wrong?
> >
> > thanks a lot in advance for reply
> >
> > BR
> >
> > nik
> >
> >
> > --
> > -------------------------------------
> > Ing. Nikola CIPRICH
> > LinuxBox.cz, s.r.o.
> > 28.rijna 168, 709 00 Ostrava
> >
> > tel.: +420 591 166 214
> > fax: +420 596 621 273
> > mobil: +420 777 093 799
> > www.linuxbox.cz
> >
> > mobil servis: +420 737 238 656
> > email servis: [email protected]
> > -------------------------------------
> >
> > _______________________________________________
> > ceph-users mailing list
> > [email protected]
> > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> >
>
> --
> -------------------------------------
> Ing. Nikola CIPRICH
> LinuxBox.cz, s.r.o.
> 28.rijna 168, 709 00 Ostrava
>
> tel.: +420 591 166 214
> fax: +420 596 621 273
> mobil: +420 777 093 799
> www.linuxbox.cz
>
> mobil servis: +420 737 238 656
> email servis: [email protected]
> -------------------------------------
>
--
-------------------------------------
Ing. Nikola CIPRICH
LinuxBox.cz, s.r.o.
28.rijna 168, 709 00 Ostrava
tel.: +420 591 166 214
fax: +420 596 621 273
mobil: +420 777 093 799
www.linuxbox.cz
mobil servis: +420 737 238 656
email servis: [email protected]
-------------------------------------
pgpgNIqijtu4B.pgp
Description: PGP signature
_______________________________________________ ceph-users mailing list [email protected] http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
