Added a log message if the host is idle
This commit is contained in:
parent
4f78146851
commit
0f0bbd4cbe
@ -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'])
|
||||
|
@ -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'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user