Skip to content

Commit 60c3f94

Browse files
committed
fix: Rebuilds neutron to ensure sync compatibility
This change will ensure that our version of Neutron is allowing operators to execute with an additive sync model. Additive sync ensures that we can protect the OVN DB while also ensuring that Neutron is able to automatically resolve issues when they arrive. Signed-off-by: Kevin Carter <[email protected]>
1 parent 8ff9102 commit 60c3f94

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/release-neutron-oslodb.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ on:
1212
type: choice
1313
options:
1414
- master-ubuntu_jammy
15-
- 2023.1-ubuntu_jammy
16-
- 2023.2-ubuntu_jammy
1715
- 2024.1-ubuntu_jammy
1816
pluginTag:
1917
description: 'Set release used for the build environment'
@@ -22,9 +20,15 @@ on:
2220
type: choice
2321
options:
2422
- "master"
25-
- "2023.1"
26-
- "2023.2"
2723
- "2024.1"
24+
NeutronTag:
25+
description: 'Set Neutron version'
26+
required: true
27+
default: 'sync-add-mode-2024.1'
28+
type: choice
29+
options:
30+
- 'master'
31+
- 'sync-add-mode-2024.1'
2832

2933
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
3034
env:
@@ -76,6 +80,7 @@ jobs:
7680
build-args: |
7781
VERSION=${{ github.event.inputs.imageTag }}
7882
PLUGIN_VERSION=${{ github.event.inputs.pluginTag }}
83+
NEUTRON_VERSION=${{ github.event.inputs.NeutronTag }}
7984
- name: Dynamically set MY_CONTAINER output option
8085
id: mycontainer
8186
run: echo "MY_CONTAINER=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/neutron-oslodb:${{ github.event.inputs.imageTag }}-${{ env.MY_DATE }}" >> $GITHUB_OUTPUT

Containerfiles/Neutron-oslo_db-Containerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
ARG VERSION=master-ubuntu_jammy
33
FROM openstackhelm/neutron:$VERSION as build
44
ARG PLUGIN_VERSION=master
5+
ARG NEUTRON_VERSION=master
56
RUN apt update && apt install -y git
67
RUN export ORIG_PLUGIN_VERSION="${PLUGIN_VERSION}"; \
78
if [ "${PLUGIN_VERSION}" != 'master' ]; then export PLUGIN_VERSION=stable/${PLUGIN_VERSION}; fi; \
89
. /var/lib/openstack/bin/activate; \
9-
/var/lib/openstack/bin/pip install git+https://github.com/openstack/oslo.db@${PLUGIN_VERSION}#egg=oslo_db
10+
/var/lib/openstack/bin/pip install --upgrade \
11+
git+https://github.com/openstack/oslo.db@${PLUGIN_VERSION}#egg=oslo_db \
12+
git+https://github.com/rackerlabs/neutron@${NEUTRON_VERSION}#egg=neutron
1013

1114
FROM openstackhelm/neutron:${VERSION}
1215
COPY --from=build /var/lib/openstack/. /var/lib/openstack/

0 commit comments

Comments
 (0)