Commit Graph

83719 Commits

Author SHA1 Message Date
Sebastian Wagner
24e216b519
mgr/dashboard_v2: Add CMake target to build the frontend.
* Added new CMake flag `WITH_MGR_DASHBOARD_V2_FRONTEND`:
  Build the mgr/dashboard_v2 frontend using `npm install && npm run build`

* Set this flag to `OFF` when building packages.

* Removed creation of the frontend from `vstart.sh`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-05 13:07:17 +00:00
Sebastian Wagner
d7ead639dc
mgr/dashboard_v2: Integrate dashboard_v2 into make check
Also:

* Disabled API tests in tox.
* No longer start a vstart.sh cluster in tox.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-05 13:07:17 +00:00
Patrick Nawracay
12f3c7a6b8
mgr/dashboard_v2: Remove Service and ServiceMeta class
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-03-05 13:07:17 +00:00
Patrick Nawracay
a9fd022c32
mgr/dashboard_v2: Remove BaseControllerMeta meta class
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-03-05 13:07:17 +00:00
Ricardo Dias
5fa2d07690
mgr/dashboard_v2: use global manager instance instead of injection
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:17 +00:00
Stephan Müller
c6fcf5e1db
mgr/dashboard_v2: Fix OSD menu entry position
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-03-05 13:07:17 +00:00
Stephan Müller
772609ffd4
mgr/dashboard_v2: Auto reload cd-table
Now every used cd-table with a valid "fetch" function will auto reload
itself by default every 10 seconds. You can also identify the unique
property of the row now, by default the unique identifier is "id".

Signed-off-by: Stephan Müller <smueller@suse.com>
2018-03-05 13:07:17 +00:00
Sebastian Wagner
1f5051ab8a
mgr/dashboard_v2: Fixed exception in rbd_mirroring
Fixed issue when rbd-mirroring is enabled without any Pools.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-05 13:07:16 +00:00
Lenz Grimmer
f71e683a38
mgr/dashboard_v2: Enable table header and footer on perfcounters
Enable the ability to filter and paginate the performance counter tables
to make it easier to find specific information quickly.

Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
2018-03-05 13:07:16 +00:00
Ricardo Marques
5a40394f92
mgr/dashboard_v2: Add support for $PREFIX config
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-03-05 13:07:16 +00:00
Ricardo Marques
4f9f38746e
mgr/dashboard_v2: Add links on dashboard
User will be able to navigate from dashboard to "Monitor" and "OSDs" pages

Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-03-05 13:07:16 +00:00
Tiago Melo
53c65ea292
mgr/dashboard_v2: enable rbd-mirror perf counters
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:16 +00:00
Lenz Grimmer
482074c2a3
mgr/dashboard_v2: Updated reference documentation
Updated the dashboard chapter in the manual to reflect the
changes introduced by Dashboard v2 (e.g. username/password).

Updated description to include a high-level overview of the features
available.

Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
2018-03-05 13:07:16 +00:00
Volker Theile
3e3776e1ff
mgr/dashboard_v2: Adapt status datatable to default design of cd-table
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:16 +00:00
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