Project

General

Profile

1B - Ceph Management API » History » Version 2

Jessica Mack, 06/22/2015 04:22 AM

1 1 Jessica Mack
h1. 1B - Ceph Management API
2
3
h3. Live Pad
4
5
The live pad can be found here: "[pad]":http://pad.ceph.com/p/Ceph_management_API
6 2 Jessica Mack
7
h3. Summit Snapshot
8
9 1 Jessica Mack
wCoding tasks (some done, see http://github.com/ceph/ceph branch wip-ceph-cli for an out-of-date working branch)
10
If you have ideas/comments/suggestions, contact us at irc.oftc.net #ceph, or ceph-devel@vger.kernel.org!
11
12
13
# Create command/param/help registry in monclient, export in JSON on request
14
** expression language for parameter descriptions: type, name, valid ranges/values, etc.
15
** make it simple to add new commands and easy to find the full list of commands supported
16
# Frontend CLI that requests command registry and validates user input, submits JSON command request
17
** do as much validation upfront as possible, as generically as possible
18
** write validation code such that it can be reused in REST endpoint
19
** format help, provide substring help
20
** allow for command-line completion (allow partial matching of input)
21
** format actual command request in unambiguous complete JSON form
22
# Remove existing command validation/parsing from monclient
23
** rely on front end to pass only valid commands as much as possible (some validation must talk to the cluster)
24
** refactor common tasks, like selection of output format
25
# Allow all formatted commands to output JSON or XML (planning ahead for REST)
26
# Validate all existing functionality remains unchanged with much-enhanced unit tests and existing tests
27
# migration path for existing 'allow command ...' cap strings
28
# discover/describe --admin-daemon and tell commands (currently just passthru)
29
# merge to master... 0.63ish?
30
# Add command-line completion to frontend and BASH snippets
31
# Create webserver for REST endpoint (after the interface is designed) using chunks of the CLI code as needed
32
# Allow REST endpoint to respond in JSON or XML at user's request
33
# Add some appropriate sort of monitoring to the REST endpoint
34
# ability to access daemon admin socket command set via REST mgmt endpoint
35
# ability to do 'tell <name> ...'
36
# ability to access cluster event log via cli, REST mgmt endpoint
37
# ceph-deploy support for deploying a management endpoint daemon
38
# (Possible): allow client to register interest in cluster events (cluster/OSD full, daemon status change, quorum change, administrative events/change) using an unknown mechanism (perhaps a URL that can be accessed on such events, perhaps with a parameter structure to carry information about the
39
40
Build / release tasks
41
42
43
# document upgrade path: upgrade cli tool first (it can talk to either old or new mons), mons second.
44
# merge first batch of cli stuff
45
# merge rest mgmt endpoint as it finishes
46
47
Documentation tasks
48
49
50
# Fix up manpage/webdoc for CLI; decide to document each or just defer to CLI help
51
# A large pile of documentation for REST API
52
53
Deprecation tasks
54
55
n/a