Ensure nvme-cli is present in nova-compute images
The nvme-cli package is required to get the nvme command executed by os-brick, which is used by nova-compute. We don't need to explicitely install it for centos binary images, as it is required by os-brick which is required by openstack-nova-common, but all other types of images were missing it. Change-Id: I754939da7636c57d2a8d5b83debb5d8a58e38432 Closes-Bug: #1953509
This commit is contained in:
parent
f44d6ce85a
commit
30eddf72f6
@ -7,13 +7,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
|||||||
|
|
||||||
{% import "macros.j2" as macros with context %}
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% set nova_compute_ironic_packages = ['genisoimage'] %}
|
{% set nova_compute_ironic_packages = ['genisoimage', 'nvme-cli'] %}
|
||||||
|
|
||||||
{% if install_type == 'binary' %}
|
{% if install_type == 'binary' %}
|
||||||
{% if base_package_type == 'rpm' %}
|
{% if base_package_type == 'rpm' %}
|
||||||
|
|
||||||
{% set nova_compute_ironic_packages = nova_compute_ironic_packages + [
|
{% set nova_compute_ironic_packages = nova_compute_ironic_packages + [
|
||||||
'nvme-cli',
|
|
||||||
'openstack-nova-compute'
|
'openstack-nova-compute'
|
||||||
] %}
|
] %}
|
||||||
{{ macros.install_packages(nova_compute_ironic_packages | customizable("packages")) }}
|
{{ macros.install_packages(nova_compute_ironic_packages | customizable("packages")) }}
|
||||||
|
@ -20,7 +20,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
|||||||
'iscsi-initiator-utils',
|
'iscsi-initiator-utils',
|
||||||
'ndctl',
|
'ndctl',
|
||||||
'nfs-utils',
|
'nfs-utils',
|
||||||
'nvme-cli',
|
|
||||||
'openstack-nova-compute',
|
'openstack-nova-compute',
|
||||||
'openvswitch',
|
'openvswitch',
|
||||||
'parted',
|
'parted',
|
||||||
@ -54,8 +53,9 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
|||||||
'multipath-tools',
|
'multipath-tools',
|
||||||
'nfs-common',
|
'nfs-common',
|
||||||
'nova-compute',
|
'nova-compute',
|
||||||
'openvswitch-switch',
|
'nvme-cli',
|
||||||
'open-iscsi',
|
'open-iscsi',
|
||||||
|
'openvswitch-switch',
|
||||||
'parted',
|
'parted',
|
||||||
'pmdk-tools',
|
'pmdk-tools',
|
||||||
'python3-cephfs',
|
'python3-cephfs',
|
||||||
@ -96,6 +96,7 @@ RUN rm -f /etc/nova/nova-compute.conf
|
|||||||
'libosinfo',
|
'libosinfo',
|
||||||
'ndctl',
|
'ndctl',
|
||||||
'nfs-utils',
|
'nfs-utils',
|
||||||
|
'nvme-cli',
|
||||||
'openvswitch',
|
'openvswitch',
|
||||||
'parted',
|
'parted',
|
||||||
'python3-libguestfs',
|
'python3-libguestfs',
|
||||||
@ -128,6 +129,7 @@ RUN rm -f /etc/nova/nova-compute.conf
|
|||||||
'libosinfo-bin',
|
'libosinfo-bin',
|
||||||
'multipath-tools',
|
'multipath-tools',
|
||||||
'nfs-common',
|
'nfs-common',
|
||||||
|
'nvme-cli',
|
||||||
'open-iscsi',
|
'open-iscsi',
|
||||||
'parted',
|
'parted',
|
||||||
'pmdk-tools',
|
'pmdk-tools',
|
||||||
|
5
releasenotes/notes/nova-nvme-cli-bf940ad0005cac80.yaml
Normal file
5
releasenotes/notes/nova-nvme-cli-bf940ad0005cac80.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Ensures the ``nvme-cli`` package is present in ``nova-compute`` images, as
|
||||||
|
it expected by ``os-brick``.
|
Loading…
Reference in New Issue
Block a user