Re: Getting the JSON schema of commands

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

 



Hi Sebastian,

Thanks for your message, my answers bellow.


Le 23/11/2018 à 17:55, Sebastian Wagner a écrit :
[...]

Compared to openATTIC, the dashboard has three mitigations for this problem:

1. By living inside the Ceph repo, we no longer need to stay compatible
to previous Ceph versions. Greatly reducing the complexity in some parts.

This approach is not possible to some 3rd party tools like mine as I have no idea which version of Ceph I'll see on platforms.

I cannot neither ask to run a specific version of the tool regarding the cluster you want to debug. Even more, I can have several versions of Ceph running on the same platform.

2. Because the internal data structures are not easy to consume, The
dashboard exposes a consumable REST API to the dashboard frontend that
tries not to expose implementation details. The restful module has a
similar goal.

Do you have any example ?


3. We're verifying the JSON structure in a Teuthology tests. For example:

https://github.com/ceph/ceph/blob/60d4fa608ea54ea811137d95a073255c728e274c/qa/tasks/mgr/dashboard/test_rbd.py#L183-L204
https://github.com/ceph/ceph/blob/60d4fa608ea54ea811137d95a073255c728e274c/qa/tasks/mgr/dashboard/test_rgw.py#L151-L161
Hopefully, all unexpected changes will be caught here.

Some structures are more complex than other. There is some dynamic ones that change their content regarding the state of the cluster.

That considered with the matrix of the versions, I really wonder how I can get a stable model.


Have you thought about using either restful or the dashboard API for
your tool?

Not really but that could be an idea.

Do you expose all that I can find via the regular cli ?


Erwan,




[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