Skip to content

Commit

Permalink
nova-compute: add ndctl to expose NVDIMMs to guests
Browse files Browse the repository at this point in the history
`ndctl` is a utility for managing the nvdimm subsystem required
by Nova for attaching PMEM(persistent memory) namespaces to guests [0].

[0]: https://docs.openstack.org/nova/latest/admin/virtual-persistent-memory.html

Change-Id: I8ed1b6c1d0985b2a73206bd9249a5664cd80c912
Closes-Bug: #1870455
  • Loading branch information
Piotr Kopec committed Apr 14, 2020
1 parent 1b0884a commit f9ea23d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docker/nova/nova-compute/Dockerfile.j2
Expand Up @@ -21,6 +21,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'e2fsprogs',
'genisoimage',
'iscsi-initiator-utils',
'ndctl',
'nfs-utils',
'nvme-cli',
'openstack-nova-compute',
Expand Down Expand Up @@ -72,6 +73,14 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'targetcli-fb',
'xfsprogs'
] %}
# FIXME(pkopec): since Ubuntu 19.04 'ndctl' package is available
# for other archs than 'x86_64
{% if base_distro == 'debian' or
(base_distro == 'ubuntu' and base_arch == 'x86_64') %}
{% set nova_compute_packages = nova_compute_packages + [
'ndctl'
] %}
{% endif %}

{{ macros.install_packages(nova_compute_packages | customizable("packages")) }}

Expand All @@ -89,6 +98,7 @@ RUN rm -f /etc/nova/nova-compute.conf
'genisoimage',
'iscsi-initiator-utils',
'libosinfo',
'ndctl',
'nfs-utils',
'openvswitch',
'parted',
Expand Down Expand Up @@ -147,6 +157,14 @@ RUN rm -f /etc/nova/nova-compute.conf
'qemu-efi'
] %}
{% endif %}
# FIXME(pkopec): since Ubuntu 19.04 'ndctl' package is available
# for other archs than 'x86_64'
{% if base_distro == 'debian' or
(base_distro == 'ubuntu' and base_arch == 'x86_64') %}
{% set nova_compute_packages = nova_compute_packages + [
'ndctl'
] %}
{% endif %}

RUN mkdir -p /etc/ceph

Expand Down
@@ -0,0 +1,5 @@
---
features:
- |
Adding `ndctl` package to nova-compute to expose NVDIMM namespaces
to guests. The package is needed to manage PMEM namespaces.

0 comments on commit f9ea23d

Please sign in to comment.