[images] Upgrade distro version to Ubuntu Focal

Add focal-based docker recipes for porthole images. Besides, amend helm
charts and zuul variables related to distribution.

Change-Id: I1a6ac464a115a842dd7010fa8a28fbe0822b9598
This commit is contained in:
astebenkova 2023-01-13 12:52:00 +02:00 committed by Sergiy Markin
parent fa49a102c9
commit 91d35fc47f
22 changed files with 50 additions and 47 deletions

View File

@ -239,4 +239,4 @@ manifests:
configmap_etc_client: true configmap_etc_client: true
deployment_calicoctl_utility: true deployment_calicoctl_utility: true
job_image_repo_sync: false job_image_repo_sync: false
secret_certificates: false secret_certificates: false

View File

@ -196,4 +196,4 @@ manifests:
configmap_etc_client: true configmap_etc_client: true
configmap_etc_sudoers: true configmap_etc_sudoers: true
deployment_utility: true deployment_utility: true
network_policy: false network_policy: false

View File

@ -166,4 +166,4 @@ manifests:
configmap_bin: true configmap_bin: true
configmap_etc_client: true configmap_etc_client: true
configmap_etc_sudoers: true configmap_etc_sudoers: true
deployment_utility: true deployment_utility: true

View File

@ -19,7 +19,7 @@ release_group: null
images: images:
tags: tags:
mariadb: docker.io/openstackhelm/mariadb:latest-ubuntu_focal mariadb: docker.io/openstackhelm/mariadb:latest-ubuntu_bionic
mysqlclient_utility: 'quay.io/airshipit/porthole-mysqlclient-utility:latest-ubuntu_bionic' mysqlclient_utility: 'quay.io/airshipit/porthole-mysqlclient-utility:latest-ubuntu_bionic'
image_repo_sync: docker.io/docker:18.09.02 image_repo_sync: docker.io/docker:18.09.02
pull_policy: IfNotPresent pull_policy: IfNotPresent

View File

@ -1,4 +1,4 @@
ARG FROM=docker.io/ubuntu:bionic ARG FROM=docker.io/ubuntu:focal
ARG DOCKER_REGISTRY=quay.io ARG DOCKER_REGISTRY=quay.io
ARG CALICOCTL_IMAGE_PREFIX=calico/ctl ARG CALICOCTL_IMAGE_PREFIX=calico/ctl
ARG CALICOCTL_VERSION=v3.23.1 ARG CALICOCTL_VERSION=v3.23.1
@ -21,14 +21,14 @@ LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc
RUN set -xe \ RUN set -xe \
&& sed -i '/nobody/d' /etc/passwd \ && sed -i '/nobody/d' /etc/passwd \
&& echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \ && echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \
&& apt-get update \ && apt-get update && apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
bash \ bash \
locales \ locales \
moreutils \ moreutils \
sudo \ sudo \
socat \ socat \
python3.6 \ python3.8 \
python3-pip \ python3-pip \
&& pip3 install --upgrade pip \ && pip3 install --upgrade pip \
&& pip3 install \ && pip3 install \

View File

@ -1,4 +1,4 @@
ARG FROM=docker.io/ubuntu:bionic ARG FROM=docker.io/ubuntu:focal
ARG DOCKER_REGISTRY=quay.io ARG DOCKER_REGISTRY=quay.io
ARG CALICOCTL_IMAGE_PREFIX=tigera/calicoctl ARG CALICOCTL_IMAGE_PREFIX=tigera/calicoctl
ARG CALICOCTL_VERSION=v3.23.1 ARG CALICOCTL_VERSION=v3.23.1
@ -27,14 +27,14 @@ LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc
RUN set -xe \ RUN set -xe \
&& sed -i '/nobody/d' /etc/passwd \ && sed -i '/nobody/d' /etc/passwd \
&& echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \ && echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \
&& apt-get update \ && apt-get update && apt-get -y upgrade \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
bash \ bash \
locales \ locales \
moreutils \ moreutils \
sudo \ sudo \
socat \ socat \
python3.6 \ python3.8 \
python3-pip \ python3-pip \
&& pip3 install --upgrade pip \ && pip3 install --upgrade pip \
&& pip3 install \ && pip3 install \

