authorize-migration-keys (eucalyptus-4.4.1) | : | authorize-migration-keys (eucalyptus-4.4.2) | ||
---|---|---|---|---|
skipping to change at line 338 | skipping to change at line 338 | |||
# situations. | # situations. | |||
# | # | |||
connected = False | connected = False | |||
for i in range(0,MAX_RETRIES): | for i in range(0,MAX_RETRIES): | |||
try: | try: | |||
subprocess.check_call(['virsh','connect'],stdin=open('/dev/null' ), stdout=open('/dev/null','w')) | subprocess.check_call(['virsh','connect'],stdin=open('/dev/null' ), stdout=open('/dev/null','w')) | |||
connected = True | connected = True | |||
break | break | |||
except CalledProcessError as e: | except CalledProcessError as e: | |||
logger.debug("Unable to connect to hypervisor on attempt number: [%d]", i+1) | logger.debug("Unable to connect to hypervisor on attempt number: [%d]", i+1) | |||
sleep(1) | time.sleep(1) | |||
if not connected: | if not connected: | |||
logger.error("Error, unable to connect to hypervisor after %d second s",MAX_RETRIES) | logger.error("Error, unable to connect to hypervisor after %d second s",MAX_RETRIES) | |||
sys.exit(1) | sys.exit(1) | |||
elif not config_updated: | elif not config_updated: | |||
logger.debug("No configuration change, will not restart libvirtd") | logger.debug("No configuration change, will not restart libvirtd") | |||
else: | else: | |||
logger.debug("Configuration file changed, libvirtd restart not requested ") | logger.debug("Configuration file changed, libvirtd restart not requested ") | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |