33 actions.append(list_clusters)
35 actions.append(list_admin_vms)
36 actions.append(list_nodes)
39 actions.append({
'type':
'pyscript',
40 'description':
'Compare number of dnsmasq processes with virtual machines on node',
44 for node in stored_results['nodes']:
45 if node['state'] == 1:
46 p = subprocess.Popen('ssh cc1@%s "python /opt/cc1/conf/elasticip.py list_redirections"' % node['address'], shell=True, stdout=subprocess.PIPE)
47 node_info = int(p.stdout.readlines())
49 for vm in stored_results['admin_vms']:
50 if vm['node'] == node['address']:
51 vms_on_node.append(vm)
53 if len(vms_on_node) != dnsmasq:
55 log = log + "Node %s has inconsistent networking\\n" % node["address"]