diff options
Diffstat (limited to 'docker/nova')
| -rw-r--r-- | docker/nova/nova-compute/Dockerfile.j2 | 44 |
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 %} |
