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:
Reviewed: https:/ /review. opendev. org/c/openstack /charm- nova-cloud- controller/ +/881447 /opendev. org/openstack/ charm-nova- cloud-controlle r/commit/ d09ed28af0fb2a3 761452d6afa2f30 bd6020249e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/victoria
commit d09ed28af0fb2a3 761452d6afa2f30 bd6020249e
Author: Felipe Reyes <email address hidden>
Date: Fri Apr 21 19:36:01 2023 -0400
Update nova relations data on ha-relation-changed
When taking the nova-cloud- controller from single unit to full HA by nova_relation( ) function is only called on compute- relation- joined and config-changed, none of these hooks
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_
cloud-
are executed when scaling out the application.
This patch introduces a call to update_ nova_relation( ) on relation- changed.
ha-
Test case on an environment deployed with a single unit of cloud-controlle r:
nova-
export NOVA_CC_ VIP=10. 0.0.11 controller vip=$NOVA_CC_VIP
nova- cloud-controlle r-hacluster controller controller controller nova-cloud- controller- hacluster
juju config nova-cloud-
juju deploy --series jammy --channel 2.4/stable hacluster \
juju add-unit -n 2 nova-cloud-
juju deploy --series jammy memcached
juju add-relation memcached nova-cloud-
juju add-relation nova-cloud-
Change-Id: Ib08bf9b6e1ce2b 69be4d99ffe0726 b59d81f4bc9
Closes-Bug: #2002154