View File

@ -17,7 +17,7 @@ IMAGE_NAME ?= calico-utility
IMAGE_PREFIX ?= airship/porthole IMAGE_PREFIX ?= airship/porthole
IMAGE_TAG ?= latest IMAGE_TAG ?= latest
BUILD_TYPE ?= community BUILD_TYPE ?= community
OS_RELEASE ?= ubuntu_bionic OS_RELEASE ?= ubuntu_focal
IMAGE := $(DOCKER_REGISTRY)/$(IMAGE_PREFIX)/$(IMAGE_NAME):$(IMAGE_TAG) IMAGE := $(DOCKER_REGISTRY)/$(IMAGE_PREFIX)/$(IMAGE_NAME):$(IMAGE_TAG)

View File

@ -1,4 +1,4 @@
ARG FROM=docker.io/ubuntu:bionic ARG FROM=docker.io/ubuntu:focal
FROM ${FROM} FROM ${FROM}
LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \ LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \
@ -10,7 +10,7 @@ LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc
# Pacific 16.2.10 # Pacific 16.2.10
ARG CEPH_RELEASE=pacific ARG CEPH_RELEASE=pacific
ARG CEPH_RELEASE_TAG=16.2.10-1bionic ARG CEPH_RELEASE_TAG=16.2.10-1focal
ARG KUBE_VERSION=1.24.6 ARG KUBE_VERSION=1.24.6
ARG CEPH_REPO=https://mirror.mirantis.com/acicd/ceph-pacific/ ARG CEPH_REPO=https://mirror.mirantis.com/acicd/ceph-pacific/
@ -21,11 +21,11 @@ RUN set -xe \
&& export DEBIAN_FRONTEND=noninteractive \ && export DEBIAN_FRONTEND=noninteractive \
&& sed -i '/nobody/d' /etc/passwd \ && sed -i '/nobody/d' /etc/passwd \
&& echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \ && echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \
&& apt-get update && apt-get dist-upgrade -y \ && apt-get update && apt-get upgrade -y \
&& apt-get install -y wget curl apt-transport-https ca-certificates gnupg\ && apt-get install -y wget curl apt-transport-https ca-certificates gnupg\
&& apt-key add /etc/apt/ceph-${CEPH_RELEASE}.key \ && apt-key add /etc/apt/ceph-${CEPH_RELEASE}.key \
&& rm -f /etc/apt/ceph-${CEPH_RELEASE}.key \ && rm -f /etc/apt/ceph-${CEPH_RELEASE}.key \
&& echo "deb ${CEPH_REPO} bionic main" | tee /etc/apt/sources.list.d/ceph.list \ && echo "deb ${CEPH_REPO} focal main" | tee /etc/apt/sources.list.d/ceph.list \
&& apt-get update \ && apt-get update \
&& apt-get install -y \ && apt-get install -y \
bash \ bash \
@ -44,7 +44,7 @@ RUN set -xe \
rsync \ rsync \
xz-utils \ xz-utils \
iperf \ iperf \
python3.6 \ python3.8 \
python3-pip \ python3-pip \
&& pip3 install --upgrade pip \ && pip3 install --upgrade pip \
&& pip3 install \ && pip3 install \

View File

