return 0, "", "NFS-Ganesha User Config already exists"
rados_obj.write_obj(nfs_config, self._get_user_conf_obj_name(cluster_id),
self._get_common_conf_obj_name(cluster_id))
+ log.debug("Successfully saved %s's user config: \n %s", cluster_id, nfs_config)
restart_nfs_service(self.mgr, cluster_id)
return 0, "NFS-Ganesha Config Set Successfully", ""
raise ClusterNotFound()
if not config_obj:
# Return after creating empty common config object
return
- log.debug("write configuration into rados object "
- f"{self.pool}/{self.namespace}/{obj}:\n{conf_block}")
+ log.debug("write configuration into rados object %s/%s/%s",
+ self.pool, self.namespace, obj)
# Add created obj url to common config obj
ioctx.append(config_obj, GaneshaConfParser.write_block(
with self.mgr.rados.open_ioctx(self.pool) as ioctx:
ioctx.set_namespace(self.namespace)
ioctx.write_full(obj, conf_block.encode('utf-8'))
- log.debug("write configuration into rados object "
- f"{self.pool}/{self.namespace}/{obj}:\n{conf_block}")
+ log.debug("write configuration into rados object %s/%s/%s",
+ self.pool, self.namespace, obj)
ExportMgr._check_rados_notify(ioctx, config_obj)
log.debug(f"Update export {obj} in {config_obj}")
raw_config = obj.read(size)
raw_config = raw_config.decode("utf-8")
log.debug("read export configuration from rados "
- "object %s/%s/%s:\n%s", self.rados_pool,
- rados_namespace, obj.key, raw_config)
+ "object %s/%s/%s", self.rados_pool,
+ rados_namespace, obj.key)
self.export_conf_objs.append(Export.from_export_block(
GaneshaConfParser(raw_config).parse()[0], rados_namespace))
"clients": clients,
}
)
+ log.debug("creating cephfs export %s", export)
self._create_export_user(export)
self._save_export(cluster_id, export)
result = {
"clients": clients,
}
)
+ log.debug("creating rgw export %s", export)
self._create_export_user(export)
self._save_export(cluster_id, export)
result = {