if metadata_pool_exists:
log.info("Metadata pool already exists, skipping")
else:
- ceph_fs = Filesystem(ctx, config)
+ ceph_fs = Filesystem(ctx)
ceph_fs.create()
is_active_mds = lambda role: role.startswith('mds.') and not role.endswith('-s') and role.find('-s-') == -1
* Assume a single filesystem+cluster
* Assume a single MDS
"""
- def __init__(self, ctx, config):
+ def __init__(self, ctx):
self._ctx = ctx
- self._config = config
self.mds_ids = list(misc.all_roles_of_type(ctx.cluster, 'mds'))
if len(self.mds_ids) == 0:
raise RuntimeError("This task requires at least one MDS")
- first_mon = misc.get_first_mon(ctx, config)
+ first_mon = misc.get_first_mon(ctx, None)
(self.mon_remote,) = ctx.cluster.only(first_mon).remotes.iterkeys()
self.mon_manager = ceph_manager.CephManager(self.mon_remote, ctx=ctx, logger=log.getChild('ceph_manager'))
self.mds_daemons = dict([(mds_id, self._ctx.daemons.get_daemon('mds', mds_id)) for mds_id in self.mds_ids])
@contextlib.contextmanager
def task(ctx, config):
- fs = Filesystem(ctx, config)
+ fs = Filesystem(ctx)
mount_a = ctx.mounts.values()[0]
# Stash references on ctx so that we can easily debug in interactive mode
@contextlib.contextmanager
def task(ctx, config):
- fs = Filesystem(ctx, config)
+ fs = Filesystem(ctx)
# Pick out the clients we will use from the configuration
# =======================================================
- An outer ceph_fuse task with at least two clients
- That the clients are on a separate host to the MDS
"""
- fs = Filesystem(ctx, config)
+ fs = Filesystem(ctx)
# Pick out the clients we will use from the configuration
# =======================================================
@contextlib.contextmanager
def task(ctx, config):
- fs = Filesystem(ctx, config)
+ fs = Filesystem(ctx)
# Pick out the clients we will use from the configuration
# =======================================================
@contextlib.contextmanager
def task(ctx, config):
- fs = Filesystem(ctx, config)
+ fs = Filesystem(ctx)
# Pick out the clients we will use from the configuration
# =======================================================
except IndexError:
raise RuntimeError("This task requires at least one client")
- fs = Filesystem(ctx, config)
+ fs = Filesystem(ctx)
ctx.fs = fs
old_journal_version = JOURNAL_FORMAT_LEGACY
new_journal_version = JOURNAL_FORMAT_RESILIENT