use the create option during instantiation

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
This commit is contained in:
Vasu Kulkarni 2017-01-10 15:43:12 -08:00
parent ebb02c8ef5
commit 2d4ed95f2b

View File

@ -403,9 +403,7 @@ def build_ceph_cluster(ctx, config):
if mds_nodes:
log.info('Configuring CephFS...')
ceph_fs = Filesystem(ctx)
if not ceph_fs.legacy_configured():
ceph_fs.create()
ceph_fs = Filesystem(ctx, create=True)
elif not config.get('only_mon'):
raise RuntimeError(
"The cluster is NOT operational due to insufficient OSDs")