Commit c7b46d59 authored by Iustin Pop's avatar Iustin Pop
Browse files

Handle missing init script at cluster init

This patch adds a check in the prereq of LUInitCluster for the existence
of the init script.  This allows a clean abort instead of a stack dump.

Based on a report by

Reviewed-by: ultrotter
parent cf5a8306
......@@ -611,6 +611,11 @@ class LUInitCluster(LogicalUnit):
if not os.path.exists(constants.NODE_INITD_SCRIPT):
raise errors.OpPrereqError("Missing init.d script '%s'. Please reinstall"
" or install the script manually." %
def Exec(self, feedback_fn):
"""Initialize the cluster.
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