Files
charm-nova-compute-nvidia-vgpu/charmcraft.yaml
Edward Hope-Morley c87c8bf7b8 Add Nova mdev initialisation workaround
Earlier versions of Nova did not support re-initialisation
of domain GPU mdevs such that a node reboot rendered vms
unable to boot since their local uuid mismatched with
the new host uuids. This patch adds a workaround that
installs a systemd service to initialise all used mdevs to
match the host and update the Placement API resource
providers to match these allocations.

Closes-Bug: #1977933
Change-Id: I902c18895679737c4a9dc20b98affdc98af33659
Signed-off-by: Edward Hope-Morley <edward.hope-morley@canonical.com>
2025-09-23 19:01:13 +01:00

36 lines
676 B
YAML

type: charm
parts:
charm:
after:
- update-certificates
charm-python-packages:
# NOTE(lourot): see
# * https://github.com/canonical/charmcraft/issues/551
- setuptools
build-packages:
- git
update-certificates:
plugin: nil
# See https://github.com/canonical/charmcraft/issues/658
override-build: |
apt update
apt install -y ca-certificates
update-ca-certificates
base: ubuntu@22.04
platforms:
amd64:
build-on: amd64
build-for: amd64
arm64:
build-on: arm64
build-for: arm64
ppc64el:
build-on: ppc64el
build-for: ppc64el
s390x:
build-on: s390x
build-for: s390x