Add xfsprogs to nova-compute

xfsprogs is required for formatting XFS ephemeral disk partitions
when format=xfs is specified as instance create failes with
'mkfs.xfs: No such file or directory' due to missing xfsprogs
package in the nova-compute container.

Closes-Bug: #1850610

Conflicts:
      docker/nova/nova-compute/Dockerfile.j2

Change-Id: Iaf3414464f3dd747427247339c6b201b352063cb
(cherry picked from commit 9b1a243a3a)
(cherry picked from commit 23e488dfe7)
This commit is contained in:
Martin Schuppert 2019-10-30 09:43:23 +01:00 committed by Radosław Piliszek
parent 356096d0d8
commit d1731da633
1 changed files with 8 additions and 4 deletions

View File

@ -23,7 +23,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'python-oslo-vmware',
'python-rtslib',
'sysfsutils',
'targetcli'
'targetcli',
'xfsprogs'
] %}
{{ macros.install_packages(nova_compute_packages | customizable("packages")) }}
@ -47,7 +48,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'python-oslo.vmware',
'python-rtslib-fb',
'sysfsutils',
'targetcli-fb'
'targetcli-fb',
'xfsprogs'
] %}
# systemd is needed to get python-guestfs installed
@ -81,7 +83,8 @@ RUN rm -f /etc/nova/nova-compute.conf
'python-rtslib',
'qemu-img-ev',
'sysfsutils',
'targetcli'
'targetcli',
'xfsprogs'
] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
@ -100,7 +103,8 @@ RUN rm -f /etc/nova/nova-compute.conf
'python-libvirt',
'python-rtslib-fb',
'qemu-utils',
'targetcli-fb'
'targetcli-fb',
'xfsprogs'
] %}
{% if base_arch == "aarch64" %}