charm-nova-compute:stable/2024.1

Last commit made on 2024-04-23
Get this branch:
git clone -b stable/2024.1 https://git.launchpad.net/charm-nova-compute

Branch merges

Branch information

Name:
stable/2024.1
Repository:
lp:charm-nova-compute

Recent commits

b57593f... by Marcin Wilk

Add support for the 'cpu_models' option in nova.conf

Since OpenStack Train release the 'cpu_models' config option
has superseded the 'cpu_model' config option in the nova.conf.
This patch adds support for the new 'cpu_models' allowing a user
to provide a comma separated list of supported, named CPU models.

This patch also includes a unit test for the cpu_mode='custom'.

Closes-bug: #2025914
Change-Id: I30328abc07d3304f1bfb67c81360fb5229214c97

31df8c6... by Nikolay Vinogradov

Add storage-backend subordinate relation

Implement initial support for container-scoped storage-backend
relation to integrate nova-compute with storage providers.

Transition to blocked state if multiple storage backend
relations are connected

Change-Id: I03e67731df0263887d2d0f671750f420d6e62c1c

f3bf6be... by Alex Kavanagh

Updates for caracal testing support

These updates, on the master branch, are to support testing the caracal
packages and support of the charms for caracal. They do NOT lock the charms
down, and don't change the testing branches to stable branches.

Change-Id: Ib7947ab8dfd4c4b18c482f4df1a7c6f5b5e3756f

ab35c61... by Zuul <email address hidden>

Merge "AppArmor policy update for NVMeoF"

650f3a5... by Rodrigo Barbieri

[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.

This patch also includes the charmhelpers sync
from PR: #840

[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/1149

Change-Id: I1ae12d787a1f8e7761ca06b5a80049c1c62e9e90

0f9c730... by Felipe Reyes

AppArmor policy update for NVMeoF

When using NVMeoF feature with nova-compute apparmor in enforce
mode, nova-compute is denied from running /usr/sbin/nvme and
/usr/sbin/blkid, and reading /etc/nvme/hostnqn.

Change-Id: Ia23fbf341d5b7ad469337d8a0c65c18ec519a891
Closes-Bug: #2039161

4d6f4c0... by DUFOUR Olivier

Update apparmor profile for nova-compute

Nova-compute uses ssh and scp commands extensively and this
patch allows the process to read the configuration too in
/etc/ssh/ssh_config.d/ directory.

Closes-Bug: #2044983
Change-Id: I336ce64d493c549096d0b8706996e0f17a2728fb

d90d6ee... by Alex Kavanagh

Improve platform mocking

Patch out charmhelpers.osplatform.get_platform() and
charmhelpers.core.host.lsb_release() globally in the unit tests to
insulate the unit tests from the platform that the unit tests are being
run on.

Change-Id: I33d473d83a7c8f4f23840b6b6bcf153ed423ccdc

e70f228... by Zuul <email address hidden>

Merge "Revert "Fix migration across apps when using VMs created from image""

11845c7... by Rodrigo Barbieri

Revert "Fix migration across apps when using VMs created from image"

This reverts commit c3c2cf0349c086dad7f23b180c3ee9ea0f865e8f.

Reason for revert: This introduces an undesired behavior when scaling-out that needs to be addressed in a complementary patch.

Change-Id: I21c127aa565e489ba4d93a1efc8ddba63ef32e87