]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm/iscsi: simplify the dashboard check
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 23 Jul 2021 15:14:25 +0000 (11:14 -0400)
committerDimitri Savineau <dsavinea@redhat.com>
Fri, 23 Jul 2021 15:21:02 +0000 (11:21 -0400)
commita6808efca4535f10c5639ee0a6a517c110da3f44
tree656976b60c84984857ea6cd19a28ad7b013a3b0c
parent9054b1a7f776720c58c19c75cb609f26af3e69c7
mgr/cephadm/iscsi: simplify the dashboard check

We don't need to run an extra command (mgr module ls) to obtain the mgr
modules list since we already have this information in the mgr_map.
This workflow is already done for the monitoring stack or for configuring
the iscsi integration within the dashboard (during creation) via the
config_dashboard method.

The mgr_map is mocked in the tests with the dashboard module enabled so we
don't need _mon_command_mock_mgr_module_ls anymore.

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