]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: ECP modal enhanced validation
authorStephan Müller <smueller@suse.com>
Tue, 7 Apr 2020 14:08:40 +0000 (16:08 +0200)
committerStephan Müller <smueller@suse.com>
Tue, 28 Apr 2020 15:45:28 +0000 (17:45 +0200)
commit5da7c0259735c56a722f7671e6c16d6a1746a5ba
tree780789ce85719394dd746a124e6360360fc8f04a
parent94a32d1a12e6fdfb31262a40fe6f210fe2c4c958
mgr/dashboard: ECP modal enhanced validation

New validations with meaningful error messages:
* For all plugins
  * k + m <= OSDs that are available
  * k > 1
* For LRC
  * Display calculation factor for k (always)
  * Show error calculation for k is not met (also shows calculation)
  * Display number of groups for l (always)
  * Show error if calculation for l is not met (also shows calculation)
* For SHEC
  * m <= k
  * c <= m

Fixes: https://tracker.ceph.com/issues/44621
Signed-off-by: Stephan Müller <smueller@suse.com>
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