From 4917ef7a004f8f86234bde64f8431278475bafcb Mon Sep 17 00:00:00 2001 From: Rafal Lewandowski Date: Thu, 10 Oct 2024 12:17:00 +0200 Subject: [PATCH] Fix missing tss user in Ubuntu/Debian nova containers Closes-Bug: #2067050 Change-Id: Ife426c073048ff27bdfd9f3af30aaaab8c2e4497 (cherry picked from commit 757cf4c14723a598ef827c3dc83aec6c3ca05324) --- docker/nova/nova-compute/Dockerfile.j2 | 1 + docker/nova/nova-libvirt/Dockerfile.j2 | 1 + releasenotes/notes/fix_nova_tpm_user-98f56190196a00d2.yaml | 6 ++++++ 3 files changed, 8 insertions(+) create mode 100644 releasenotes/notes/fix_nova_tpm_user-98f56190196a00d2.yaml diff --git a/docker/nova/nova-compute/Dockerfile.j2 b/docker/nova/nova-compute/Dockerfile.j2 index d1df0318ef..f03f2973cf 100644 --- a/docker/nova/nova-compute/Dockerfile.j2 +++ b/docker/nova/nova-compute/Dockerfile.j2 @@ -75,6 +75,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build 'swtpm-tools', 'sysfsutils', 'targetcli-fb', + 'tpm2-tools', 'xfsprogs' ] %} diff --git a/docker/nova/nova-libvirt/Dockerfile.j2 b/docker/nova/nova-libvirt/Dockerfile.j2 index d8e05ee9b3..9e7e6d3afe 100644 --- a/docker/nova/nova-libvirt/Dockerfile.j2 +++ b/docker/nova/nova-libvirt/Dockerfile.j2 @@ -57,6 +57,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build 'sasl2-bin', 'swtpm', 'swtpm-tools', + 'tpm2-tools', 'trousers' ] %} diff --git a/releasenotes/notes/fix_nova_tpm_user-98f56190196a00d2.yaml b/releasenotes/notes/fix_nova_tpm_user-98f56190196a00d2.yaml new file mode 100644 index 0000000000..8aa98f96ad --- /dev/null +++ b/releasenotes/notes/fix_nova_tpm_user-98f56190196a00d2.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes missing tpm user for nova-compute and nova-libvirt containers + by adding tpm2-tools package to Ubuntu/Debian nova containers. + `LP#2067050 `__