Revision 46479775
b/daemons/ganeti-noded | ||
---|---|---|
754 | 754 |
for fname in (constants.SSL_CERT_FILE,): |
755 | 755 |
if not os.path.isfile(fname): |
756 | 756 |
print "config %s not there, will not run." % fname |
757 |
sys.exit(5)
|
|
757 |
sys.exit(constants.EXIT_NOTCLUSTER)
|
|
758 | 758 |
|
759 |
try: |
|
760 |
port = utils.GetNodeDaemonPort() |
|
761 |
except errors.ConfigurationError, err: |
|
762 |
print "Cluster configuration incomplete: '%s'" % str(err) |
|
763 |
sys.exit(5) |
|
759 |
port = utils.GetNodeDaemonPort() |
|
764 | 760 |
|
765 | 761 |
dirs = [(val, constants.RUN_DIRS_MODE) for val in constants.SUB_RUN_DIRS] |
766 | 762 |
dirs.append((constants.LOG_OS_DIR, 0750)) |
b/lib/constants.py | ||
---|---|---|
224 | 224 |
# common exit codes |
225 | 225 |
EXIT_SUCCESS = 0 |
226 | 226 |
EXIT_FAILURE = 1 |
227 |
EXIT_NOTCLUSTER = 5 |
|
227 | 228 |
EXIT_NOTMASTER = 11 |
228 | 229 |
EXIT_NODESETUP_ERROR = 12 |
229 | 230 |
EXIT_CONFIRMATION = 13 # need user confirmation |
Also available in: Unified diff