@ -1,4 +1,4 @@
ARG FROM=docker.io/ubuntu:bionic ARG FROM=docker.io/ubuntu:focal
FROM ${FROM} FROM ${FROM}
LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \ LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \
@ -15,7 +15,7 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN set -xe \ RUN set -xe \
&& sed -i '/nobody/d' /etc/passwd \ && sed -i '/nobody/d' /etc/passwd \
&& echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \ && echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \
&& apt-get update \ && apt-get update && apt-get upgrade -y \
&& apt-get install -y apt-transport-https \ && apt-get install -y apt-transport-https \
bash \ bash \
ca-certificates \ ca-certificates \
@ -33,7 +33,7 @@ RUN set -xe \
sudo \ sudo \
wget \ wget \
xz-utils \ xz-utils \
python3.6 \ python3.8 \
python3-pip \ python3-pip \
&& pip3 install --upgrade pip \ && pip3 install --upgrade pip \
&& pip3 install \ && pip3 install \

View File

@ -1,4 +1,4 @@
ARG FROM=docker.io/ubuntu:bionic ARG FROM=docker.io/ubuntu:focal
FROM ${FROM} FROM ${FROM}
LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \ LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \
@ -19,7 +19,7 @@ RUN set -xe \
&& export DEBIAN_FRONTEND=noninteractive \ && export DEBIAN_FRONTEND=noninteractive \
&& sed -i '/nobody/d' /etc/passwd \ && sed -i '/nobody/d' /etc/passwd \
&& echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \ && echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \
&& apt-get update \ && apt-get update && apt-get upgrade -y \
&& apt-get install -y \ && apt-get install -y \
wget curl \ wget curl \
locales \ locales \
@ -30,7 +30,7 @@ RUN set -xe \
moreutils \ moreutils \
sudo \ sudo \
rsyslog \ rsyslog \
python3.6 \ python3.8 \
python3-pip \ python3-pip \
jq \ jq \
rclone \ rclone \

View File

@ -1,4 +1,4 @@
ARG FROM=docker.io/ubuntu:bionic ARG FROM=docker.io/ubuntu:focal
FROM ${FROM} FROM ${FROM}
LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \ LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \
@ -17,9 +17,9 @@ RUN set -xe \
&& apt-get update \ && apt-get update \
&& apt-get install -y wget curl \ && apt-get install -y wget curl \
apt-transport-https ca-certificates gnupg \ apt-transport-https ca-certificates gnupg \
&& curl -o /etc/apt/trusted.gpg.d/mariadb_release_signing_key.asc 'https://mariadb.org/mariadb_release_signing_key.asc' \ && curl -o /etc/apt/trusted.gpg.d/mariadb_release_signing_key.asc 'https://mariadb.org/mariadb_release_signing_key.asc' \
&& echo 'deb https://mirrors.gigenet.com/mariadb/repo/10.6/ubuntu bionic main' >>/etc/apt/sources.list \ && echo 'deb https://mirrors.gigenet.com/mariadb/repo/10.6/ubuntu focal main' >> /etc/apt/sources.list \
&& apt-get update \ && apt-get update && apt-get upgrade -y \
&& apt-get install -y \ && apt-get install -y \
bash \ bash \
sudo \ sudo \
@ -30,7 +30,7 @@ RUN set -xe \
libdbd-mysql-perl \ libdbd-mysql-perl \
moreutils \ moreutils \
mysql-client \ mysql-client \
python3.6 \ python3.8 \
python3-pip \ python3-pip \
jq \ jq \
rclone \ rclone \

View File

