Repository navigation
mgr/dashboard_v2: Initial submission of a web-based management UI (replacement for the existing dashboard) #20103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
163 commits
Select commit
Hold shift + click to select a range
63c778b
mgr/dashboard_v2: Initial commit of the dashboard_v2 Manager module
LenzGr c0bba26
mgr/dashboard_v2: Make host and port configurable.
votdev 46c7ae0
mgr/dashboard_v2: ceph_module mock to support unit testing
rjfd 5eda0e1
mgr/dashboard_v2: added first unit test example
rjfd 7002f80
mgr/dashboard_v2: updated READMED with unit testing info
rjfd 001201c
mgr/dashboard_v2: Fix cherrypy shutdown handler
rjfd 0281b2c
mgr/dashboard_v2: Add command to create/update username/password.
votdev 4adc9ec
mgr/dashboard_v2: Create proper text editor config files to maintain …
votdev 61a9139
mgr/dashboard_v2: Auth API
c72c01e
mgr/dashboard_v2: Added pylint support and fixed linting errors
rjfd 59eb149
mgr/dashboard_v2: Added `RESTResource` Python class.
sebastian-philipp bb35284
mgr/dashboard_v2: added tox conf file to run unit tests and linting
rjfd 48e3df1
mgr/dashboard_v2: Fix python 2/3 compability problems
rjfd 01eeb84
mgr/dashboard_v2: Updated README
654c35e
mgr/dashboard_v2: Log script_name on unauthorized access
votdev 82faee0
mgr/dashboard_v2: Added test_restresource.py
sebastian-philipp 0051050
mgr/dashboard_v2: use float values when checking session expire time
sebastian-philipp 7d42d04
mgr/dashboard_v2: Ignore the __pycache__ directory.
votdev d418853
mgr/dashboard_v2: pass json body keys as args to REST resource methods
rjfd 1333d3d
mgr/dashboard_v2: auth module refactoring
rjfd ec57819
mgr/dashboard_v2: Very simple ping example
rjfd 1021615
mgr/dashboard_v2: Added developer notes to README
rjfd b37a3b6
mgr/dashboard_v2: Renamed/moved RESTResource to RESTController
rjfd 1f21d68
mgr/dashboard_v2: add initial frontend code
85344da
mgr/dashboard_v2: Added RESTController test case
sebastian-philipp 17ac1cd
mgr/dashboard_v2: Refactoring of unit tests
rjfd 694a305
mgr/dashboard_v2: Fix pylint executor and warnings/errors
rjfd 4fd405e
mgr/dashboard_v2: Combine coverage and tests results from py27 and py3
rjfd 54b00a9
mgr/dashboard_v2: Add frontend login/logout
acd7b6f
mgr/dashboard_v2: Rename angular components prefix
5ec7d35
mgr/dashboard_v2: Unit tests refactoring
rjfd 6fd59d1
mgr/dashboard_v2: Moved set-login-cred command logic to Auth class
rjfd 371f263
mgr/dashboard_v2: Added unit test for module.py
rjfd 34c189e
mgr/dashboard_v2: .gitignore update
rjfd d57b092
mgr/dashboard_v2: add support for frontend CI coverage and unit testing
rjfd c1a683e
mgr/dashboard_v2: fix pycodestyle to exclude the frontend files
rjfd 289050f
mgr/dashboard_v2: several code style enhancements
votdev 454e5f3
mgr/dashboard_v2: Disable CherryPi autoreload feature.
votdev 275a315
mgr/dashboard_v2: removed auth handler form test_auth.py setup
rjfd 1d2b792
mgr/dashboard_v2: simplify router and fix navigation
fa9e93b
mgr/dashboard_v2: Refactoring of the access to mgr module instance
rjfd cfa9130
mgr/dashboard_v2: Updated README with more developer notes
rjfd d0b166c
mgr/dashboard_v2: Added API controller listing endpoint.
sebastian-philipp f416efc
mgr/dashboard_v2: Refactor controller base class
votdev 77e5bf4
mgr/dashboard_v2: Fix bug in AuthRequired decorator
rjfd 274cf8e
mgr/dashboard_v2: Add hosts page
e47eaf3
mgr/dashboard_v2: Fix typo on method isLoginActive
9a8a742
mgr/dashboard_v2: Rename "host" module to "cluster"
8ba6e24
mgr/dashboard_v2: Added status route to cluster
sebastian-philipp c866b73
mgr/dashboard_v2: Fix content type of JSON responses
f462494
mgr/dashboard_v2: Fix content type (body) of error page
814938b
mgr/dashboard_v2: Session expire at browser close
votdev cbf9bfc
mgr/dashboard_v2: Don't use localized config for auth
bd38d90
mgr/dashboard_v2: Refactored logging
sebastian-philipp 8ea2589
mgr/dashboard_v2: Use Awesome Bootstrap Checkbox.
votdev 5243334
mgr/dashboard_v2: Mark text with the i18n attribute
votdev 7eca790
mgr/dashboard_v2: Fix linting errors
sebastian-philipp b7c2ffa
mgr/dashboard_v2: Notification queue
rjfd 4120556
mgr/dashboard_v2: Updated README with notification queue instructions
rjfd c803df1
mgr/dashboard_v2: mocking of rados and rbd modules
rjfd 437e3c6
mgr/dashboard_v2: Move hosts option to cluster menu
468e384
mgr/dashboard_v2: Add breadcrumb on Hosts page
06066f0
mgr/dashboard_v2: Updated README with instruction on how to mock ceph…
rjfd 41c50f4
mgr/dashboard_v2: Add table component
0f4adc4
mgr/dashboard_v2: add missing codealizer recommended rules
80b7d14
mgr/dashboard_v2: add tslint import linting rule
ad96ddb
mgr/dashboard_v2: add some eslint rules to tslint
8d65f9c
mgr/dashboard_v2: add tslint no-consecutive-blank-lines rule
d1d966f
mgr/dashboard_v2: decrease max-line-length to 100
4216759
mgr/dashboard_v2: add style guide to the frontend README
f6d9793
mgr/dashboard_v2: force whitespace in imports list
3913d54
mgr/dashboard_v2: Migrate RGW daemon REST resource
p-se a71f7c6
mgr/dashboard_v2: Added coverage tracking to module code
rjfd e71c6d8
mgr/dashboard_v2: add more debug message to tools.py
rjfd e59c7c1
mgr/dashboard_v2: removed mock classes, unit tests now run against re…
rjfd 2d5596e
mgr/dashboard_v2: Fix copy-webpack-plugin version
rjfd 1dd62fd
mgr/dashboard_v2: clean rados connection on shutdown
rjfd 349c1ff
mgr/dashboard_v2: adaptation of dashboard RemoteViewCache as a decorator
rjfd 7d2b500
mgr/dashboard_v2: add health page and its dependencies
407c84b
mgr/dashboard_v2: Add block pools page
7457e39
mgr/dashboard_v2: table component style improvements
f307d93
mgr/dashboard_v2: Let the pagination input field look nicer
votdev 4cfd508
mgr/dashboard_v2: Add cdPasswordButton directive
votdev 5699586
mgr/dashboard_v2: Add support for nested controllers
p-se 45a6aae
mgr/dashboard_v2: Fix linting errors
d307fb1
mgr/dashboard_v2: Use datatable on Cluster/Hosts page.
votdev 8ebde83
mgr/dashboard_v2: fix frontend bug in table.component.hml
rjfd 5ffece4
mgr/dashboard_v2: Easy table cell transformation
54f97ac
mgr/dashboard_v2: Update documentation
5f4823f
mgr/dashboard_v2: Add RGW page.
votdev 0c56065
mgr/dashboard_v2: Highlight clickable datatable rows.
votdev 1fda217
mgr/dashboard_v2: add node as a local dependency
8d37835
mgr/dashboard_v2: fix visibility of frontend class properties
rjfd ba0e105
mgr/dashboard_v2: add view cache component
8bfdb07
mgr/dashboard_v2: adapt pool detail with cache view component
efd339c
mgr/dashboard_v2: Updated README.rst, added HACKING.rst
7de16ae
mgr/dashboard_v2: Migrate standby module
p-se 0c78d5e
mgr/dashboard_v2: add performance counter page
5c255b7
mgr/dashboard_v2: move datatable module
afd896d
mgr/dashboard_v2: add sparkline component
1a9619d
mgr/dashboard_v2: add router link table template
d9a334d
mgr/dashboard_v2: add monitors page
f3f076e
mgr/dashboard_v2: Renamed `block_pool` controller to `rbd`
sebastian-philipp e6692ed
mgr/dashboard_v2: add 404 page
95d5645
mgr/dashboard_v2: Create links to perf counters
votdev 6d1d02d
mgr/dashboard_v2: Add bin dir to PATH
sebastian-philipp 2c7844f
mgr/dashboard_v2: Added tcmu iSCSI controller.
sebastian-philipp 48efbcc
mgr/dashboard_v2: Add port to `ControllerTestCase.__init__`
sebastian-philipp 7244fc0
mgr/dashboard_v2: Datatable related code improvements
votdev 886d76b
mgr/dashboard_v2: add filesystem page
d9e393e
mgr/dashboard_v2: Use monospace font on logs
bd93fe2
mgr/dashboard_v2: Add iSCSI page
6141242
mgr/dashboard_v2: Migrate cluster configuration
p-se ab599d9
mgr/dashboard_v2: Prevent double click on table refresh
f60e2cd
mgr/dashboard_v2: Auto refresh hosts
69c0c12
mgr/dashboard_v2: Add footer and header to hosts table
0a82e85
mgr/dashboard_v2: Reorder menu entries
b185e63
mgr/dashboard_v2: Improve empty row style
434cf2f
mgr/dashboard_v2: Fixed capitalization on login page
e346bca
mgr/dashboard_v2: Also protect `/api`
sebastian-philipp 189c31b
mgr/dashboard_v2: Data transform in k/v table
a881e43
mgr/dashboard_v2: Service class base code
rjfd 34f17d0
mgr/dashboard_v2: added CephService service class
rjfd bcb7664
mgr/dashboard_v2: get rbd pool list using CephService
rjfd e7e958e
mgr/dashboard_v2: get tcmu_runner service list using CephService
rjfd 9f9dd86
mgr/dashboard_v2: get rgw service list using CephService
rjfd dc396f9
mgr/dashboard_v2: Add missing i18n attributes
votdev dbd9f1f
mgr/dashboard_v2: Add missing 'aria-current' attribute to active brea…
votdev b09a019
mgr/dashboard_v2: Fix hosts columns width
fcfedcc
make-dist: Added dashboard_v2 frontend build files to dist tarball
rjfd 9b3351b
vstart: mgr/dashboard_v2 enabling and configuration
rjfd 33a7db0
mgr/dashboard_v2: fix tox.ini to handle the vstart changes
rjfd 71ac216
ceph.spec: added dashboard_v2 development and runtime dependencies
rjfd 57f2709
debian/control: add dashboard_v2 development dependencies
rjfd b6d9464
install-deps: install dashboard_v2 development dependencies
rjfd 0ef8d2d
mgr/dashboard_v2: updated .gitignore
rjfd 020afef
mgr/dashboard_v2: add ceph configuration documentation page
d7735fa
mgr/dashboard_v2: Add RBD mirroring functionality
92ef46e
mgr/dashboard_v2: Move `dashboard/toplevel` to a new controller
sebastian-philipp 56318c1
mgr/dashboard_v2: Fix datatable header layout in configuration doc
votdev ed58749
mgr/dashboard_v2: OSD pages
d3c0bf7
mgr/dashboard_v2: Add rbd_mirroring to `/api/summary`
sebastian-philipp 24e5ee1
mgr/dashboard_v2: add mirroring page
3e3776e
mgr/dashboard_v2: Adapt status datatable to default design of cd-table
votdev 482074c
mgr/dashboard_v2: Updated reference documentation
53c65ea
mgr/dashboard_v2: enable rbd-mirror perf counters
4f9f387
mgr/dashboard_v2: Add links on dashboard
5a40394
mgr/dashboard_v2: Add support for $PREFIX config
f71e683
mgr/dashboard_v2: Enable table header and footer on perfcounters
1f5051a
mgr/dashboard_v2: Fixed exception in rbd_mirroring
sebastian-philipp 772609f
mgr/dashboard_v2: Auto reload cd-table
c6fcf5e
mgr/dashboard_v2: Fix OSD menu entry position
5fa2d07
mgr/dashboard_v2: use global manager instance instead of injection
rjfd a9fd022
mgr/dashboard_v2: Remove `BaseControllerMeta` meta class
p-se 12f3c7a
mgr/dashboard_v2: Remove `Service` and `ServiceMeta` class
p-se d7ead63
mgr/dashboard_v2: Integrate dashboard_v2 into `make check`
sebastian-philipp 24e216b
mgr/dashboard_v2: Add CMake target to build the frontend.
sebastian-philipp 97606b4
mgr/dashboard_v2: Add mgr-dashboard_v2 frontend unittests to `ctest`
sebastian-philipp 19bb5db
mgr/dashboard_v2: Added smoke test.
sebastian-philipp 86264d4
qa/tasks/mgr: move test initialization to setUpClass method
rjfd 966fe36
qa/tasks/mgr/dashboard_v2: implementation of backend API tests
rjfd 7eba318
qa/suites/mgr/dashboard_v2: added suite yaml for testing dashboard_v2
rjfd 5449857
mgr/dashboard_v2: added script to run backend API tests locally
rjfd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ export DESTDIR=$(CURDIR)/debian/tmp | |
|
|
||
| export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) | ||
|
|
||
| extraopts += -DUSE_CRYPTOPP=OFF -DWITH_OCF=ON -DWITH_LTTNG=ON -DWITH_PYTHON3=ON -DWITH_EMBEDDED=OFF | ||
| extraopts += -DUSE_CRYPTOPP=OFF -DWITH_OCF=ON -DWITH_LTTNG=ON -DWITH_PYTHON3=ON -DWITH_EMBEDDED=OFF -DWITH_MGR_DASHBOARD_V2_FRONTEND=OFF | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why OFF?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same reason as above |
||
| extraopts += -DWITH_CEPHFS_JAVA=ON | ||
| extraopts += -DWITH_SYSTEMD=ON -DCEPH_SYSTEMD_ENV_DIR=/etc/default | ||
| # assumes that ceph is exmpt from multiarch support, so we override the libdir. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
|
|
||
| tasks: | ||
| - install: | ||
| - ceph: | ||
| # tests may leave mgrs broken, so don't try and call into them | ||
| # to invoke e.g. pg dump during teardown. | ||
| wait-for-scrub: false | ||
| log-whitelist: | ||
| - overall HEALTH_ | ||
| - \(MGR_DOWN\) | ||
| - \(PG_ | ||
| - replacing it with standby | ||
| - No standby daemons available | ||
| - \(FS_DEGRADED\) | ||
| - \(MDS_FAILED\) | ||
| - \(MDS_DEGRADED\) | ||
| - \(FS_WITH_FAILED_MDS\) | ||
| - \(MDS_DAMAGE\) | ||
| - rgw: [client.0] | ||
| - cephfs_test_runner: | ||
| modules: | ||
| - tasks.mgr.test_dashboard_v2 | ||
| - tasks.mgr.dashboard_v2.test_auth | ||
| - tasks.mgr.dashboard_v2.test_cephfs | ||
| - tasks.mgr.dashboard_v2.test_cluster_configuration | ||
| - tasks.mgr.dashboard_v2.test_dashboard | ||
| - tasks.mgr.dashboard_v2.test_host | ||
| - tasks.mgr.dashboard_v2.test_monitor | ||
| - tasks.mgr.dashboard_v2.test_osd | ||
| - tasks.mgr.dashboard_v2.test_perf_counters | ||
| - tasks.mgr.dashboard_v2.test_summary | ||
| - tasks.mgr.dashboard_v2.test_rgw | ||
| - tasks.mgr.dashboard_v2.test_rbd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why OFF, though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The frontend build requires internet access which is not available in packaging build services, such as OBS. Because of this reason we build the frontend when generating the tarball and include the result files in the tarball.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rjfd yeah, i have the same question. since
make-distis updated to include the generated files undersrc/pybind/mgr/dashboard_v2/frontend/dist, we can safely enable this option indebian/rulesandceph.spec.in, i think?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the
WITH_MGR_DASHBOARD_V2_FRONTENDenables/disables the frontend compilation, if we enable it during the packaging build (inside OBS, or other packaging service) it will require nodejs and npm as system dependencies, and will try to download all nodejs packages frontend dependencies when runningnpm install(https://github.com/ceph/ceph/pull/20103/files#diff-bb5b00ad365f9278caa7bfa071fc7ce3R15). This will fail for two reasons:a) usually the nodejs and npm system dependencies are too old, that's why we have to upgrade node and npm in install-deps.sh
b) packaging services don't allow internet access during build and
npm installwill failThis is the reason why we include the frontend compiled files in the tarball to avoid the above problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's counter-intuitive for the dashboard to be set to "OFF" in the packaging. There is an analogous situation with Boost, which is downloaded by make-dist. During the build cmake checks for the existence of a Boost-specific file, and only attempts the download if that file doesn't exist. See https://github.com/ceph/ceph/blob/master/cmake/modules/BuildBoost.cmake#L132-L159 for the implementation.
If doing that is too much trouble, could we at least rename the option to something more descriptive (and non-negative) like "-DWITH_MGR_DASHBOARD_V2_NODEJS_DEPS_IN_TARBALL=ON"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a POV of cmake, this flag disables or enables the build of the frontend. Changing this cmake flag has no effect on the tarball creation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smithfarm I agree with your concern, and I think we can even drop the cmake option, but that will require another round of build testing that takes some time. Can I open a PR after this one is merged dropping the cmake option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rjfd Yes, I was going to say that this concern of mine should not block merge of this PR.