]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Use of crush node class in ECP modal
authorStephan Müller <smueller@suse.com>
Tue, 7 Apr 2020 14:02:28 +0000 (16:02 +0200)
committerLaura Paduano <lpaduano@suse.com>
Wed, 20 May 2020 09:06:59 +0000 (11:06 +0200)
commitf22c2b26375f4b49a3aa7b9cd2ccc5f36b1a6f07
tree1afd9c4a888d992a3411b4ade7e1e19546a6c1b7
parenta22169bb98edc46af8cc3ac68b773947ec7d988e
mgr/dashboard: Use of crush node class in ECP modal

Now the crush node class preselects root, failure domain and device
class in the erasure code profile modal.

Like for crush rule, now also if you try to delete an used ECP you can't
and the info box will show you, what pool is using the profile.

Fixes: https://tracker.ceph.com/issues/44621
Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit 94a32d1a12e6fdfb31262a40fe6f210fe2c4c958)
qa/tasks/mgr/dashboard/test_erasure_code_profile.py
qa/tasks/mgr/dashboard/test_pool.py
src/pybind/mgr/dashboard/controllers/erasure_code_profile.py
src/pybind/mgr/dashboard/controllers/pool.py
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/erasure-code-profile-form/erasure-code-profile-form-modal.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/erasure-code-profile-form/erasure-code-profile-form-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/erasure-code-profile-form/erasure-code-profile-form-modal.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/models/pool-form-info.ts