Skip to content

Commit eace4f4

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Add daxio for nvdimm scenario" into stable/ussuri
2 parents 6c6bb6d + 12c898e commit eace4f4

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

docker/nova/nova-compute/Dockerfile.j2

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
3232
'xfsprogs'
3333
] %}
3434

35+
# NOTE(hrw): daxio is part of pmdk which is x86-64 only in CentOS 8
36+
{% if base_arch == 'x86_64' %}
37+
{% set nova_compute_packages = nova_compute_packages + [
38+
'daxio'
39+
] %}
40+
{% endif %}
41+
3542
{{ macros.install_packages(nova_compute_packages | customizable("packages")) }}
3643

3744
{% elif base_package_type == 'deb' %}
@@ -48,6 +55,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
4855
'openvswitch-switch',
4956
'open-iscsi',
5057
'parted',
58+
'pmdk-tools',
5159
'python3-cephfs',
5260
'python3-guestfs',
5361
'python3-ironicclient',
@@ -64,7 +72,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
6472
{% if base_distro == 'debian' or
6573
(base_distro == 'ubuntu' and base_arch == 'x86_64') %}
6674
{% set nova_compute_packages = nova_compute_packages + [
67-
'ndctl'
75+
'ndctl',
6876
] %}
6977
{% endif %}
7078

@@ -97,6 +105,13 @@ RUN rm -f /etc/nova/nova-compute.conf
97105
'xfsprogs'
98106
] %}
99107

108+
# NOTE(hrw): daxio is part of pmdk which is x86-64 only in CentOS 8
109+
{% if base_arch == 'x86_64' %}
110+
{% set nova_compute_packages = nova_compute_packages + [
111+
'daxio'
112+
] %}
113+
{% endif %}
114+
100115
{% elif base_package_type == 'deb' %}
101116

102117
{% set nova_compute_packages = [
@@ -109,6 +124,7 @@ RUN rm -f /etc/nova/nova-compute.conf
109124
'nfs-common',
110125
'open-iscsi',
111126
'parted',
127+
'pmdk-tools',
112128
'python3-cephfs',
113129
'python3-guestfs',
114130
'python3-libvirt',
@@ -131,7 +147,7 @@ RUN rm -f /etc/nova/nova-compute.conf
131147
{% if base_distro == 'debian' or
132148
(base_distro == 'ubuntu' and base_arch == 'x86_64') %}
133149
{% set nova_compute_packages = nova_compute_packages + [
134-
'ndctl'
150+
'ndctl',
135151
] %}
136152
{% endif %}
137153

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
fixes:
3+
- |
4+
nova-compute uses daxio to cleanup vpmem backend device on instance
5+
delete. If the daxio binary is missing in the nova-compute container
6+
instance delete fails. daxio is provided in centos via daxio, in
7+
ubuntu via the pmdk-tools package.

0 commit comments

Comments
 (0)