Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/code-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

env:
OPENSTACK_VERSION: "2026.1"
OPENSTACK_VERSION: "2026.2"

jobs:
discover:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/containers-openstack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
project:
- cinder
- glance
- ironic
- keystone
- nova
- neutron
Expand All @@ -55,6 +54,7 @@ jobs:
matrix:
project:
- horizon
- ironic
- skyline
uses: ./.github/workflows/build-container-reuse.yaml
secrets: inherit
Expand Down
12 changes: 6 additions & 6 deletions components/images-openstack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
24 changes: 9 additions & 15 deletions containers/ironic/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand All @@ -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"

Expand Down
26 changes: 13 additions & 13 deletions containers/ironic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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
Expand All @@ -104,7 +104,7 @@ git add <conflicted-files>
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
Expand Down

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions python/ironic-understack/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down
Loading