]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Use right size in pool form
authorStephan Müller <smueller@suse.com>
Mon, 4 May 2020 12:45:52 +0000 (14:45 +0200)
committerStephan Müller <smueller@suse.com>
Tue, 2 Jun 2020 08:38:06 +0000 (10:38 +0200)
commitc76926bcd2fc9ed737b7848239b814f7b75fddc9
treeead6adabb4a9437aa0745e68740733a6dcf180e2
parentaf75c4e0cdb62c98bf00185ebd3abf8cba7371af
mgr/dashboard: Use right size in pool form

Currently the max size is determined by the number of OSDs, which is
compared with the maximum of the current crush rule.

The problem with that is, that this is wrong for every crush rule that
doesn't have OSDs as failure domain and that don't have the root of the
cluster set as root of the crush rule.

Now the crush map will be used to determine how many failure domains are
really available in the cluster and how many can really be used in the
end. This number now defines the maximum size you can enter.

The crush detail view will now the new attribute usable_size and hide
the redundant information steps, ruleset, type and rule_name.

Fixes: https://tracker.ceph.com/issues/44620
Signed-off-by: Stephan Müller <smueller@suse.com>
qa/tasks/mgr/dashboard/test_pool.py
src/pybind/mgr/dashboard/controllers/pool.py
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/crush-rule.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/models/pool-form-info.ts