]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: Check for pool existance for iscsi And NFS
authorMatthew Oliver <moliver@suse.com>
Thu, 23 Apr 2020 01:07:19 +0000 (11:07 +1000)
committerMatthew Oliver <moliver@suse.com>
Fri, 24 Apr 2020 00:44:54 +0000 (00:44 +0000)
commitd3de8697e6d389c514d26f5eb62675ac061a56c6
tree9afc02429b7ec08248c9a8cd12f79a6173c70663
parente9130bcf0b9b514695f845e7ae5703b902db6bb3
cephadm: Check for pool existance for iscsi And NFS

Currently both iscsi and NFS require pools to be specified when they are
deployed. However, we don't actaully check these pools exist. Leading to
broken containers.

This patch uses the rados client that is part of the mgrmodule to check
that the specified pool exists. As we need to check in 2 different
daemons, a helper method:

   def _check_pool_exists(self, pool, service_name):

was added to `cephadm/module.py`.

Fixes: https://tracker.ceph.com/issues/45161
Signed-off-by: Matthew Oliver <moliver@suse.com>
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/tests/test_cephadm.py