charm-cinder/hooks
David Ames f5b4750c40 Avoid shared-db change when using access-network
When the percona-cluster charm sets an access-network but the default
unit-get address is not on that network extra shared-db relations get
executed. This is specifically a problem when running upgrades and
trying to avoid API downtime.

The root cause is that the access-network is not checked until the
SharedDBContext is consulted. But then db_joined function will
change it back to the wrong ip on subsequent runs.

This change adds a check for access-network on the relation during
the db_joined function and pushes IP selection off to
get_relation_ip.

Charm helpers sync to pull in changes to get_relation_ip.

Change-Id: I5a78e9dc07c92b54e99e62e00ef6fe505cfa2fdb
Partial-bug: #1677647
2017-04-26 15:20:41 -07:00
..
charmhelpers Avoid shared-db change when using access-network 2017-04-26 15:20:41 -07:00
__init__.py Re-license charm as Apache-2.0 2016-06-28 12:09:16 +01:00
amqp-relation-broken Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
amqp-relation-changed Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
amqp-relation-departed added amqp-relation-departed hook to refresh hosts 2014-01-23 14:29:17 +01:00
amqp-relation-joined Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
backup-backend-relation-broken Add support for cinder-backup subordinate 2015-06-01 23:43:04 +01:00
backup-backend-relation-changed Add support for cinder-backup subordinate 2015-06-01 23:43:04 +01:00
backup-backend-relation-departed Add support for cinder-backup subordinate 2015-06-01 23:43:04 +01:00
backup-backend-relation-joined Add support for cinder-backup subordinate 2015-06-01 23:43:04 +01:00
ceph-relation-broken Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
ceph-relation-changed Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
ceph-relation-joined Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
cinder-volume-service Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
cinder-volume-service-relation-joined Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
cinder_contexts.py Fix alphanumeric comparisons for openstack and ubuntu releases 2017-03-28 16:38:05 +01:00
cinder_hooks.py Avoid shared-db change when using access-network 2017-04-26 15:20:41 -07:00
cinder_utils.py Fix alphanumeric comparisons for openstack and ubuntu releases 2017-03-28 16:38:05 +01:00
cluster-relation-changed Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
cluster-relation-departed Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
cluster-relation-joined adding cluster-relation-joined symlink 2014-10-01 18:12:34 +01:00
config-changed Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
ha-relation-changed Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
ha-relation-joined Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
identity-service-relation-broken Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
identity-service-relation-changed Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
identity-service-relation-joined Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
image-service-relation-broken Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
image-service-relation-changed Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
install Install python dependencies early for CH ip.py 2016-07-18 09:45:17 -07:00
install.real Ensure python2 is installed before hook execution 2015-09-22 14:37:43 +01:00
nrpe-external-master-relation-changed [bradm] initial nrpe checks 2014-10-29 22:30:35 -05:00
nrpe-external-master-relation-joined [bradm] initial nrpe checks 2014-10-29 22:30:35 -05:00
pgsql-db-relation-broken fixing hooks 2014-03-31 12:44:19 +02:00
pgsql-db-relation-changed fixing hooks 2014-03-31 12:44:19 +02:00
pgsql-db-relation-joined fixing hooks 2014-03-31 12:44:19 +02:00
shared-db-relation-broken Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
shared-db-relation-changed Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
shared-db-relation-joined Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
start Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
stop Merging python-redux and havana work. 2013-10-17 14:48:08 -07:00
storage-backend-relation-broken First cut of multi-backend support 2014-01-23 16:40:59 +00:00
storage-backend-relation-changed First cut of multi-backend support 2014-01-23 16:40:59 +00:00
storage-backend-relation-departed First cut of multi-backend support 2014-01-23 16:40:59 +00:00
storage-backend-relation-joined First cut of multi-backend support 2014-01-23 16:40:59 +00:00
update-status Refactor to assess status after every hook execution, add update-status hook 2015-10-07 16:45:20 -07:00
upgrade-charm Cinder needs to install memcached on upgrade-charm 2017-02-16 08:33:41 -08:00