diff options
| author | Marcin Juszkiewicz <marcin.juszkiewicz+kolla@linaro.org> | 2022-04-01 13:41:14 +0200 |
|---|---|---|
| committer | Marcin Juszkiewicz <marcin.juszkiewicz+kolla@linaro.org> | 2022-04-09 17:44:26 +0200 |
| commit | 1749da2fbf6b395b1a2cd77f349e0bea5d2f4a5e (patch) | |
| tree | 05427aa46ce6473684cfe2a824798306291546c9 /docker/nova/nova-compute | |
| parent | cabfd0f3eff38e2c10cdc7cf4e9271d72eeca91a (diff) | |
| download | kolla-1749da2fbf6b395b1a2cd77f349e0bea5d2f4a5e.tar.gz kolla-1749da2fbf6b395b1a2cd77f349e0bea5d2f4a5e.zip | |
docker: drop binary parts
Big patch drops all mentions of binary images support. Suggestions are
welcome how to split it into parts or handle better.
Change-Id: I5d5a46c6ce7734ceb8b844e17b43e359d7cac6e3
Diffstat (limited to 'docker/nova/nova-compute')
| -rw-r--r-- | docker/nova/nova-compute/Dockerfile.j2 | 210 |
1 files changed, 64 insertions, 146 deletions
diff --git a/docker/nova/nova-compute/Dockerfile.j2 b/docker/nova/nova-compute/Dockerfile.j2 index 9996afd0f..13edac23e 100644 --- a/docker/nova/nova-compute/Dockerfile.j2 +++ b/docker/nova/nova-compute/Dockerfile.j2 @@ -9,162 +9,82 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {{ macros.enable_extra_repos(['ceph', 'libvirt']) }} -{% if install_type == 'binary' %} - {% if base_package_type == 'rpm' %} - - {% set nova_compute_packages = [ - 'ceph-common', - 'cyrus-sasl-md5', - 'cyrus-sasl-scram', - 'device-mapper-multipath', - 'e2fsprogs', - 'genisoimage', - 'iscsi-initiator-utils', - 'ndctl', - 'nfs-utils', - 'openstack-nova-compute', - 'openvswitch', - 'parted', - 'python3-libguestfs', - 'python3-oslo-vmware', - 'python3-rtslib', - 'sysfsutils', - 'targetcli', - 'xfsprogs' +{% if base_package_type == 'rpm' %} + + {% set nova_compute_packages = [ + 'ceph-common', + 'cyrus-sasl-md5', + 'cyrus-sasl-scram', + 'device-mapper-multipath', + 'dosfstools', + 'e2fsprogs', + 'genisoimage', + 'iscsi-initiator-utils', + 'libosinfo', + 'ndctl', + 'nfs-utils', + 'nvme-cli', + 'openvswitch', + 'parted', + 'python3-libguestfs', + 'python3-libvirt', + 'python3-rtslib', + 'qemu-img', + 'sysfsutils', + 'targetcli', + 'xfsprogs' + ] %} + + # NOTE(hrw): daxio is part of pmdk which is x86-64 only in CentOS 8 + {% if base_arch == 'x86_64' %} + {% set nova_compute_packages = nova_compute_packages + [ + 'daxio' ] %} - - # NOTE(hrw): daxio is part of pmdk which is x86-64 only in CentOS 8 - {% if base_arch == 'x86_64' %} - {% set nova_compute_packages = nova_compute_packages + [ - 'daxio' - ] %} - {% endif %} - -{{ macros.install_packages(nova_compute_packages | customizable("packages")) }} \ - && dnf remove -y linux-firmware \ - && dnf clean all - - {% elif base_package_type == 'deb' %} - - # ironic as workaround https://bugs.launchpad.net/packstack/+bug/1430388 - {% set nova_compute_packages = [ - 'ceph-common', - 'e2fsprogs', - 'genisoimage', - 'ironic-common', - 'libsasl2-modules-gssapi-mit', - 'multipath-tools', - 'nfs-common', - 'nova-compute', - 'nvme-cli', - 'open-iscsi', - 'openvswitch-switch', - 'parted', - 'pmdk-tools', - 'python3-cephfs', - 'python3-guestfs', - 'python3-ironicclient', - 'python3-oslo.vmware', - 'python3-rados', - 'python3-rbd', - 'python3-rtslib-fb', - 'sasl2-bin', - 'sysfsutils', - '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")) }} - -RUN rm -f /etc/nova/nova-compute.conf - {% endif %} -{% elif install_type == 'source' %} - {% if base_package_type == 'rpm' %} - - {% set nova_compute_packages = [ - 'ceph-common', - 'cyrus-sasl-md5', - 'cyrus-sasl-scram', - 'device-mapper-multipath', - 'dosfstools', - 'e2fsprogs', - 'genisoimage', - 'iscsi-initiator-utils', - 'libosinfo', - 'ndctl', - 'nfs-utils', - 'nvme-cli', - 'openvswitch', - 'parted', - 'python3-libguestfs', - 'python3-libvirt', - 'python3-rtslib', - 'qemu-img', - 'sysfsutils', - 'targetcli', - 'xfsprogs' - ] %} - - # NOTE(hrw): daxio is part of pmdk which is x86-64 only in CentOS 8 - {% if base_arch == 'x86_64' %} - {% set nova_compute_packages = nova_compute_packages + [ - 'daxio' - ] %} - {% endif %} {{ macros.install_packages(nova_compute_packages | customizable("packages")) }} \ && dnf remove -y linux-firmware \ && dnf clean all - {% elif base_package_type == 'deb' %} - - {% set nova_compute_packages = [ - 'ceph-common', - 'dosfstools', - 'e2fsprogs', - 'genisoimage', - 'libosinfo-bin', - 'libsasl2-modules-gssapi-mit', - 'multipath-tools', - 'ndctl', - 'nfs-common', - 'nvme-cli', - 'open-iscsi', - 'parted', - 'pmdk-tools', - 'python3-cephfs', - 'python3-guestfs', - 'python3-libvirt', - 'python3-rados', - 'python3-rbd', - 'python3-rtslib-fb', - 'qemu-utils', - 'sasl2-bin', - 'sysfsutils', - 'targetcli-fb', - 'xfsprogs' +{% elif base_package_type == 'deb' %} + + {% set nova_compute_packages = [ + 'ceph-common', + 'dosfstools', + 'e2fsprogs', + 'genisoimage', + 'libosinfo-bin', + 'libsasl2-modules-gssapi-mit', + 'multipath-tools', + 'ndctl', + 'nfs-common', + 'nvme-cli', + 'open-iscsi', + 'parted', + 'pmdk-tools', + 'python3-cephfs', + 'python3-guestfs', + 'python3-libvirt', + 'python3-rados', + 'python3-rbd', + 'python3-rtslib-fb', + 'qemu-utils', + 'sasl2-bin', + 'sysfsutils', + 'targetcli-fb', + 'xfsprogs' + ] %} + + {% if base_arch == "aarch64" %} + {% set nova_compute_packages = nova_compute_packages + [ + 'qemu-efi' ] %} - - {% if base_arch == "aarch64" %} - {% set nova_compute_packages = nova_compute_packages + [ - 'qemu-efi' - ] %} - {% endif %} + {% endif %} RUN mkdir -p /etc/ceph \ && {{ macros.install_packages(nova_compute_packages | customizable("packages"), chain=True) }} - {% endif %} - +{% endif %} {% set nova_compute_pip_packages = [ 'oslo-vmware' @@ -181,8 +101,6 @@ RUN {{ macros.install_pip(nova_compute_pip_packages | customizable("pip_packages {{ macros.install_pip(nova_compute_plugins_pip_packages) }}; \ fi -{% endif %} - COPY extend_start.sh /usr/local/bin/kolla_nova_extend_start RUN chmod 755 /usr/local/bin/kolla_nova_extend_start \ && rm -f /etc/machine-id |
