Commit f2ffd244 authored by Guido Trotter's avatar Guido Trotter
Browse files

ganeti-noded: Create LOCK_DIR if missing

We need this directory for locks, so if for any reason it's not there
we'll create it. The permissions are the standard /var/lock permissions.

Reviewed-by: iustinp
parent ccd905ac
......@@ -747,6 +747,7 @@ def EnsureRuntimeEnvironment():
dirs = [(val, constants.RUN_DIRS_MODE) for val in constants.SUB_RUN_DIRS]
dirs.append((constants.LOG_OS_DIR, 0750))
dirs.append((constants.LOCK_DIR, 1777))
for dir_name, dir_mode in dirs:
if not os.path.exists(dir_name):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment