RE: python-cephclient for Mgr/RESTful plugin

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

 



Hi Boris,
     I've read below file:
         1) http://docs.ceph.com/docs/master/mgr/restful/#the-request-endpoint
         2) https://github.com/ceph/ceph/blob/master/qa/workunits/rest/test_mgr_rest_api.py
     Do you know how to avoid input password to RESTful plugin to execute monitor commands?

     I must give user-“admin” and password "24b21975-640e-4880-9334-3fa22c3ab409" to access to RESTful plugin. I want to access to it directly without giving these info.
          [wrsroot@controller-0 usr(keystone_admin)]$ ceph mgr services
          {
                   "restful": "https://controller-0:5001/";
          }
          [wrsroot@controller-0 usr(keystone_admin)]$ ceph restful list-keys
          {
                   "admin": "24b21975-640e-4880-9334-3fa22c3ab409"
          }

B.R.
Changcheng    

-----Original Message-----
From: ceph-devel-owner@xxxxxxxxxxxxxxx [mailto:ceph-devel-owner@xxxxxxxxxxxxxxx] On Behalf Of Boris Ranto
Sent: Wednesday, January 16, 2019 7:20 PM
To: Liu, Changcheng <changcheng.liu@xxxxxxxxx>
Cc: ceph-devel <ceph-devel@xxxxxxxxxxxxxxx>
Subject: Re: python-cephclient for Mgr/RESTful plugin

Glad to hear that :)

Also, if you are looking into a higher coverage by the restful module, I recommend looking into the /request endpoint as documented, here:

http://docs.ceph.com/docs/master/mgr/restful/#the-request-endpoint

That should allow you to schedule any monitor command but you will need to parse everything yourself and the backwards compatibility is not guaranteed there.

-boris

On Wed, Jan 16, 2019 at 7:18 AM Liu, Changcheng <changcheng.liu@xxxxxxxxx> wrote:
>
> Thanks Boris. It's very helpful.
>
> -----Original Message-----
> From: Boris Ranto [mailto:branto@xxxxxxxxxx]
> Sent: Wednesday, January 16, 2019 12:16 AM
> To: Liu, Changcheng <changcheng.liu@xxxxxxxxx>
> Cc: ceph-devel <ceph-devel@xxxxxxxxxxxxxxx>
> Subject: Re: python-cephclient for Mgr/RESTful plugin
>
> I am not aware of any such wrapper but you can look at the qa workunit for the restful module for the tips on how to use it from Python:
>
> https://github.com/ceph/ceph/blob/master/qa/workunits/rest/test_mgr_re
> st_api.py
>
> -boris
>
> On Mon, Jan 14, 2019 at 8:01 AM Liu, Changcheng <changcheng.liu@xxxxxxxxx> wrote:
> >
> > Hi all,
> >    In Jewel version, there's python-cephclient as below to operate
> >    ceph-rest-api:
> >    https://github.com/dmsimard/python-cephclient
> >
> >    Does any one know whether there's some similar module to make it
> >    convenient to call Mgr/RESTful plugin in Mimic version?
> >
> > B.R.
> > Changcheng




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux