1
0
mirror of https://github.com/ceph/ceph synced 2025-04-01 23:02:17 +00:00
Commit Graph

83705 Commits

Author SHA1 Message Date
Tiago Melo
24e5ee11a8
mgr/dashboard_v2: add mirroring page
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:15 +00:00
Sebastian Wagner
d3c0bf7f15
mgr/dashboard_v2: Add rbd_mirroring to /api/summary
Also:

* Made `get_daemons_and_pools` a function independant of `RbdMirroring`.
* Added tests

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-05 13:07:15 +00:00
Stephan Müller
ed58749063
mgr/dashboard_v2: OSD pages
You can now list all osds and see details for each OSD.
The details can be viewed in tabs. You can view attributes, meta data
and histogram of the selected OSD.

Signed-off-by: Stephan Müller <smueller@suse.com>
2018-03-05 13:07:15 +00:00
Volker Theile
56318c1ff0
mgr/dashboard_v2: Fix datatable header layout in configuration doc
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:15 +00:00
Sebastian Wagner
92ef46eb8f
mgr/dashboard_v2: Move dashboard/toplevel to a new controller
Details:

* Moved `/dashboard/toplevel` API endpoint to `/summary`.
* Moved testcase to `tests/test_summary.py`.
* Also renamed service in the frontend.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-05 13:07:15 +00:00
Tatjana Dehler
d7735fa824
mgr/dashboard_v2: Add RBD mirroring functionality
This commit adds the RBD mirroring functionality of the first dashboard to
the dashboard_v2 REST API. That's why the code is basically based on the
code of the first dashboard. It was just brought into a different structure
to fit into the structure of dashboard_v2.

The new API endpoint can be found at http://<host>:<port>/api/rbdmirror

The commit adds also related tests.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2018-03-05 13:07:15 +00:00
Tiago Melo
020afefd8e
mgr/dashboard_v2: add ceph configuration documentation page
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:15 +00:00
Ricardo Dias
0ef8d2d9ef
mgr/dashboard_v2: updated .gitignore
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:15 +00:00
Ricardo Dias
b6d9464806
install-deps: install dashboard_v2 development dependencies
Signed-off-by: Ricardo Dias <rdias@suse.com>
Signed-off-by: Kai Wagner <kwagner@suse.com>
2018-03-05 13:07:14 +00:00
Ricardo Dias
57f270921f
debian/control: add dashboard_v2 development dependencies
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:14 +00:00
Ricardo Dias
71ac216383
ceph.spec: added dashboard_v2 development and runtime dependencies
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:14 +00:00
Ricardo Dias
33a7db0e6a
mgr/dashboard_v2: fix tox.ini to handle the vstart changes
vstart.sh script now enables and configures dashboard_v2 module, so
tox.ini script needs to handle that.

Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:14 +00:00
Ricardo Dias
9b3351bcb2
vstart: mgr/dashboard_v2 enabling and configuration
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:14 +00:00
Ricardo Dias
fcfedccd91
make-dist: Added dashboard_v2 frontend build files to dist tarball
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:14 +00:00
Ricardo Marques
b09a019513
mgr/dashboard_v2: Fix hosts columns width
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-03-05 13:07:14 +00:00
Volker Theile
dbd9f1f84d
mgr/dashboard_v2: Add missing 'aria-current' attribute to active breadcrumbs.
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:14 +00:00
Volker Theile
dc396f9c0a
mgr/dashboard_v2: Add missing i18n attributes
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:13 +00:00
Ricardo Dias
9f9dd86630
mgr/dashboard_v2: get rgw service list using CephService
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:13 +00:00
Ricardo Dias
e7e958e665
mgr/dashboard_v2: get tcmu_runner service list using CephService
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:13 +00:00
Ricardo Dias
bcb7664a1f
mgr/dashboard_v2: get rbd pool list using CephService
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:13 +00:00
Ricardo Dias
34f17d0333
mgr/dashboard_v2: added CephService service class
This class provides methods to get the list of services registered in
the cluster, and also to get the list of pools by application type.

Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:13 +00:00
Ricardo Dias
a881e435e9
mgr/dashboard_v2: Service class base code
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:13 +00:00
Stephan Müller
189c31b4e3
mgr/dashboard_v2: Data transform in k/v table
The key value table can transform the input data into key value objects
now, you don't have to care about that anymore.

Also the first column of the data used in cd-table will be sorted if
not set manual through the "sorts" array.

