Skip to content

luminous: mgr/dashboard_v2: #1 - Initial submission of a web-based management UI (replacement for the existing dashboard) - #23271

Closed
epuertat wants to merge 8 commits into
ceph:luminousfrom
rhcs-dashboard:wip-24788-luminous
Closed

epuertat wants to merge 8 commits into
ceph:luminousfrom
rhcs-dashboard:wip-24788-luminous

Conversation

@epuertat

@epuertat epuertat commented Jul 26, 2018 •

Copy link
Copy Markdown
Member

Source-PR: #20103
Fixes: http://tracker.ceph.com/issues/24788
Fixes: http://tracker.ceph.com/issues/34318

Conflict-solving summary:

  • ceph.spec.in:
    • Add make-check distro-conditional Python BuildRequires: CherryPy, tox, coverage and bcrypt.
    • Add ceph-mgr package Python Requires: bcrypt
  • install-deps.sh: Add ensure_min_npm_version method
  • qa/tasks/mgr/mgr_test_case.py: Pick setUpClass method from remote
  • qa/tasks/mgr/test_prometheus.py: Delete
  • src/pybind/CMakeLists.txt: Add add_subdirectory(mgr)
  • src/vstart.sh: Bring DASH_V2_URLS and dashboard_v2 config setting.

Ad-hoc additions:

  • Remove --use-wheel from dashboard CMakeLists.txt (src: s/pip --use-wheel/pip/ #21159): required for make check.
  • Disable RBD_FEATURE_OPERATIONS.
  • Update node to 6.0.0 (as a dependency failed).
  • Disable tslint error in password-button component.

Note for reviewers:
Given the size of this review, in order to ease the review process, please just focus on the manually merged files:

Changes required for this PR:

@epuertat epuertat added this to the luminous milestone Jul 26, 2018
@epuertat epuertat self-assigned this Jul 26, 2018
@epuertat
epuertat force-pushed the wip-24788-luminous branch 2 times, most recently from 3393f36 to 92c56e4 Compare August 2, 2018 16:44
@epuertat epuertat changed the title luminous: dashboard_v2: feature parity with dashboard_v1 luminous: mgr/dashboard_v2: Initial submission of a web-based management UI (replacement for the existing dashboard) Aug 3, 2018
@epuertat
epuertat force-pushed the wip-24788-luminous branch 3 times, most recently from ad765a9 to 230ced2 Compare August 8, 2018 06:18
@epuertat epuertat added needs-qa and removed DNM labels Aug 9, 2018
@epuertat

epuertat commented Aug 9, 2018 •

Copy link
Copy Markdown
Member Author

@epuertat epuertat closed this Aug 29, 2018
@epuertat
epuertat deleted the wip-24788-luminous branch August 29, 2018 15:37
@epuertat
epuertat restored the wip-24788-luminous branch August 29, 2018 15:39
@epuertat epuertat reopened this Aug 29, 2018
@epuertat

Copy link
Copy Markdown
Member Author

jenkins test docs

@epuertat epuertat changed the title luminous: mgr/dashboard_v2: 1 - Initial submission of a web-based management UI (replacement for the existing dashboard) luminous: mgr/dashboard_v2: #1 - Initial submission of a web-based management UI (replacement for the existing dashboard) Aug 29, 2018
@smithfarm
smithfarm requested a review from LenzGr September 11, 2018 15:50
@tchaikov

Copy link
Copy Markdown
Contributor

@epuertat the change looks sane in general. only one concern, WITH_MGR_DASHBOARD_V2_FRONTEND is OFF in both ceph.spec.in and debian/rules. if dashboard is always disabled. how is the end user using the pre-built packages prepared by us supposed to use this feature?

@LenzGr

LenzGr commented Sep 18, 2018 •

Copy link
Copy Markdown
Contributor

if dashboard is always disabled. how is the end user using the pre-built packages prepared by us supposed to use this feature?

@tchaikov The Dashboard frontend code is usually built when the source tarball is created. Therefore there is no need to repeat that process during the packaging of the RPM and DEB packages, the previously built frontend assets are simply copied from the tarball into the packages.

@epuertat
epuertat force-pushed the wip-24788-luminous branch 3 times, most recently from 9f19ef5 to 184e85c Compare September 26, 2018 12:11
tchaikov and others added 5 commits October 1, 2018 10:10
Merge pull request ceph#20103 from openattic/wip-mgr-dashboard_v2

Reviewed-by: Nathan Cutler <[email protected]>
Reviewed-by: John Spray <[email protected]>
Reviewed-by: Kefu Chai <[email protected]>
(cherry picked from commit 23eb14d)
Signed-off-by: Ernesto Puerta <[email protected]>

Conflicts:
	ceph.spec.in
	install-deps.sh
	qa/tasks/mgr/mgr_test_case.py
	qa/tasks/mgr/test_prometheus.py
	src/pybind/CMakeLists.txt
	src/vstart.sh

Conflict-solving summary:
ceph.spec.in:
- Add make-check distro-conditional Python BuildRequires:
    CherryPy, tox, coverage and bcrypt.
- Add ceph-mgr package Python Requires:
    bcrypt

install-deps.sh
- Add ensure_min_npm_version

qa/tasks/mgr/mgr_test_case.py
- Pick setUpClass method from remote

qa/tasks/mgr/test_prometheus.py
- Delete

src/pybind/CMakeLists.txt
- Add add_subdirectory(mgr)

src/vstart.sh
- Bring DASH_V2_URLS and dashboard_v2 config setting.
Required for `make check` to build test deps. Taken from
a80cce4 (Luminous backport existed:
7a1bce2, but didn't include this file)

Signed-off-by: Ernesto Puerta <[email protected]>
Disable support for RBD_FEATURE_OPERATIONS in rbd controller (introduced
in PR: ceph#19903,
209f6fc)

Signed-off-by: Ernesto Puerta <[email protected]>
Jenkins make check error:
> ERROR:
> src/pybind/mgr/dashboard_v2/frontend/src/app/shared/directives/password-button.directive.ts[10, 3]
> In the class "PasswordButtonDirective", the directive input property
> "cdPasswordButton" should not be renamed. However, you should use an
> alias when the directive name is also an input property, and the
> directive name doesn't describe the property. In this last case, you
> can disable this rule with `tslint:disable-next-line:no-input-rename`

This class is naming an input parameter the same as the selector, and
then re-qualifying it as private (which is considered a rename). Fixed
with a tslint disable.

Signed-off-by: Ernesto Puerta <[email protected]>
Add rados handle to dashboard_v2 module, in the same way as it existed
for dashboard_v1. In master (366905f)
this handle was moved from the dashboard_v1 module to the parent
mgr_module.py. However, this backporting
(45c7170) caused a regression in
Luminous so it was reverted (66345a3).

Fixes: http://tracker.ceph.com/issues/25102
Linked-to: 366905f
Linked-to: 45c7170
Linked-to: 66345a3
Signed-off-by: Ernesto Puerta <[email protected]>
epuertat and others added 3 commits October 16, 2018 21:28
* add WITH_PYTHON2 option, so we can build python3 bindings only.
* change the default value of WITH_PYTHON3 option to "OFF", as the
option() command in cmake only allow the initial value to be "ON" or
"OFF". we could use a cached string for this option, but i think it
would be more explicit to continue using the option() command.
* fix the installation dir of "ceph_rest_api.py". please note, we still
have a *default* python version, which is specified by the last element
of ${py_vers}. for instance, ${PYTHON_VERSION} will be 3 if ${py_vers}
is 2;3. in this change, 2 is still the default python version, if both
WITH_PYTHON2 and WITH_PYTHON3 are enabled.

Signed-off-by: Kefu Chai <[email protected]>
(cherry picked from commit 8b21ba9)
Signed-off-by: Ernesto Puerta <[email protected]>
* add an option named "MGR_PYTHON_VERSION", so we can build ceph-mgr
  which use py3 for running plugins
* also drop the line to specify the "Python_ADDITIONAL_VERSIONS", because
  2.7 is listed by all the the FindPythonInterp and FindPythonLibs in
  cmake 2.8.12 and up.
* use ${MGR_PYTHON_EXECUTABLE} for holding the path to the python
  interpreter used by mgr. because this variable might be overwritten by
  "find_package(PythonInterp 2 REQUIRED)" when checking for building env
  of pybinding for python2.

Signed-off-by: Kefu Chai <[email protected]>
(cherry picked from commit 9e45eda)
Signed-off-by: Ernesto Puerta <[email protected]>

Conflicts:
      CMakeLists.txt: merge everything
      src/CMakeLists.txt: merge MGR_PYTHON_LIBRARIES only
@epuertat epuertat closed this Jan 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants