]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerSebastian Wagner <sebastian.wagner@suse.com>
Mon, 4 May 2020 16:03:02 +0000 (18:03 +0200)
commitc76581493c4a2ce1ca89fccdbb63a7d92cf190b2
tree4d557cd952941832b8ee394da3bdaaf77f218ef9
parent30316646a05c661cfc984264821b533024ca28cc
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>
(cherry picked from commit d3de8697e6d389c514d26f5eb62675ac061a56c6)
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/tests/test_cephadm.py