]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm/iscsi: check if dashboard is enabled
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 7 Jul 2021 14:11:41 +0000 (10:11 -0400)
committerDimitri Savineau <dsavinea@redhat.com>
Wed, 14 Jul 2021 14:02:22 +0000 (10:02 -0400)
commit1b83aea8b0f5156f3e8bf0c3e33853fb4557f888
treeaeb75515bb1e059cb3104f8ee7ae00ab051d9419
parent89caa6269288edd00acebaf9735768d3655b7933
mgr/cephadm/iscsi: check if dashboard is enabled

When the mgr dashboard module isn't enabled then the iSCSI service deletion
is stuck and the cluster state goes ERR.
The `ceph dashboard` commands aren't available when the mgr dashboard module
isnt' enabled.

Closes: https://tracker.ceph.com/issues/51546
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
src/pybind/mgr/cephadm/services/iscsi.py
src/pybind/mgr/cephadm/tests/test_cephadm.py