Revision ed008420
b/lib/backend.py | ||
---|---|---|
375 | 375 |
except errors.OpExecError: |
376 | 376 |
logging.exception("Error while processing ssh files") |
377 | 377 |
|
378 |
try: |
|
379 |
utils.RemoveFile(constants.HMAC_CLUSTER_KEY) |
|
380 |
utils.RemoveFile(constants.RAPI_CERT_FILE) |
|
381 |
utils.RemoveFile(constants.SSL_CERT_FILE) |
|
382 |
except: |
|
383 |
logging.exception("Error while removing cluster secrets") |
|
384 |
|
|
385 |
confd_pid = utils.ReadPidFile(utils.DaemonPidFileName(constants.CONFD)) |
|
386 |
|
|
387 |
if confd_pid: |
|
388 |
utils.KillProcess(confd_pid, timeout=2) |
|
389 |
|
|
378 | 390 |
# Raise a custom exception (handled in ganeti-noded) |
379 | 391 |
raise errors.QuitGanetiException(True, 'Shutdown scheduled') |
380 | 392 |
|
Also available in: Unified diff