@ -1,4 +1,4 @@
ARG FROM=docker.io/ubuntu:bionic ARG FROM=docker.io/ubuntu:focal
FROM ${FROM} FROM ${FROM}
LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \ LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \
@ -13,12 +13,12 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN set -xe \ RUN set -xe \
&& sed -i '/nobody/d' /etc/passwd \ && sed -i '/nobody/d' /etc/passwd \
&& echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \ && echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \
&& apt-get update \ && apt-get update && apt-get upgrade -y \
&& apt-get install -y \ && apt-get install -y \
bash \ bash \
sudo \ sudo \
rsyslog \ rsyslog \
python3.6 \ python3.8 \
python3-pip \ python3-pip \
&& pip3 install --upgrade pip \ && pip3 install --upgrade pip \
&& pip3 install \ && pip3 install \
@ -31,9 +31,10 @@ RUN set -xe \
&& apt-get clean -y \ && apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN sed -i "/rootwrap_logger.setLevel/s/.*/#&/" /usr/local/lib/python3.6/dist-packages/oslo_rootwrap/wrapper.py \ RUN PYTHON_LOCATION=$(pip3 show oslo.rootwrap|grep Location|awk '{print $2}') \
&& sed -i "/handler.setFormatter/s/.*/#&/" /usr/local/lib/python3.6/dist-packages/oslo_rootwrap/wrapper.py \ && sed -i "/rootwrap_logger.setLevel/s/.*/#&/" $PYTHON_LOCATION/oslo_rootwrap/wrapper.py \
&& sed -i "/os.path.basename/s/.*/#&/" /usr/local/lib/python3.6/dist-packages/oslo_rootwrap/wrapper.py \ && sed -i "/handler.setFormatter/s/.*/#&/" $PYTHON_LOCATION/oslo_rootwrap/wrapper.py \
&& sed -i "/rootwrap_logger.addHandler/s/.*/#&/" /usr/local/lib/python3.6/dist-packages/oslo_rootwrap/wrapper.py && sed -i "/os.path.basename/s/.*/#&/" $PYTHON_LOCATION/oslo_rootwrap/wrapper.py \
&& sed -i "/rootwrap_logger.addHandler/s/.*/#&/" $PYTHON_LOCATION/oslo_rootwrap/wrapper.py
CMD ["/bin/bash"] CMD ["/bin/bash"]

View File

@ -1,4 +1,4 @@
ARG FROM=docker.io/ubuntu:bionic ARG FROM=docker.io/ubuntu:focal
FROM ${FROM} FROM ${FROM}
LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \ LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \
@ -14,10 +14,10 @@ RUN set -xe \
&& export DEBIAN_FRONTEND=noninteractive \ && export DEBIAN_FRONTEND=noninteractive \
&& sed -i '/nobody/d' /etc/passwd \ && sed -i '/nobody/d' /etc/passwd \
&& echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \ && echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \
&& apt-get update \ && apt-get update && apt-get upgrade -y \
&& apt-get install -y wget curl \ && apt-get install -y wget curl \
apt-transport-https ca-certificates gnupg \ apt-transport-https ca-certificates gnupg \
&& echo "deb http://apt.postgresql.org/pub/repos/apt bionic-pgdg main" > /etc/apt/sources.list.d/pgdg.list \ && echo "deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& curl -o /etc/apt/trusted.gpg.d/postgresql_release_signing_key.asc 'https://www.postgresql.org/media/keys/ACCC4CF8.asc' \ && curl -o /etc/apt/trusted.gpg.d/postgresql_release_signing_key.asc 'https://www.postgresql.org/media/keys/ACCC4CF8.asc' \
&& apt-get update \ && apt-get update \
&& apt-get install -y \ && apt-get install -y \
@ -28,7 +28,7 @@ RUN set -xe \
sudo \ sudo \
postgresql-client \ postgresql-client \
postgresql-common \ postgresql-common \
python3.6 \ python3.8 \
python3-pip \ python3-pip \
jq \ jq \
rclone \ rclone \

View File

@ -13,4 +13,6 @@ bash -c "./openstack-helm-infra/tools/deployment/common/000-install-packages.sh"
sudo apt-get update sudo apt-get update
sudo apt-get install --no-install-recommends -y \ sudo apt-get install --no-install-recommends -y \
lvm2 lvm2 \
ca-certificates \
python3-certifi

View File

@ -23,7 +23,7 @@
vars: vars:
packages: packages:
deb: deb:
- linux-generic-hwe-16.04 - linux-generic-hwe-20.04
- name: Reboot Host following kernel upgrade - name: Reboot Host following kernel upgrade
shell: sleep 2 && reboot shell: sleep 2 && reboot
become: yes become: yes