Signed-off-by: Stephan Müller <smueller@suse.com>
2018-03-05 13:07:13 +00:00
Sebastian Wagner
e346bcaf92
mgr/dashboard_v2: Also protect /api
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-05 13:07:13 +00:00
Lenz Grimmer
434cf2f289
mgr/dashboard_v2: Fixed capitalization on login page
Changed "ceph" to "Ceph" in the welcome message.

Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
2018-03-05 13:07:12 +00:00
Ricardo Marques
b185e63671
mgr/dashboard_v2: Improve empty row style
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-03-05 13:07:12 +00:00
Ricardo Marques
0a82e85992
mgr/dashboard_v2: Reorder menu entries
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-03-05 13:07:12 +00:00
Ricardo Marques
69c0c12480
mgr/dashboard_v2: Add footer and header to hosts table
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-03-05 13:07:12 +00:00
Ricardo Marques
f60e2cd08b
mgr/dashboard_v2: Auto refresh hosts
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-03-05 13:07:12 +00:00
Ricardo Marques
ab599d9a23
mgr/dashboard_v2: Prevent double click on table refresh
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-03-05 13:07:12 +00:00
Patrick Nawracay
61412420c1
mgr/dashboard_v2: Migrate cluster configuration
This commit adds the ability to retrieve and filter the cluster
configuration of Ceph through the RESTful API.

Parameters `level` and `service` can be added to filter the list.

Example:

    http://<host>:<port>/api/cluster_conf?level=basic&service=mds

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-03-05 13:07:12 +00:00
Ricardo Marques
bd93fe20ae
mgr/dashboard_v2: Add iSCSI page
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-03-05 13:07:11 +00:00
Ricardo Marques
d9e393e2b2
mgr/dashboard_v2: Use monospace font on logs
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-03-05 13:07:11 +00:00
Tiago Melo
886d76b8c6
mgr/dashboard_v2: add filesystem page
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:11 +00:00
Volker Theile
7244fc06f6
mgr/dashboard_v2: Datatable related code improvements
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:11 +00:00
Sebastian Wagner
48efbccccb
mgr/dashboard_v2: Add port to ControllerTestCase.__init__
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-05 13:07:11 +00:00
Sebastian Wagner
2c7844fabb
mgr/dashboard_v2: Added tcmu iSCSI controller.
* Based on `mgr/dashboard/rbd_iscsi.py`.
* Fixed Python3 compatibility issues.
* Added test.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-05 13:07:11 +00:00
Sebastian Wagner
6d1d02dd75
mgr/dashboard_v2: Add bin dir to PATH
Add `<repo>/build/bin` to `PATH` when running unit tests.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-05 13:07:11 +00:00
Volker Theile
95d56459df
mgr/dashboard_v2: Create links to perf counters
- Display links to the services in the Hosts data table
- Add missing MDS performance counter backend

Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:11 +00:00
Tiago Melo
e6692ed853
mgr/dashboard_v2: add 404 page
Add a 404 page that will be triggered every time the user tries to
access a route that does not exists or the servers responds with 404.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:10 +00:00
Sebastian Wagner
f3f076e007
mgr/dashboard_v2: Renamed block_pool controller to rbd
* Simplified the API
* Fixed and improved the rbd controller tests.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-05 13:07:10 +00:00
Tiago Melo
d9a334d591
mgr/dashboard_v2: add monitors page
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:10 +00:00
Tiago Melo
1a9619d9b3
mgr/dashboard_v2: add router link table template
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:10 +00:00
Tiago Melo
afd896da40
mgr/dashboard_v2: add sparkline component
This also adds a template in the table component.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:10 +00:00
Tiago Melo
5c255b7e8e
mgr/dashboard_v2: move datatable module
By moving the datatable module outside of the  components module we
can avoid a circular dependency between the datatable and sparkline
component.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:10 +00:00
Tiago Melo
0c78d5e0df
mgr/dashboard_v2: add performance counter page
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:10 +00:00
Patrick Nawracay
7de16aee16
mgr/dashboard_v2: Migrate standby module
This commit will add a StandbyModule class to enable redirects from any
inactive MGR instance to the active MGR instance.

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-03-05 13:07:09 +00:00
Lenz Grimmer
efd339cdde
mgr/dashboard_v2: Updated README.rst, added HACKING.rst
Moved developer-related documentation from `README.rst` to a
new file `HACKING.rst`.

Converted `frontend/README.md` to ReST and merged it into `HACKING.rst`.

Added updates to the README provided by @rjfd in PR#83
(updated the whole unit tests content to match the latest changes
on unit test execution, updated the development notes about
controller development)

Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
2018-03-05 13:07:09 +00:00
Tiago Melo
8bfdb073ac
mgr/dashboard_v2: adapt pool detail with cache view component
This modifies how pool detail show the cache information to the user
and implements a continuous update of the images information.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:09 +00:00
Tiago Melo
ba0e1052f3
mgr/dashboard_v2: add view cache component
This component should be used in components that access endpoints
that implement ViewCache.
It will inform the user if the data is stale or if there were some
problems fetching it.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:09 +00:00