From 8042866c453d799331b77c04c8baad5f7e546eba Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Mon, 16 Nov 2026 13:58:05 -0600 Subject: [PATCH] feat(ironic): move container to OpenStack 2026.2 Track understack/2026.2 for Ironic (pinned to 53fd32a1) and switch sushy back to upstream stable/2026.2, which already carries the Dell storage controller mode fix, so the sushy patch is dropped. Build on the ubuntu_resolute 2026.2 base images, whose venv is python3.14. proliantutils is unused, so remove it along with the IPMI UTF-8 patch that only touched it and the now-unneeded patch package. Ironic is built in the openstack-2026-2 CI job instead of 2026.1. ironic-understack now requires ironic 39.x and Python 3.14, and the upper-constraints used by code-test move to 2026.2. --- .github/workflows/code-test.yaml | 2 +- .github/workflows/containers-openstack.yaml | 2 +- components/images-openstack.yaml | 12 +++--- containers/ironic/Dockerfile | 24 +++++------ containers/ironic/README.md | 26 ++++++------ ...issue-results-in-UTF-8-format-error-.patch | 26 ------------ ...ng-storage-controller-mode-attribute.patch | 40 ------------------- python/ironic-understack/pyproject.toml | 4 +- 8 files changed, 32 insertions(+), 104 deletions(-) delete mode 100644 containers/ironic/patches/0002-Solve-IPMI-call-issue-results-in-UTF-8-format-error-.patch delete mode 100644 containers/ironic/patches/0003-Handle-missing-storage-controller-mode-attribute.patch diff --git a/.github/workflows/code-test.yaml b/.github/workflows/code-test.yaml index 7103fda00..c7dafc511 100644 --- a/.github/workflows/code-test.yaml +++ b/.github/workflows/code-test.yaml @@ -20,7 +20,7 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} env: - OPENSTACK_VERSION: "2026.1" + OPENSTACK_VERSION: "2026.2" jobs: discover: diff --git a/.github/workflows/containers-openstack.yaml b/.github/workflows/containers-openstack.yaml index 8a4157b8e..88a0cf152 100644 --- a/.github/workflows/containers-openstack.yaml +++ b/.github/workflows/containers-openstack.yaml @@ -35,7 +35,6 @@ jobs: project: - cinder - glance - - ironic - keystone - nova - neutron @@ -55,6 +54,7 @@ jobs: matrix: project: - horizon + - ironic - skyline uses: ./.github/workflows/build-container-reuse.yaml secrets: inherit diff --git a/components/images-openstack.yaml b/components/images-openstack.yaml index ab24e6d1e..05bd1bdf2 100644 --- a/components/images-openstack.yaml +++ b/components/images-openstack.yaml @@ -24,12 +24,12 @@ images: identity_controller: "ghcr.io/rackerlabs/understack/openstack-client:2026.1" # ironic - ironic_api: "ghcr.io/rackerlabs/understack/ironic:2026.1" - ironic_conductor: "ghcr.io/rackerlabs/understack/ironic:2026.1" - ironic_novncproxy: "ghcr.io/rackerlabs/understack/ironic:2026.1" - ironic_pxe: "ghcr.io/rackerlabs/understack/ironic:2026.1" - ironic_pxe_init: "ghcr.io/rackerlabs/understack/ironic:2026.1" - ironic_db_sync: "ghcr.io/rackerlabs/understack/ironic:2026.1" + ironic_api: "ghcr.io/rackerlabs/understack/ironic:2026.2" + ironic_conductor: "ghcr.io/rackerlabs/understack/ironic:2026.2" + ironic_novncproxy: "ghcr.io/rackerlabs/understack/ironic:2026.2" + ironic_pxe: "ghcr.io/rackerlabs/understack/ironic:2026.2" + ironic_pxe_init: "ghcr.io/rackerlabs/understack/ironic:2026.2" + ironic_db_sync: "ghcr.io/rackerlabs/understack/ironic:2026.2" ironic_pxe_http: "docker.io/nginx:1.29.8" # these want curl which apparently is in the openstack-client image ironic_manage_cleaning_network: "ghcr.io/rackerlabs/understack/openstack-client:2026.1" diff --git a/containers/ironic/Dockerfile b/containers/ironic/Dockerfile index 525885eac..e752172dd 100644 --- a/containers/ironic/Dockerfile +++ b/containers/ironic/Dockerfile @@ -1,24 +1,23 @@ # syntax=docker/dockerfile:1 ARG OPENSTACK_VERSION="required_argument" -FROM quay.io/airshipit/venv_builder:${OPENSTACK_VERSION}-ubuntu_noble AS build +FROM quay.io/airshipit/venv_builder:${OPENSTACK_VERSION}-ubuntu_resolute AS build COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ RUN apt-get update && \ apt-get install -y --no-install-recommends \ git \ - patch \ && apt-get clean && rm -rf /var/lib/apt/lists/* -# renovate: name=openstack/ironic repo=https://github.com/rackerlabs/ironic.git branch=understack/2026.1 -ARG IRONIC_GIT_REF=ff0628e8219db14f16f17e8491465275277b21d7 +# renovate: name=openstack/ironic repo=https://github.com/rackerlabs/ironic.git branch=understack/2026.2 +ARG IRONIC_GIT_REF=53fd32a1e0f840ef8ee051fbe4b4672237cd68c0 ADD --keep-git-dir=true https://github.com/rackerlabs/ironic.git#${IRONIC_GIT_REF} /src/ironic RUN git -C /src/ironic fetch --unshallow --tags -# renovate: name=openstack/sushy repo=https://github.com/rackerlabs/sushy.git branch=understack/2026.1 -ARG SUSHY_GIT_REF=5edf1e928de059c74424a29db1fa5dafb571e78f -ADD --keep-git-dir=true https://github.com/rackerlabs/sushy.git#${SUSHY_GIT_REF} /src/sushy +# renovate: name=openstack/sushy repo=https://github.com/openstack/sushy.git branch=stable/2026.2 +ARG SUSHY_GIT_REF=8d3544ded8cb31cf694e4b331e851d24451821cc +ADD --keep-git-dir=true https://github.com/openstack/sushy.git#${SUSHY_GIT_REF} /src/sushy RUN git -C /src/sushy fetch --unshallow --tags && \ sed -i '/sushy==.*/d' /upper-constraints.txt @@ -31,12 +30,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \ --constraint /upper-constraints.txt \ /src/ironic \ /src/sushy \ - /src/understack/ironic-understack \ - proliantutils==2.16.3 - -COPY containers/ironic/patches /tmp/patches/ -RUN cd /var/lib/openstack/lib/python3.12/site-packages && \ - patch -p1 < /tmp/patches/0002-Solve-IPMI-call-issue-results-in-UTF-8-format-error-.patch + /src/understack/ironic-understack # download and unpack novnc ARG NOVNC_VERSION=1.6.0 @@ -48,12 +42,12 @@ RUN \ mkdir -p /usr/share/novnc/ && \ wget -q -O "$DEST_FILE" "$URL" && \ tar -C /usr/share/novnc/ --strip-components=1 -zxvf "${DEST_FILE}" "$PFX/app" "$PFX/core" "$PFX/vendor" "$PFX/vnc.html" -COPY containers/ironic/ironic-console-pod.yaml.template /var/lib/openstack/lib/python3.12/site-packages/ironic/console/container/ +COPY containers/ironic/ironic-console-pod.yaml.template /var/lib/openstack/lib/python3.14/site-packages/ironic/console/container/ # renovate: datasource=docker depName=ghcr.io/rackerlabs/understack/ironic-ipxe versioning=semver FROM ghcr.io/rackerlabs/understack/ironic-ipxe:1.0.0 AS ipxe -FROM quay.io/airshipit/ironic:${OPENSTACK_VERSION}-ubuntu_noble AS final +FROM quay.io/airshipit/ironic:${OPENSTACK_VERSION}-ubuntu_resolute AS final ENV PATH="/var/lib/openstack/bin:$PATH" diff --git a/containers/ironic/README.md b/containers/ironic/README.md index 567143113..35f17379a 100644 --- a/containers/ironic/README.md +++ b/containers/ironic/README.md @@ -10,18 +10,18 @@ The branch for these are `understack/$OPENSTACK_VERSION` ```bash git clone https://github.com/openstack/ironic -git checkout --track origin/stable/2026.1 +git checkout --track origin/stable/2026.2 git remote add rackerlabs https://github.com/rackerlabs/ironic git fetch rackerlabs -git checkout --track rackerlabs/understack/2026.1 +git checkout --track rackerlabs/understack/2026.2 ``` ## Adding patches is done via `git cherry-pick` ```bash -git checkout understack/2026.1 +git checkout understack/2026.2 git cherry-pick GITISH_TO_PORT -git push rackerlabs understack/2026.1 +git push rackerlabs understack/2026.2 ``` ## Creating the next stable series @@ -39,7 +39,7 @@ branches to `rackerlabs` after you confirm each step. It expects a remote named (pointing at `openstack/ironic`, not `origin`) and a remote named `rackerlabs`. ```bash -scripts/git-understack-rebase ~/work/ironic 2026.1 +scripts/git-understack-rebase ~/work/ironic 2026.2 ``` ### Patches that landed upstream (possibly tweaked) @@ -65,24 +65,24 @@ commits are involved before anything is rewritten. To do it manually instead: ```bash -git checkout stable/2026.1 +git checkout stable/2026.2 git pull -p -git checkout understack/2026.1 -git rebase stable/2026.1 -git push rackerlabs understack/2026.1 +git checkout understack/2026.2 +git rebase stable/2026.2 +git push rackerlabs understack/2026.2 ``` ## Updating the container ```bash -git checkout understack/2026.1 +git checkout understack/2026.2 git show # ensure the git-ish in the Dockerfile matches ``` ## Backporting patches from upstream master -To backport a patch from upstream master (or another branch) to understack/2026.1: +To backport a patch from upstream master (or another branch) to understack/2026.2: ```bash # Fetch all branches from upstream (openstack/ironic) @@ -93,7 +93,7 @@ git fetch origin git fetch rackerlabs # Checkout the understack branch -git checkout understack/2026.1 +git checkout understack/2026.2 # Cherry-pick the commit from master # You can get the commit hash from the PR or upstream repository @@ -104,7 +104,7 @@ git add git cherry-pick --continue # Push to rackerlabs fork -git push rackerlabs understack/2026.1 +git push rackerlabs understack/2026.2 ``` ### Example workflow for a specific PR diff --git a/containers/ironic/patches/0002-Solve-IPMI-call-issue-results-in-UTF-8-format-error-.patch b/containers/ironic/patches/0002-Solve-IPMI-call-issue-results-in-UTF-8-format-error-.patch deleted file mode 100644 index 630495b1a..000000000 --- a/containers/ironic/patches/0002-Solve-IPMI-call-issue-results-in-UTF-8-format-error-.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 2f02ca00341d8069292ae9fe2ab3396fe44dac7d Mon Sep 17 00:00:00 2001 -From: Alan Bounds -Date: Thu, 6 Nov 2025 08:47:08 -0600 -Subject: [PATCH] Solve IPMI call issue results in UTF-8 format error on - ipmitool execution response decoding. - ---- - proliantutils/ilo/ipmi.py | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/proliantutils/ilo/ipmi.py b/proliantutils/ilo/ipmi.py -index 403ff4b..67176dc 100644 ---- a/proliantutils/ilo/ipmi.py -+++ b/proliantutils/ilo/ipmi.py -@@ -52,7 +52,8 @@ def _exec_ipmitool(driver_info, command): - out = None - try: - process = subprocess.Popen(ipmi_cmd, stdout=subprocess.PIPE, -- stderr=subprocess.PIPE, shell=True) -+ stderr=subprocess.PIPE, shell=True, -+ encoding='utf-8', text=True) - out, err = process.communicate() - LOG.debug(("IPMI Command output: %(out)s and " - "IPMI Command error: %(err)s and returncode: (code)s"), --- -2.25.1 diff --git a/containers/ironic/patches/0003-Handle-missing-storage-controller-mode-attribute.patch b/containers/ironic/patches/0003-Handle-missing-storage-controller-mode-attribute.patch deleted file mode 100644 index d2e9bb518..000000000 --- a/containers/ironic/patches/0003-Handle-missing-storage-controller-mode-attribute.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 1e7fea13cfd60e6584d9b6687cfe9b82d330af07 Mon Sep 17 00:00:00 2001 -From: Milan Fencik -Date: Tue, 4 Nov 2025 13:56:22 +0000 -Subject: [PATCH] Handle missing storage controller mode attribute - -On some Dell hardware, a storage controller may appear as a PCIe -Extender 1. These types of controllers are used internally for -connectivity to NVMe devices or other storage controllers via -the backplane. - -When using such hardware, these storage controllers may not have -a controller mode attribute, which currently results in an -AttributeError. - -This change adds a check for the attribute and returns None if -it is not found. - -Change-Id: I25295fee0118852c4c36cec07217d720ff556587 -Signed-off-by: Milan Fencik ---- - sushy/oem/dell/resources/system/storage/controller.py | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/sushy/oem/dell/resources/system/storage/controller.py b/sushy/oem/dell/resources/system/storage/controller.py -index 07362282..f7f299ea 100644 ---- a/sushy/oem/dell/resources/system/storage/controller.py -+++ b/sushy/oem/dell/resources/system/storage/controller.py -@@ -37,7 +37,11 @@ class DellStorageControllerExtension(oem_base.OEMResourceBase): - :returns: TaskMonitor if controller mode changes applied and need to - reboot, otherwise None - """ -- controller_mode = self.dell_storage_controller.controller_mode -+ # Some controllers do not have controller_mode -+ try: -+ controller_mode = self.dell_storage_controller.controller_mode -+ except AttributeError: -+ return None - - # BOSS will have this empty, PERC will have something assigned - if controller_mode and controller_mode != s_cons.ControllerMode.RAID: diff --git a/python/ironic-understack/pyproject.toml b/python/ironic-understack/pyproject.toml index d9786d647..6eede2ba5 100644 --- a/python/ironic-understack/pyproject.toml +++ b/python/ironic-understack/pyproject.toml @@ -7,11 +7,11 @@ name = "ironic-understack" version = "0.0.0" description = "Ironic hooks for Understack" authors = [{ name = "Marek Skrobacki", email = "marek.skrobacki@rackspace.co.uk" }] -requires-python = "~=3.12.0" +requires-python = "~=3.14.0" readme = "README.md" license = "MIT" dependencies = [ - "ironic>=35.1.0,<36", + "ironic>=39,<40", "pyyaml~=6.0", "requests", ]