ganeti-noded: Create LOCK_DIR if missing
authorGuido Trotter <ultrotter@google.com>
Wed, 11 Feb 2009 10:20:00 +0000 (10:20 +0000)
committerGuido Trotter <ultrotter@google.com>
Wed, 11 Feb 2009 10:20:00 +0000 (10:20 +0000)
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

daemons/ganeti-noded

index b587ede..0337dca 100755 (executable)
@@ -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):
       try: