aboutsummaryrefslogtreecommitdiff
path: root/docker/nova
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2017-03-28 09:42:58 +0200
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2017-04-12 11:01:02 +0200
commitebaf1f304240cfcc8201d13183782191cc210f28 (patch)
tree3a5f25b50b7527806a2ab8dd7dcea243bf9a2078 /docker/nova
parenta130ecb153f555ffd96bebf554eaa10c34a1486d (diff)
downloadkolla-ebaf1f304240cfcc8201d13183782191cc210f28.tar.gz
kolla-ebaf1f304240cfcc8201d13183782191cc210f28.zip
handle rtslib(-fb) package names and dependencies
Ubuntu has rtslib/targetcli packages while CentOS and Debian use 'fb' fork of those. Partially-Implements: blueprint multiarch-and-arm64-containers Change-Id: I8721854eefa6c55bb6e627db9a051c8f9202d1e1
Diffstat (limited to 'docker/nova')
-rw-r--r--docker/nova/nova-compute/Dockerfile.j244
1 files changed, 33 insertions, 11 deletions
diff --git a/docker/nova/nova-compute/Dockerfile.j2 b/docker/nova/nova-compute/Dockerfile.j2
index 5963b1593..b9024f434 100644
--- a/docker/nova/nova-compute/Dockerfile.j2
+++ b/docker/nova/nova-compute/Dockerfile.j2
@@ -15,15 +15,15 @@ MAINTAINER {{ maintainer }}
'nfs-utils',
'openstack-nova-compute',
'openvswitch',
+ 'python-oslo-vmware',
'python-rtslib',
'sysfsutils',
- 'targetcli',
- 'python-oslo-vmware'
+ 'targetcli'
] %}
{{ macros.install_packages(nova_compute_packages | customizable("packages")) }}
- {% elif base_distro in ['ubuntu'] %}
+ {% elif base_distro in ['debian', 'ubuntu'] %}
# ironic as workaround https://bugs.launchpad.net/packstack/+bug/1430388
{% set nova_compute_packages = [
@@ -35,12 +35,23 @@ MAINTAINER {{ maintainer }}
'openvswitch-switch',
'open-iscsi',
'python-ironicclient',
- 'python-rtslib',
- 'sysfsutils',
- 'targetcli',
- 'python-oslo-vmware'
+ 'python-oslo-vmware',
+ 'sysfsutils'
] %}
+ # Debian/stretch uses rtslib-fb (like CentOS does)
+ {% if base_distro == 'debian' %}
+ {% set nova_compute_packages = nova_compute_packages + [
+ 'python-rtslib-fb',
+ 'targetcli-fb'
+ ] %}
+ {% elif base_distro == 'ubuntu' %}
+ {% set nova_compute_packages = nova_compute_packages + [
+ 'python-rtslib',
+ 'targetcli'
+ ] %}
+ {% endif %}
+
{{ macros.install_packages(nova_compute_packages | customizable("packages")) }}
RUN rm -f /etc/nova/nova-compute.conf
@@ -64,7 +75,7 @@ RUN rm -f /etc/nova/nova-compute.conf
'targetcli'
] %}
- {% elif base_distro in ['ubuntu', 'debian'] %}
+ {% elif base_distro in ['debian', 'ubuntu'] %}
{% set nova_compute_packages = [
'ceph-common',
@@ -74,11 +85,22 @@ RUN rm -f /etc/nova/nova-compute.conf
'libvirt-dev',
'nfs-common',
'open-iscsi',
- 'python-rtslib',
- 'qemu-utils',
- 'targetcli'
+ 'qemu-utils'
] %}
+ # Debian/stretch uses rtslib-fb (like CentOS does)
+ {% if base_distro == 'debian' %}
+ {% set nova_compute_packages = nova_compute_packages + [
+ 'python-rtslib-fb',
+ 'targetcli-fb'
+ ] %}
+ {% elif base_distro == 'ubuntu' %}
+ {% set nova_compute_packages = nova_compute_packages + [
+ 'python-rtslib',
+ 'targetcli'
+ ] %}
+ {% endif %}
+
RUN mkdir -p /etc/ceph
{% endif %}