Use chelper generate_ha_relation_data for ha rel
Use the generate_ha_relation_data helper from charmhelpers to generate the data to send down the relation to the hacluster charm. This results in a few changes in behaviour: 1) The charm will no longer specify a nic name to bind the vip. This is because Pacemaker VIP resources are able to automatically detect and configure correct iface and netmask parameters based on local configuration of the unit. 2) The original iface named VIP resource will be stopped and deleted prior to the creation of the new short hash named VIP resource. Change-Id: I6c10762e4f3367684f19852d03d5e5b84cf37600
Showing
- charmhelpers/contrib/charmsupport/nrpe.py 14 additions, 9 deletionscharmhelpers/contrib/charmsupport/nrpe.py
- charmhelpers/contrib/openstack/amulet/deployment.py 2 additions, 1 deletioncharmhelpers/contrib/openstack/amulet/deployment.py
- charmhelpers/contrib/openstack/ha/utils.py 85 additions, 27 deletionscharmhelpers/contrib/openstack/ha/utils.py
- charmhelpers/contrib/openstack/utils.py 70 additions, 29 deletionscharmhelpers/contrib/openstack/utils.py
- charmhelpers/contrib/storage/linux/loopback.py 4 additions, 2 deletionscharmhelpers/contrib/storage/linux/loopback.py
- hooks/ceilometer_hooks.py 11 additions, 73 deletionshooks/ceilometer_hooks.py
- unit_tests/test_ceilometer_hooks.py 5 additions, 80 deletionsunit_tests/test_ceilometer_hooks.py
Loading
Please register or sign in to comment