[v2] Fix migration across nova-compute apps using ceph
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.
Reviewed: https:/ /review. opendev. org/c/openstack /charm- nova-compute/ +/911153 /opendev. org/openstack/ charm-nova- compute/ commit/ 810d4b0fbac967d 47ff793cc02f87d a37cb5b578
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/yoga
commit 810d4b0fbac967d 47ff793cc02f87d a37cb5b578
Author: Rodrigo Barbieri <email address hidden>
Date: Fri Oct 6 10:24:48 2023 -0300
[v2] Fix migration across nova-compute apps using ceph
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 compute- ceph-auth- c91ce26f' , a unique name common to
'nova-
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 /review. opendev. org/896155
[2] https:/
Closes-bug: #2028559
Related-bug: #2037003
Func-Test-Pr: https:/ /github. com/openstack- charmers/ zaza-openstack- tests/pull/ 1190
Change-Id: I1ae12d787a1f8e 7761ca06b5a8004 9c1c62e9e90 c27648b30f3b245 32378a33a1) c67d4934cf69386 9c9c03b1e4) 28e6a0f05cb2ae0 a8ce25b5e6) d6306b76494fdbd 1abd9d8471)
(cherry picked from commit 650f3a5d511690e
(cherry picked from commit 28233f9a943f9c6
(cherry picked from commit ecaf8010fc6ee2e
(cherry picked from commit 8c3549d828c5ba0