View File

@ -17,7 +17,7 @@
parent: &parent airship-porthole-images parent: &parent airship-porthole-images
vars: vars:
image_name: &image_name porthole-calicoctl-utility image_name: &image_name porthole-calicoctl-utility
distro_suffix: &distro_suffix ubuntu_bionic distro_suffix: &distro_suffix ubuntu_focal
files: files:
- ^charts/calicoctl-utility/.*$ - ^charts/calicoctl-utility/.*$
- ^images/calicoctl-utility/.*$ - ^images/calicoctl-utility/.*$

View File

@ -17,7 +17,7 @@
parent: &parent airship-porthole-images parent: &parent airship-porthole-images
vars: vars:
image_name: &image_name porthole-ceph-utility image_name: &image_name porthole-ceph-utility
distro_suffix: &distro_suffix ubuntu_bionic distro_suffix: &distro_suffix ubuntu_focal
files: files:
- ^charts/ceph-utility/.*$ - ^charts/ceph-utility/.*$
- ^images/ceph-utility/.*$ - ^images/ceph-utility/.*$

View File

@ -17,7 +17,7 @@
parent: &parent airship-porthole-images parent: &parent airship-porthole-images
vars: vars:
image_name: &image_name porthole-compute-utility image_name: &image_name porthole-compute-utility
distro_suffix: &distro_suffix ubuntu_bionic distro_suffix: &distro_suffix ubuntu_focal
files: files:
- ^charts/compute-utility/.*$ - ^charts/compute-utility/.*$
- ^images/compute-utility/.*$ - ^images/compute-utility/.*$

View File

@ -17,7 +17,7 @@
parent: &parent airship-porthole-images parent: &parent airship-porthole-images
vars: vars:
image_name: &image_name porthole-etcdctl-utility image_name: &image_name porthole-etcdctl-utility
distro_suffix: &distro_suffix ubuntu_bionic distro_suffix: &distro_suffix ubuntu_focal
files: files:
- ^images/etcdctl-utility/.*$ - ^images/etcdctl-utility/.*$
- ^charts/etcdctl-utility/.*$ - ^charts/etcdctl-utility/.*$

View File

@ -17,7 +17,7 @@
parent: &parent airship-porthole-images parent: &parent airship-porthole-images
vars: vars:
image_name: &image_name porthole-mysqlclient-utility image_name: &image_name porthole-mysqlclient-utility
distro_suffix: &distro_suffix ubuntu_bionic distro_suffix: &distro_suffix ubuntu_focal
files: files:
- ^charts/mysqlclient-utility/.*$ - ^charts/mysqlclient-utility/.*$
- ^images/mysqlclient-utility/.*$ - ^images/mysqlclient-utility/.*$

View File

@ -17,7 +17,7 @@
parent: &parent airship-porthole-images parent: &parent airship-porthole-images
vars: vars:
image_name: &image_name porthole-openstack-utility image_name: &image_name porthole-openstack-utility
distro_suffix: &distro_suffix ubuntu_bionic distro_suffix: &distro_suffix ubuntu_focal
files: files:
- ^charts/openstack-utility/.*$ - ^charts/openstack-utility/.*$
- ^images/openstack-utility/.*$ - ^images/openstack-utility/.*$

View File

@ -17,7 +17,7 @@
parent: &parent airship-porthole-images parent: &parent airship-porthole-images
vars: vars:
image_name: &image_name porthole-postgresql-utility image_name: &image_name porthole-postgresql-utility
distro_suffix: &distro_suffix ubuntu_bionic distro_suffix: &distro_suffix ubuntu_focal
files: files:
- ^charts/postgresql-utility/.*$ - ^charts/postgresql-utility/.*$
- ^images/postgresql-utility/.*$ - ^images/postgresql-utility/.*$