charm-nova-cloud-controller/hooks
Felipe Reyes 366df4c07e Update nova relations data on ha-relation-changed
When taking the nova-cloud-controller from single unit to full HA by
increasing the number of units from 1 to 3 and relating it to hacluster,
the data set on the cloud-compute relation is not updated, because the
update_nova_relation() function is only called on
cloud-compute-relation-joined and config-changed, none of these hooks
are executed when scaling out the application.

This patch introduces a call to update_nova_relation() on
ha-relation-changed.

Test case on an environment deployed with a single unit of
nova-cloud-controller:

    export NOVA_CC_VIP=10.0.0.11
    juju config nova-cloud-controller vip=$NOVA_CC_VIP
    juju deploy --series jammy --channel 2.4/stable hacluster \
        nova-cloud-controller-hacluster
    juju add-unit -n 2 nova-cloud-controller
    juju deploy --series jammy memcached
    juju add-relation memcached nova-cloud-controller
    juju add-relation nova-cloud-controller nova-cloud-controller-hacluster

Change-Id: Ib08bf9b6e1ce2b69be4d99ffe0726b59d81f4bc9
Closes-Bug: #2002154
2023-04-24 21:22:22 -04:00
..
__init__.py Re-license charm as Apache-2.0 2016-07-03 16:38:27 +00:00
amqp-cell-relation-broken Add support for cells v2 2018-10-05 11:50:21 +00:00
amqp-cell-relation-changed Add support for cells v2 2018-10-05 11:50:21 +00:00
amqp-cell-relation-joined Add support for cells v2 2018-10-05 11:50:21 +00:00
amqp-relation-broken Add generic relation broken hook. 2013-08-20 12:06:15 -07:00
amqp-relation-changed Re-add symlinks. 2013-08-01 20:45:08 -07:00
amqp-relation-departed added amqp relation departed 2014-01-30 12:26:36 +01:00
amqp-relation-joined Re-add symlinks. 2013-08-01 20:45:08 -07:00
cell-relation-broken Rename cell relation to avoid amulet breakage 2014-05-13 16:44:49 +01:00
cell-relation-changed Rename cell relation to avoid amulet breakage 2014-05-13 16:44:49 +01:00
cell-relation-joined Rename cell relation to avoid amulet breakage 2014-05-13 16:44:49 +01:00
certificates-relation-changed Add support for tls-certificates relation 2018-05-15 14:56:53 +00:00
certificates-relation-departed Add support for tls-certificates relation 2018-05-15 14:56:53 +00:00
certificates-relation-joined Add support for tls-certificates relation 2018-05-15 14:56:53 +00:00
cinder-volume-service-relation-broken Add generic relation broken hook. 2013-08-20 12:06:15 -07:00
cinder-volume-service-relation-changed Re-add symlinks. 2013-08-01 20:45:08 -07:00
cinder-volume-service-relation-joined Re-add symlinks. 2013-08-01 20:45:08 -07:00
cloud-compute-relation-changed Re-add symlinks. 2013-08-01 20:45:08 -07:00
cloud-compute-relation-departed Add compute departed hook, ensure proper scrubbing of authorized_keys on compute depart. 2013-09-05 17:28:22 -07:00
cloud-compute-relation-joined Re-add symlinks. 2013-08-01 20:45:08 -07:00
cluster-relation-changed Re-add symlinks. 2013-08-01 20:45:08 -07:00
cluster-relation-departed Re-add symlinks. 2013-08-01 20:45:08 -07:00
cluster-relation-joined Add cluster-relation-joined hook to ensure that internal address network is used if connected 2014-09-26 12:29:28 +01:00
config-changed Re-add symlinks. 2013-08-01 20:45:08 -07:00
ha-relation-changed Re-add symlinks. 2013-08-01 20:45:08 -07:00
ha-relation-joined Re-add symlinks. 2013-08-01 20:45:08 -07:00
identity-service-relation-broken Add generic relation broken hook. 2013-08-20 12:06:15 -07:00
identity-service-relation-changed Re-add symlinks. 2013-08-01 20:45:08 -07:00
identity-service-relation-joined Re-add symlinks. 2013-08-01 20:45:08 -07:00
image-service-relation-broken Add generic relation broken hook. 2013-08-20 12:06:15 -07:00
image-service-relation-changed Re-add symlinks. 2013-08-01 20:45:08 -07:00
image-service-relation-joined Re-add symlinks. 2013-08-01 20:45:08 -07:00
install Update pre-install hooks to fail on error 2019-02-08 15:55:43 -06:00
install.real Ensure python2 is installed before hook execution 2015-09-22 14:52:12 +01:00
leader-settings-changed Enable leader-settings-changed 2015-03-13 11:51:30 +00:00
memcache-relation-broken Renamed relation from 'cache' to 'memcache' 2014-11-20 13:51:44 -03:00
memcache-relation-changed Renamed relation from 'cache' to 'memcache' 2014-11-20 13:51:44 -03:00
memcache-relation-departed Renamed relation from 'cache' to 'memcache' 2014-11-20 13:51:44 -03:00
memcache-relation-joined Renamed relation from 'cache' to 'memcache' 2014-11-20 13:51:44 -03:00
neutron-api-relation-broken Move NEUTRON_CONF out of the way which as the benefit of triggering a neutron restart on api relation break 2014-05-15 14:58:51 +00:00
neutron-api-relation-changed Added neutron-api hooks 2014-05-09 19:48:32 +00:00
neutron-api-relation-departed Added neutron-api hooks 2014-05-09 19:48:32 +00:00
neutron-api-relation-joined Added neutron-api hooks 2014-05-09 19:48:32 +00:00
nova_cc_common.py Remove `nova-consoleauth` package as of Train 2019-10-17 12:29:40 +02:00
nova_cc_context.py Add support for HAProxy L7 checks 2023-03-29 09:44:24 -03:00
nova_cc_hooks.py Update nova relations data on ha-relation-changed 2023-04-24 21:22:22 -04:00
nova_cc_utils.py In nova_cc_utils.py:resolve_hosts_for: .append -> .add 2022-10-17 11:12:44 +01:00
nova-cell-api-relation-broken Add support for cells v2 2018-10-05 11:50:21 +00:00
nova-cell-api-relation-changed Add support for cells v2 2018-10-05 11:50:21 +00:00
nova-cell-api-relation-joined Add support for cells v2 2018-10-05 11:50:21 +00:00
nova-vmware-relation-changed Updates, checkin link.s 2013-10-10 09:04:40 -07:00
nova-vmware-relation-joined Updates, checkin link.s 2013-10-10 09:04:40 -07:00
nova-volume-service-relation-broken Add generic relation broken hook. 2013-08-20 12:06:15 -07:00
nova-volume-service-relation-changed Re-add symlinks. 2013-08-01 20:45:08 -07:00
nova-volume-service-relation-joined Re-add symlinks. 2013-08-01 20:45:08 -07:00
nrpe-external-master-relation-changed [bradm] initial nrpe checks 2014-10-29 22:30:36 -05:00
nrpe-external-master-relation-joined [bradm] initial nrpe checks 2014-10-29 22:30:36 -05:00
placement-relation-changed Disable nova placement API 2019-10-11 20:00:38 +00:00
placement-relation-joined Disable nova placement API 2019-10-11 20:00:38 +00:00
post-series-upgrade Series Upgrade 2018-09-19 07:56:06 +00:00
pre-series-upgrade Series Upgrade 2018-09-19 07:56:06 +00:00
quantum-network-service-relation-broken Add generic relation broken hook. 2013-08-20 12:06:15 -07:00
quantum-network-service-relation-joined Re-add symlinks. 2013-08-01 20:45:08 -07:00
shared-db-cell-relation-broken Add support for cells v2 2018-10-05 11:50:21 +00:00
shared-db-cell-relation-changed Add support for cells v2 2018-10-05 11:50:21 +00:00
shared-db-cell-relation-joined Add support for cells v2 2018-10-05 11:50:21 +00:00
shared-db-relation-broken Add generic relation broken hook. 2013-08-20 12:06:15 -07:00
shared-db-relation-changed Re-add symlinks. 2013-08-01 20:45:08 -07:00
shared-db-relation-joined Re-add symlinks. 2013-08-01 20:45:08 -07:00
start Re-add symlinks. 2013-08-01 20:45:08 -07:00
stop Re-add symlinks. 2013-08-01 20:45:08 -07:00
update-status Add hardening support 2016-03-31 19:30:33 +01:00
upgrade-charm Re-add symlinks. 2013-08-01 20:45:08 -07:00