Revision 9769bb78 daemons/ganeti-watcher
b/daemons/ganeti-watcher | ||
---|---|---|
701 | 701 |
|
702 | 702 |
# If RAPI isn't responding to queries, try one restart. |
703 | 703 |
logging.debug("Attempting to talk with RAPI.") |
704 |
if not IsRapiResponding(constants.LOCALHOST_IP_ADDRESS):
|
|
704 |
if not IsRapiResponding(constants.IP4_ADDRESS_LOCALHOST):
|
|
705 | 705 |
logging.warning("Couldn't get answer from Ganeti RAPI daemon." |
706 | 706 |
" Restarting Ganeti RAPI.") |
707 | 707 |
utils.StopDaemon(constants.RAPI) |
708 | 708 |
utils.EnsureDaemon(constants.RAPI) |
709 | 709 |
logging.debug("Second attempt to talk with RAPI") |
710 |
if not IsRapiResponding(constants.LOCALHOST_IP_ADDRESS):
|
|
710 |
if not IsRapiResponding(constants.IP4_ADDRESS_LOCALHOST):
|
|
711 | 711 |
logging.fatal("RAPI is not responding. Please investigate.") |
712 | 712 |
logging.debug("Successfully talked to RAPI.") |
713 | 713 |
|
Also available in: Unified diff