Remove support for distributions with Python 3.6

IPA can no longer be installed on them, other projects will follow.
Leave the jobs in place for projects that consume them.
Publish Stream 9 images (we'll need to clean up tarballs.o.o later).

Also force using Python 3.9 for tinyipa.

Change-Id: I350c563c1c4ab60ac10d7c9e4bb0715bfde1b1db
This commit is contained in:
Dmitry Tantsur 2022-05-12 11:53:32 +02:00 committed by Riccardo Pittau
parent e5bf43c791
commit d543aa8bf4
7 changed files with 32 additions and 36 deletions

View File

@ -4,12 +4,11 @@ diskimage-builder images
Images built using diskimage-builder_ are recommended for production use on Images built using diskimage-builder_ are recommended for production use on
real hardware. The recommended distributions are: real hardware. The recommended distributions are:
* CentOS Stream 8 * CentOS Stream 9
* Debian Bullseye (``debian-minimal`` element) * Debian Bullseye (``debian-minimal`` element)
The following should work but receive only limited testing and support: The following should work but receive only limited testing and support:
* CentOS 7 (using Python 3.6)
* openSUSE Leap 15.1 * openSUSE Leap 15.1
* Ubuntu 20.04 Focal * Ubuntu 20.04 Focal
@ -29,13 +28,13 @@ You can add other diskimage-builder_ elements via the ``-e`` flag:
.. code-block:: shell .. code-block:: shell
ironic-python-agent-builder -e <extra-element> --release 8-stream centos ironic-python-agent-builder -e <extra-element> --release 9-stream centos
You can specify the base name of the target images: You can specify the base name of the target images:
.. code-block:: shell .. code-block:: shell
ironic-python-agent-builder -o my-ipa --release 8-stream centos ironic-python-agent-builder -o my-ipa --release 9-stream centos
You can specify the arch of the target image by setting ``ARCH`` environment You can specify the arch of the target image by setting ``ARCH`` environment
variable (default is amd64): variable (default is amd64):
@ -43,7 +42,7 @@ variable (default is amd64):
.. code-block:: shell .. code-block:: shell
export ARCH=aarch64 export ARCH=aarch64
ironic-python-agent-builder -o my-ipa --release 8-stream centos ironic-python-agent-builder -o my-ipa --release 9-stream centos
... with diskimage-builder ... with diskimage-builder
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -74,7 +73,7 @@ for example:
.. code-block:: shell .. code-block:: shell
export DIB_RELEASE=8-stream export DIB_RELEASE=9-stream
disk-image-create -o ironic-python-agent \ disk-image-create -o ironic-python-agent \
ironic-python-agent-ramdisk centos ironic-python-agent-ramdisk centos
@ -169,7 +168,7 @@ required for instance image or deploy image.
.. code-block:: bash .. code-block:: bash
ironic-python-agent-builder -e stable-interface-names --release 8-stream centos ironic-python-agent-builder -e stable-interface-names --release 9-stream centos
.. _diskimage-builder: https://docs.openstack.org/diskimage-builder .. _diskimage-builder: https://docs.openstack.org/diskimage-builder

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
CentOS 7 and 8 are no longer supported since OpenStack dropped support
for Python 3.6. Please use CentOS 9 (Stream) instead.

View File

@ -162,13 +162,13 @@ while read line; do
sudo chroot --userspec=$TC:$STAFF $BUILDDIR /usr/bin/env -i PATH=$CHROOT_PATH http_proxy=$http_proxy https_proxy=$https_proxy no_proxy=$no_proxy tce-load -wci $line sudo chroot --userspec=$TC:$STAFF $BUILDDIR /usr/bin/env -i PATH=$CHROOT_PATH http_proxy=$http_proxy https_proxy=$https_proxy no_proxy=$no_proxy tce-load -wci $line
done < <(paste $WORKDIR/build_files/$PY_REQS $WORKDIR/build_files/buildreqs.lst) done < <(paste $WORKDIR/build_files/$PY_REQS $WORKDIR/build_files/buildreqs.lst)
PIP_COMMAND="pip"
TINYIPA_PYTHON_EXE="python" TINYIPA_PYTHON_EXE="python"
if [[ $USE_PYTHON3 == "True" ]]; then if [[ $USE_PYTHON3 == "True" ]]; then
PIP_COMMAND="pip3" TINYIPA_PYTHON_EXE="python3.9"
TINYIPA_PYTHON_EXE="python3"
fi fi
PIP_COMMAND="$TINYIPA_PYTHON_EXE -m pip"
# Build python wheels # Build python wheels
$CHROOT_CMD ${TINYIPA_PYTHON_EXE} -m ensurepip $CHROOT_CMD ${TINYIPA_PYTHON_EXE} -m ensurepip
$CHROOT_CMD ${PIP_COMMAND} install --upgrade pip==${PIP_VERSION} wheel $CHROOT_CMD ${PIP_COMMAND} install --upgrade pip==${PIP_VERSION} wheel

View File

@ -1,2 +1,2 @@
python3.6.tcz python3.9.tcz
python3.6-dev.tcz python3.9-dev.tcz

View File

@ -1,2 +1,2 @@
python3.6.tcz python3.9.tcz
expat2.tcz expat2.tcz

View File

@ -19,6 +19,7 @@
vars: vars:
image_type: 'tinyipa' image_type: 'tinyipa'
# TODO(dtantsur): remove when no other projects use it
- job: - job:
name: ironic-python-agent-build-image-dib-centos8 name: ironic-python-agent-build-image-dib-centos8
parent: ironic-python-agent-build-image-base parent: ironic-python-agent-build-image-base
@ -30,6 +31,17 @@
image_release: '8-stream' image_release: '8-stream'
image_target_name: 'centos8' image_target_name: 'centos8'
- job:
name: ironic-python-agent-build-image-dib-centos9
parent: ironic-python-agent-build-image-base
required-projects:
- openstack/diskimage-builder
vars:
image_type: 'dib'
image_distro: 'centos'
image_release: '9-stream'
image_target_name: 'centos9'
- job: - job:
name: ironic-python-agent-build-image-dib-debian name: ironic-python-agent-build-image-dib-debian
parent: ironic-python-agent-build-image-base parent: ironic-python-agent-build-image-base
@ -68,15 +80,7 @@
vars: vars:
image_type: 'tinyipa' image_type: 'tinyipa'
- job: # TODO(dtantsur): remove when no other projects use it
name: ironic-python-agent-check-image-dib-centos7-python3
parent: ironic-python-agent-check-image-base
required-projects:
- openstack/diskimage-builder
vars:
image_type: 'dib'
image_distro: 'centos7'
- job: - job:
name: ironic-python-agent-check-image-dib-centos8 name: ironic-python-agent-check-image-dib-centos8
parent: ironic-python-agent-check-image-base parent: ironic-python-agent-check-image-base
@ -88,12 +92,6 @@
image_release: '8-stream' image_release: '8-stream'
image_target_name: 'centos8' image_target_name: 'centos8'
- job:
name: ironic-python-agent-check-image-dib-centos8-extra
parent: ironic-python-agent-check-image-dib-centos8
vars:
extra_elements: ["extra-hardware"]
- job: - job:
name: ironic-python-agent-check-image-dib-centos9 name: ironic-python-agent-check-image-dib-centos9
parent: ironic-python-agent-check-image-base parent: ironic-python-agent-check-image-base

View File

@ -11,9 +11,6 @@
- ironic-python-agent-check-image-tinyipa - ironic-python-agent-check-image-tinyipa
- ironic-python-agent-check-image-dib-centos9 - ironic-python-agent-check-image-dib-centos9
- ironic-python-agent-check-image-dib-centos9-extra - ironic-python-agent-check-image-dib-centos9-extra
- ironic-python-agent-check-image-dib-centos8
- ironic-python-agent-check-image-dib-centos8-extra
- ironic-python-agent-check-image-dib-centos7-python3
- ironic-python-agent-check-image-dib-debian - ironic-python-agent-check-image-dib-debian
- ironic-python-agent-check-image-dib-debian-arm64 - ironic-python-agent-check-image-dib-debian-arm64
- ironic-python-agent-check-image-dib-debian-extra - ironic-python-agent-check-image-dib-debian-extra
@ -36,9 +33,6 @@
- ironic-python-agent-check-image-tinyipa - ironic-python-agent-check-image-tinyipa
- ironic-python-agent-check-image-dib-centos9 - ironic-python-agent-check-image-dib-centos9
- ironic-python-agent-check-image-dib-centos9-extra - ironic-python-agent-check-image-dib-centos9-extra
- ironic-python-agent-check-image-dib-centos8
- ironic-python-agent-check-image-dib-centos8-extra
- ironic-python-agent-check-image-dib-centos7-python3
- ironic-python-agent-check-image-dib-debian - ironic-python-agent-check-image-dib-debian
- ironic-python-agent-check-image-dib-debian-arm64 - ironic-python-agent-check-image-dib-debian-arm64
- ironic-python-agent-check-image-dib-debian-extra - ironic-python-agent-check-image-dib-debian-extra
@ -47,7 +41,7 @@
- publish-openstack-python-branch-tarball - publish-openstack-python-branch-tarball
- ironic-python-agent-build-image-tinyipa: - ironic-python-agent-build-image-tinyipa:
branches: master branches: master
- ironic-python-agent-build-image-dib-centos8: - ironic-python-agent-build-image-dib-centos9:
branches: master branches: master
- ironic-python-agent-build-image-dib-debian: - ironic-python-agent-build-image-dib-debian:
branches: master branches: master