Use CRM supplied hostnames instead of private-address.

This commit is contained in:
Adam Gandelman
2013-01-24 14:30:48 -08:00
parent 809a18d0f5
commit e78d1c4f9c
3 changed files with 23 additions and 14 deletions

View File

@@ -311,13 +311,13 @@ def configure_cluster():
'MAAS @ %s.' % url)
sys.exit(1)
hosts = get_cluster_nodes()
for host in hosts:
rsc, constraint = pcmk.maas_stonith_primitive(nodes, host)
cluster_nodes = pcmk.list_nodes()
for node in cluster_nodes:
rsc, constraint = pcmk.maas_stonith_primitive(nodes, node)
if not rsc:
utils.juju_log('ERROR',
'Failed to determine STONITH primitive for node'\
' %s' % host)
' %s' % node)
cmd = 'crm -F configure %s' % rsc
pcmk.commit(cmd)
if constraint: