Re: Get/set/list rbd image using python librbd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We try to keep the C/C++ and Python APIs in-sync, but it looks like
these functions were missed and are not currently available via the
Python API. I created a tracker ticket [1] the issue. If you are
interested, feel free to contribute a pull request for the missing
APIs.

[1] http://tracker.ceph.com/issues/19451

On Sun, Apr 2, 2017 at 8:17 PM, Sayid Munawar <sayid.munawar@xxxxxxxxx> wrote:
> Hi,
>
> Using rbd command line, we can set / get / list image-meta of an rbd image
> as described in the man page.
>
> # rbd image-meta list mypool/myimage
>
>
> How can we do the same using python librbdpy ? i can't find it in the
> documentation.
>
> with rados.Rados(conffile='my_ceph.conf') as cluster:
>     with cluster.open_ioctx('mypool') as ioctx:
>         with rbd.Image(ioctx, 'myimage') as image:
>             image._some_method_to_set_metadata() ???
>
>
> Thank you
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>



-- 
Jason
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux