]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix adding/removing host errors
authorKiefer Chang <kiefer.chang@suse.com>
Wed, 18 Mar 2020 07:21:35 +0000 (15:21 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Wed, 18 Mar 2020 12:10:28 +0000 (20:10 +0800)
commit4f2db7e60e7ef761d84b67b6d5d21933e7caec40
treef547d9a601235f16e5c54b4bbb6f07521b170d3f
parent126c4446ac03fa86fbcefe1e168dd0f210dc581a
mgr/dashboard: fix adding/removing host errors

Send a HostSpec instance to the Orchestrator when adding a host.

Also, to be consistent with other components:
- Reword from Add/Remove hosts to Create/Delete hosts
- Display a modal when there is no Orchestrator backend enabled

Fixes: https://tracker.ceph.com/issues/44664
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
src/pybind/mgr/dashboard/controllers/host.py
src/pybind/mgr/dashboard/frontend/src/app/app-routing.module.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-form/host-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/host.service.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-message.service.ts
src/pybind/mgr/dashboard/services/exception.py
src/pybind/mgr/dashboard/services/orchestrator.py