As the manpage says, and the code does, self.op.file_storage_dir is an additional relative path under the cluster file storage dir. As such it should not be absolute.
Signed-off-by: Guido Trotter <[email protected]> --- lib/cmdlib.py | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 8b2374c..ff887b9 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -7094,10 +7094,6 @@ class LUInstanceCreate(LogicalUnit): raise errors.OpPrereqError("Invalid file driver name '%s'" % self.op.file_driver, errors.ECODE_INVAL) - if self.op.file_storage_dir and os.path.isabs(self.op.file_storage_dir): - raise errors.OpPrereqError("File storage directory path not absolute", - errors.ECODE_INVAL) - ### Node/iallocator related checks _CheckIAllocatorOrNode(self, "iallocator", "pnode") -- 1.7.5.4
