]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: Fix 500 error while exiting out of maintenance
authorNizamudeen A <nia@redhat.com>
Tue, 15 Jun 2021 08:47:58 +0000 (14:17 +0530)
committerNizamudeen A <nia@redhat.com>
Wed, 16 Jun 2021 21:14:46 +0000 (02:44 +0530)
commitea89b60e3f5e73a653eebf5cdcc3227acb7b2e62
tree8399972c9f8bec7caeba6e02940488f3744019a5
parent61976503f79bdba560b7dd1ea92049f1e4c50bbf
mgr/dashboard: Fix 500 error while exiting out of maintenance

When you add a host in maintenance mode and then exit the maintenance
mode, a 500 server error will popup which will interrupt the whole
exit maintenance process and leave the host in an unknown/offline state.
It happened when I was setting the status of the host through the
HostSpec(). With this change, I am using the enter_maintenance api of
the orch to enable the maintenance.

Fixes: https://tracker.ceph.com/issues/51218
Signed-off-by: Nizamudeen A <nia@redhat.com>
qa/tasks/mgr/dashboard/test_host.py
src/pybind/mgr/dashboard/controllers/host.py
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-form/host-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/host.service.ts
src/pybind/mgr/dashboard/openapi.yaml
src/pybind/mgr/dashboard/services/orchestrator.py
src/pybind/mgr/dashboard/tests/test_host.py