810d4b0fba
This change reworks previous changes [1] and [2] that had been respectively reverted and abandoned. When using the config libvirt-image-backend=rbd, VMs created from image have their disk data stored in ceph instead of the compute node itself. When performing live-migrations, both nodes need to access the same ceph credentials to access the VM's disk in ceph, but this is currently not possible if the nodes involved pertain to different nova-compute charm apps. This patch changes app name sent to ceph to 'nova-compute-ceph-auth-c91ce26f', a unique name common to all nova-compute apps, allowing all nova-compute apps to use the same ceph auth. This change also ensures newly deployed nodes install the old credentials first on ceph-joined hook, and then supercedes it with the new credentials on ceph-changed hook, therefore also retaining the old credentials. [1] https://review.opendev.org/889642 [2] https://review.opendev.org/896155 Closes-bug: #2028559 Related-bug: #2037003 Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1190 Change-Id: I1ae12d787a1f8e7761ca06b5a80049c1c62e9e90 (cherry picked from commit |
||
---|---|---|
.. | ||
charmhelpers | ||
__init__.py | ||
amqp-relation-broken | ||
amqp-relation-changed | ||
amqp-relation-departed | ||
amqp-relation-joined | ||
ceph-access-relation-changed | ||
ceph-access-relation-joined | ||
ceph-relation-broken | ||
ceph-relation-changed | ||
ceph-relation-joined | ||
cloud-compute-relation-changed | ||
cloud-compute-relation-joined | ||
cloud-credentials-relation-changed | ||
cloud-credentials-relation-joined | ||
compute-peer-relation-joined | ||
config-changed | ||
ephemeral-backend-relation-broken | ||
ephemeral-backend-relation-changed | ||
ephemeral-device-storage-attached | ||
ephemeral-device-storage-detached | ||
image-service-relation-broken | ||
image-service-relation-changed | ||
install | ||
install.real | ||
ironic-api-relation-changed | ||
lxd-relation-changed | ||
lxd-relation-joined | ||
neutron-plugin-relation-changed | ||
neutron-plugin-relation-departed | ||
neutron-plugin-relation-joined | ||
nova_compute_context.py | ||
nova_compute_hooks.py | ||
nova_compute_utils.py | ||
nova-ceilometer-relation-changed | ||
nova-ceilometer-relation-joined | ||
nova-vgpu-relation-changed | ||
nova-vgpu-relation-joined | ||
nrpe-external-master-relation-changed | ||
nrpe-external-master-relation-joined | ||
post-series-upgrade | ||
pre-series-upgrade | ||
secrets-storage-relation-broken | ||
secrets-storage-relation-changed | ||
secrets-storage-relation-departed | ||
secrets-storage-relation-joined | ||
shared-db-relation-broken | ||
shared-db-relation-changed | ||
shared-db-relation-joined | ||
start | ||
stop | ||
storage.bootstrap | ||
storage.real | ||
update-status | ||
upgrade-charm | ||
upgrade-charm.real |