Added a log message if the host is idle

This commit is contained in:
Anton Beloglazov 2012-10-05 15:48:09 +10:00
parent 4f78146851
commit 0f0bbd4cbe
2 changed files with 3 additions and 1 deletions

View File

@ -21,5 +21,6 @@ compute_hosts = common.parse_compute_hosts(config['compute_hosts'])
common.execute_on_hosts(
compute_hosts,
['cd openstack-neat',
['rm -f /etc/init.d/openstack-neat-*',
'cd openstack-neat',
'python2 setup.py install'])

View File

@ -212,6 +212,7 @@ def execute(config, state):
vm_cpu_mhz = cleanup_vm_data(vm_cpu_mhz, vm_ram.keys())
if not vm_cpu_mhz:
log.info('The host is idle')
return state
physical_cpu_mhz_total = int(state['physical_cpu_mhz_total'])