diff options
| author | Jeffrey Zhang <zhang.lei.fly@gmail.com> | 2018-03-08 23:35:54 +0800 |
|---|---|---|
| committer | Jeffrey Zhang <zhang.lei.fly@gmail.com> | 2018-05-26 00:24:30 +0800 |
| commit | 14374e715d2a5057a28126c7193cfb6270eabaab (patch) | |
| tree | c3690c24b38273eb5e6a812d1eef6f32e135c2a2 | |
| parent | 000159cb6d5da0fffe0ba73051c6c551a0cdd9bd (diff) | |
| download | kolla-14374e715d2a5057a28126c7193cfb6270eabaab.tar.gz kolla-14374e715d2a5057a28126c7193cfb6270eabaab.zip | |
Bump Ubuntu base image to 18.04
Ubuntu 18.04 has been released. We need upgrade to it this cycle.
Changes made in this patch
- Bump ubuntu repo from xenial to bionic. Some repos do not have bionic
packages, so still using xenial repos.
- Drop mariadb, percona and nfs-ganesha repo, because these packages are
already provided by Ubuntu official repo.
- Since qdrouterd does not have bionic repo and xenial packages does not
work on Ubuntu bionic, just add it into ignore image list.
- Use python-rtslib-fb and targetcli-fb rather than python-rtslib
and targetcli
- use xen-utils package name rather than with package version one.
- Seems unsigned repo won't work on Ubuntu bionic, stop using infra
mirrored unsigned repo in gate building job.
Needed-By: https://review.openstack.org/568728
Implement blueprint: ubuntu-bionic
Change-Id: I4e3b0ca669cfbf6316bf591f2d8428fa1a0d6182
| -rw-r--r-- | docker/base/sources.list.ubuntu | 22 | ||||
| -rw-r--r-- | docker/base/sources.list.ubuntu.aarch64 | 8 | ||||
| -rw-r--r-- | docker/base/sources.list.ubuntu.ppc64le | 11 | ||||
| -rw-r--r-- | docker/ceph/ceph-nfs/Dockerfile.j2 | 6 | ||||
| -rw-r--r-- | docker/cinder/cinder-volume/Dockerfile.j2 | 28 | ||||
| -rw-r--r-- | docker/dind/Dockerfile.j2 | 2 | ||||
| -rw-r--r-- | docker/iscsid/Dockerfile.j2 | 17 | ||||
| -rw-r--r-- | docker/mariadb/Dockerfile.j2 | 15 | ||||
| -rw-r--r-- | docker/nova/nova-compute/Dockerfile.j2 | 28 | ||||
| -rw-r--r-- | docker/nova/nova-libvirt/Dockerfile.j2 | 12 | ||||
| -rwxr-xr-x | kolla/common/config.py | 4 | ||||
| -rwxr-xr-x | kolla/image/build.py | 4 | ||||
| -rw-r--r-- | releasenotes/notes/upgrade-ubuntu-base-image-to-bionic-eb0d421014ed48ac.yaml | 3 | ||||
| -rw-r--r-- | tests/templates/template_overrides.j2 | 9 |
14 files changed, 50 insertions, 119 deletions
diff --git a/docker/base/sources.list.ubuntu b/docker/base/sources.list.ubuntu index fab757f25..3025ed444 100644 --- a/docker/base/sources.list.ubuntu +++ b/docker/base/sources.list.ubuntu @@ -1,41 +1,29 @@ # For non-x86 architectures we use sources.list.debian.ARCHITECTURENAME # Default repos -deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse -deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse -deb http://archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse +deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse +deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse +deb http://archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse # Backports have a lower priority and must be explicitly installed to be used -deb http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse +deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse # We need to add the repo for the updated packages they provide. The main ones # are qemu, libvirt, and openvswitch. deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/queens main -# MariaDB 10.0 repo -deb http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.0/ubuntu xenial main - -# Percona repo (for xtrabackup) -deb http://repo.percona.com/apt xenial main - # Elastic repo deb https://packages.elastic.co/elasticsearch/2.x/debian stable main # Kibana repo deb https://packages.elastic.co/kibana/4.6/debian stable main -# Docker repo -deb http://apt.dockerproject.org/repo ubuntu-xenial main - # InfluxDB repo -deb https://repos.influxdata.com/ubuntu xenial stable +deb https://repos.influxdata.com/ubuntu bionic stable # Grafana repo deb https://packagecloud.io/grafana/stable/debian/ jessie main -# Nfs-ganesha repo -deb http://download.ceph.com/nfs-ganesha/deb-V2.5-stable/luminous xenial main - # Fluentd repo deb http://packages.treasuredata.com/2/ubuntu/xenial/ xenial contrib diff --git a/docker/base/sources.list.ubuntu.aarch64 b/docker/base/sources.list.ubuntu.aarch64 index dc76db0dc..a6a1f4e45 100644 --- a/docker/base/sources.list.ubuntu.aarch64 +++ b/docker/base/sources.list.ubuntu.aarch64 @@ -1,10 +1,10 @@ # Default repos -deb http://ports.ubuntu.com/ xenial main restricted universe multiverse -deb http://ports.ubuntu.com/ xenial-updates main restricted universe multiverse -deb http://ports.ubuntu.com/ xenial-security main restricted universe multiverse +deb http://ports.ubuntu.com/ bionic main restricted universe multiverse +deb http://ports.ubuntu.com/ bionic-updates main restricted universe multiverse +deb http://ports.ubuntu.com/ bionic-security main restricted universe multiverse # Backports have a lower priority and must be explicitly installed to be used -deb http://ports.ubuntu.com/ xenial-backports main restricted universe multiverse +deb http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse # We need to add the repo for the updated packages they provide. The main ones # are qemu, libvirt, and openvswitch. diff --git a/docker/base/sources.list.ubuntu.ppc64le b/docker/base/sources.list.ubuntu.ppc64le index dab6bcdec..a6a1f4e45 100644 --- a/docker/base/sources.list.ubuntu.ppc64le +++ b/docker/base/sources.list.ubuntu.ppc64le @@ -1,14 +1,11 @@ # Default repos -deb http://ports.ubuntu.com/ xenial main restricted universe multiverse -deb http://ports.ubuntu.com/ xenial-updates main restricted universe multiverse -deb http://ports.ubuntu.com/ xenial-security main restricted universe multiverse +deb http://ports.ubuntu.com/ bionic main restricted universe multiverse +deb http://ports.ubuntu.com/ bionic-updates main restricted universe multiverse +deb http://ports.ubuntu.com/ bionic-security main restricted universe multiverse # Backports have a lower priority and must be explicitly installed to be used -deb http://ports.ubuntu.com/ xenial-backports main restricted universe multiverse +deb http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse # We need to add the repo for the updated packages they provide. The main ones # are qemu, libvirt, and openvswitch. deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/queens main - -# Mariadb -deb http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.0/ubuntu xenial main diff --git a/docker/ceph/ceph-nfs/Dockerfile.j2 b/docker/ceph/ceph-nfs/Dockerfile.j2 index a657a9d4a..e34429ddf 100644 --- a/docker/ceph/ceph-nfs/Dockerfile.j2 +++ b/docker/ceph/ceph-nfs/Dockerfile.j2 @@ -9,14 +9,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% set ceph_nfs_packages = [ 'nfs-ganesha', - 'nfs-ganesha-ceph', - 'nfs-ganesha-rgw' + 'nfs-ganesha-ceph' ] %} {% elif base_distro in ['ubuntu'] %} {% set ceph_nfs_packages = [ 'nfs-ganesha', - 'nfs-ganesha-ceph', - 'nfs-ganesha-rgw' + 'nfs-ganesha-ceph' ] %} {% endif %} diff --git a/docker/cinder/cinder-volume/Dockerfile.j2 b/docker/cinder/cinder-volume/Dockerfile.j2 index fb3763643..6632bdbe4 100644 --- a/docker/cinder/cinder-volume/Dockerfile.j2 +++ b/docker/cinder/cinder-volume/Dockerfile.j2 @@ -23,22 +23,12 @@ RUN sed -i '1 i include /var/lib/cinder/volumes/*' /etc/tgt/tgtd.conf {% set cinder_volume_packages = [ 'nfs-common', 'sysfsutils', + 'python-rtslib-fb', + 'targetcli-fb', 'thin-provisioning-tools', 'tgt' ] %} - # Debian/stretch uses rtslib-fb (like CentOS does) - {% if base_distro == 'debian' %} - {% set cinder_volume_packages = cinder_volume_packages + [ - 'python-rtslib-fb', - 'targetcli-fb' - ] %} - {% elif base_distro == 'ubuntu' %} - {% set cinder_volume_packages = cinder_volume_packages + [ - 'python-rtslib', - 'targetcli' - ] %} - {% endif %} {{ macros.install_packages(cinder_volume_packages | customizable("packages")) }} {% block cinder_volume_ubuntu_setup %} @@ -51,21 +41,11 @@ RUN sed -i '1 i include /var/lib/cinder/volumes/*' /etc/tgt/targets.conf {% if base_distro in ['debian', 'ubuntu'] %} {% set cinder_volume_packages = [ 'cinder-volume', + 'python-rtslib-fb', + 'targetcli-fb', 'thin-provisioning-tools' ] %} - # Debian/stretch uses rtslib-fb (like CentOS does) - {% if base_distro == 'debian' %} - {% set cinder_volume_packages = cinder_volume_packages + [ - 'python-rtslib-fb', - 'targetcli-fb' - ] %} - {% elif base_distro == 'ubuntu' %} - {% set cinder_volume_packages = cinder_volume_packages + [ - 'python-rtslib', - 'targetcli' - ] %} - {% endif %} {{ macros.install_packages(cinder_volume_packages | customizable("packages")) }} {% endif %} diff --git a/docker/dind/Dockerfile.j2 b/docker/dind/Dockerfile.j2 index 48193c7c9..9e6027589 100644 --- a/docker/dind/Dockerfile.j2 +++ b/docker/dind/Dockerfile.j2 @@ -15,7 +15,7 @@ RUN /bin/true {% elif base_distro in ['debian', 'ubuntu'] %} {% set dind_packages = [ 'btrfs-tools', - 'docker-engine', + 'docker.io', 'openssh-server' ] %} diff --git a/docker/iscsid/Dockerfile.j2 b/docker/iscsid/Dockerfile.j2 index dd5e73560..ebb5d985d 100644 --- a/docker/iscsid/Dockerfile.j2 +++ b/docker/iscsid/Dockerfile.j2 @@ -14,22 +14,11 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% elif base_distro in ['debian', 'ubuntu'] %} {% set iscsid_packages = [ - 'open-iscsi' + 'open-iscsi', + 'python-rtslib-fb', + 'targetcli-fb' ] %} - # Debian/stretch uses rtslib-fb (like CentOS does) - {% if base_distro == 'debian' %} - {% set iscsid_packages = iscsid_packages + [ - 'python-rtslib-fb', - 'targetcli-fb' - ] %} - {% elif base_distro == 'ubuntu' %} - {% set iscsid_packages = iscsid_packages + [ - 'python-rtslib', - 'targetcli' - ] %} - {% endif %} - {% endif %} {{ macros.install_packages(iscsid_packages | customizable("packages")) }} diff --git a/docker/mariadb/Dockerfile.j2 b/docker/mariadb/Dockerfile.j2 index 6af2bfb6c..9e2298668 100644 --- a/docker/mariadb/Dockerfile.j2 +++ b/docker/mariadb/Dockerfile.j2 @@ -29,17 +29,10 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build 'mariadb-server' ] %} {% else %} - {% if base_arch == 'aarch64' %} - {% set mariadb_packages = mariadb_packages + [ - 'mariadb-server', - 'percona-xtrabackup' - ] %} - {% else %} - {% set mariadb_packages = mariadb_packages + [ - 'mariadb-galera-server', - 'percona-xtrabackup' - ] %} - {% endif %} + {% set mariadb_packages = mariadb_packages + [ + 'mariadb-server', + 'percona-xtrabackup' + ] %} {% endif %} {% endif %} diff --git a/docker/nova/nova-compute/Dockerfile.j2 b/docker/nova/nova-compute/Dockerfile.j2 index de8f1c821..6138fc399 100644 --- a/docker/nova/nova-compute/Dockerfile.j2 +++ b/docker/nova/nova-compute/Dockerfile.j2 @@ -44,21 +44,15 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build 'python-guestfs', 'python-ironicclient', 'python-oslo.vmware', - 'sysfsutils' + 'python-rtslib-fb', + 'sysfsutils', + 'targetcli-fb' ] %} - # Debian/stretch uses rtslib-fb (like CentOS does) # systemd is needed to get python-guestfs installed {% if base_distro == 'debian' %} {% set nova_compute_packages = nova_compute_packages + [ - 'python-rtslib-fb', - 'systemd/stretch-backports', - 'targetcli-fb' - ] %} - {% elif base_distro == 'ubuntu' %} - {% set nova_compute_packages = nova_compute_packages + [ - 'python-rtslib', - 'targetcli' + 'systemd/stretch-backports' ] %} {% endif %} @@ -103,7 +97,9 @@ RUN rm -f /etc/nova/nova-compute.conf 'parted', 'python-guestfs', 'python-libvirt', - 'qemu-utils' + 'python-rtslib-fb', + 'qemu-utils', + 'targetcli-fb' ] %} {% if base_arch == "aarch64" %} @@ -112,18 +108,10 @@ RUN rm -f /etc/nova/nova-compute.conf ] %} {% endif %} - # Debian/stretch uses rtslib-fb (like CentOS does) # systemd is needed to get python-guestfs installed {% if base_distro == 'debian' %} {% set nova_compute_packages = nova_compute_packages + [ - 'python-rtslib-fb', - 'systemd/stretch-backports', - 'targetcli-fb' - ] %} - {% elif base_distro == 'ubuntu' %} - {% set nova_compute_packages = nova_compute_packages + [ - 'python-rtslib', - 'targetcli' + 'systemd/stretch-backports' ] %} {% endif %} diff --git a/docker/nova/nova-libvirt/Dockerfile.j2 b/docker/nova/nova-libvirt/Dockerfile.j2 index f830a0a6e..fcd6aecb4 100644 --- a/docker/nova/nova-libvirt/Dockerfile.j2 +++ b/docker/nova/nova-libvirt/Dockerfile.j2 @@ -44,6 +44,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% if base_arch != "ppc64le" %} {% set nova_libvirt_packages = nova_libvirt_packages + [ 'dmidecode', + 'xen-utils' ] %} {% endif %} @@ -51,17 +52,6 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build {% set nova_libvirt_packages = nova_libvirt_packages + [ 'usermode' ] %} - {% if base_arch != "ppc64le" %} - {% set nova_libvirt_packages = nova_libvirt_packages + [ - 'xen-utils-4.8' - ] %} - {% endif %} - {% elif base_distro in ['ubuntu'] %} - {% if base_arch != "ppc64le" %} - {% set nova_libvirt_packages = nova_libvirt_packages + [ - 'xen-utils-4.6' - ] %} - {% endif %} {% endif %} {% endif %} diff --git a/kolla/common/config.py b/kolla/common/config.py index fd7aca134..cede24cad 100755 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -26,14 +26,14 @@ DEFAULT_BASE_TAGS = { 'rhel': '7', 'oraclelinux': '7-slim', 'debian': 'stretch-backports', - 'ubuntu': '16.04', + 'ubuntu': '18.04', } DISTRO_RELEASE = { 'centos': '7', 'rhel': '7', 'oraclelinux': '7', 'debian': 'stretch-backports', - 'ubuntu': '16.04', + 'ubuntu': '18.04', } # This is noarch repository so we will use it on all architectures diff --git a/kolla/image/build.py b/kolla/image/build.py index cd59aa260..54e3d7970 100755 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -121,6 +121,8 @@ SKIPPED_IMAGES = { "nova-mksproxy", "novajoin-base", "octavia-base", + # There is no qdrouterd package for ubuntu bionic + "qdrouterd", "searchlight-base", "solum-base", "tacker-base", @@ -134,6 +136,8 @@ SKIPPED_IMAGES = { # TODO(spsurya): remove neutron-server-opendaylight fix below issue # https://bugs.launchpad.net/kolla/+bug/1764621 "neutron-server-opendaylight", + # There is no qdrouterd package for ubuntu bionic + "qdrouterd", # TODO(jeffrey4l): remove tripleo-ui when following bug is fixed # https://bugs.launchpad.net/tripleo/+bug/1744215 "tripleo-ui" diff --git a/releasenotes/notes/upgrade-ubuntu-base-image-to-bionic-eb0d421014ed48ac.yaml b/releasenotes/notes/upgrade-ubuntu-base-image-to-bionic-eb0d421014ed48ac.yaml new file mode 100644 index 000000000..31c9212d3 --- /dev/null +++ b/releasenotes/notes/upgrade-ubuntu-base-image-to-bionic-eb0d421014ed48ac.yaml @@ -0,0 +1,3 @@ +--- +upgrade: + - Ubuntu base image is upgrade from xenial to bionic. diff --git a/tests/templates/template_overrides.j2 b/tests/templates/template_overrides.j2 index 9bc50fd0c..f925d9efc 100644 --- a/tests/templates/template_overrides.j2 +++ b/tests/templates/template_overrides.j2 @@ -63,10 +63,11 @@ RUN sed -i -e "/^mirrorlist/d" \ {% elif base_distro == "ubuntu" %} {% endraw %} -RUN sed -i -e "s|http://archive.ubuntu.com|http://{{ nodepool_mirror_host }}|" \ - -e "s|http://ubuntu-cloud.archive.canonical.com/ubuntu|http://{{ nodepool_mirror_host }}/ubuntu-cloud-archive|" \ - /etc/apt/sources.list \ - && apt-get update +# FIXME(jeffrey4l): seems we can not use unsigned repo in ubuntu 18.04 +#RUN sed -i -e "s|http://archive.ubuntu.com|http://{{ nodepool_mirror_host }}|" \ +# -e "s|http://ubuntu-cloud.archive.canonical.com/ubuntu|http://{{ nodepool_mirror_host }}/ubuntu-cloud-archive|" \ +# /etc/apt/sources.list \ +# && apt-get update {% raw %} {% endif %} |
