Commit Graph

83695 Commits

Author SHA1 Message Date
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
Ricardo Dias
8d378356f2
mgr/dashboard_v2: fix visibility of frontend class properties
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:09 +00:00
Tiago Melo
1fda21766c
mgr/dashboard_v2: add node as a local dependency
This will allow us to use the angular cli on systems that don't have node
v6.9.0 or higher installed.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-05 13:07:09 +00:00
Volker Theile
0c56065458
mgr/dashboard_v2: Highlight clickable datatable rows.
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:09 +00:00
Volker Theile
5f4823fc84
mgr/dashboard_v2: Add RGW page.
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:09 +00:00
Patrick Nawracay
54f97acf19
mgr/dashboard_v2: Update documentation
* Nested Controllers
* How to use RESTController

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-03-05 13:07:08 +00:00
Stephan Müller
5ffece425a
mgr/dashboard_v2: Easy table cell transformation
The table column definition is extended by "cellTransformation"
property, which is filled through the use of "CellTemplate" enum.
If you have set that, a specific template reference will be used for
the ngx column property "cellTemplate". All references are stored
at the bottom of the data table template.

Signed-off-by: Stephan Müller <smueller@suse.com>
2018-03-05 13:07:08 +00:00
Ricardo Dias
8ebde83b6f
mgr/dashboard_v2: fix frontend bug in table.component.hml
Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-05 13:07:08 +00:00
Volker Theile
d307fb1876
mgr/dashboard_v2: Use datatable on Cluster/Hosts page.
Signed-off-by: Volker Theile <vtheile@suse.com>
2018-03-05 13:07:08 +00:00
Patrick Nawracay
45a6aae3a7
mgr/dashboard_v2: Fix linting errors
Supposed to be squashed with 5236e6168d763c8b40742c33ffb0ebe8e55ce6e8.

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-03-05 13:07:08 +00:00
Patrick Nawracay
5699586288
mgr/dashboard_v2: Add support for nested controllers
The `ApiController` decorator is used to define a API endpoints.  This
change will enable to use `/` in paths, so that nested controllers can
be used.

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-03-05 13:07:08 +00:00