Repository navigation
Conversation
3393f36 to
92c56e4
Compare
ad765a9 to
230ced2
Compare
|
|
|
jenkins test docs |
bf88752 to
129ab82
Compare
|
@epuertat the change looks sane in general. only one concern, |
@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. |
9f19ef5 to
184e85c
Compare
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]>
184e85c to
30be7ac
Compare
30be7ac to
c8cd0f9
Compare
Signed-off-by: Ernesto Puerta <[email protected]>
* 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
c8cd0f9 to
6654ead
Compare
Source-PR: #20103
Fixes: http://tracker.ceph.com/issues/24788
Fixes: http://tracker.ceph.com/issues/34318
Conflict-solving summary:
ceph.spec.in:BuildRequires: CherryPy, tox, coverage and bcrypt.Requires: bcryptinstall-deps.sh: Addensure_min_npm_versionmethodqa/tasks/mgr/mgr_test_case.py: PicksetUpClassmethod from remoteqa/tasks/mgr/test_prometheus.py: Deletesrc/pybind/CMakeLists.txt: Addadd_subdirectory(mgr)src/vstart.sh: BringDASH_V2_URLSand dashboard_v2 config setting.Ad-hoc additions:
--use-wheelfrom dashboardCMakeLists.txt(src: s/pip --use-wheel/pip/ #21159): required formake check.RBD_FEATURE_OPERATIONS.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: