]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard/backend: Enable get/set of cluster-wide OSD settings
authorPatrick Nawracay <pnawracay@suse.com>
Tue, 15 May 2018 07:47:19 +0000 (09:47 +0200)
committerPatrick Nawracay <pnawracay@suse.com>
Fri, 15 Jun 2018 08:26:29 +0000 (10:26 +0200)
commitd7de1fa067098c38538e2cec2537c5023cdff6b4
treea508c26494647082ec853755ed01c4328482daf2
parent3234db0649815ce230c5145e995540256a448f26
mgr/dashboard/backend: Enable get/set of cluster-wide OSD settings

Add ability to list, set and unset cluster-wide OSD flags.

Flags can be listed and changed through the `/api/osd/flags` API
resource. By using a GET request, the list is retrieved. By using a PUT
request, the flags are updated (all at once). Flags not contained in the
data of the PUT are removed, additional once are added. Note that the
PUT requests require a JSON body with the data contained as value of the
'flags' key like so:

    {"flags": ["flag1", "flag2", ...]}

Fixes: http://tracker.ceph.com/issues/24056
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
qa/suites/rados/mgr/tasks/dashboard.yaml
qa/tasks/mgr/dashboard/test_osd.py
src/pybind/mgr/dashboard/controllers/osd.py