refactor: migrate all images to external repositories (#3311)
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com> Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
f1d6d6a575
commit
5f0a9ccc56
57 files changed
+211
-3964
No files matched your search
@@ -11,9 +11,6 @@ inputs:
|
||||
network_backend:
|
||||
description: Network backend to use for the test
|
||||
default: openvswitch
|
||||
depot_build_id:
|
||||
description: Depot build ID to use for the test
|
||||
default: ''
|
||||
use_mirrors:
|
||||
description: Use mirrors for container images
|
||||
default: "true"
|
||||
@@ -44,11 +41,6 @@ runs:
|
||||
UV_PYTHON_DOWNLOADS: never
|
||||
UV_PYTHON_PREFERENCE: only-system
|
||||
|
||||
- uses: depot/setup-action@v1
|
||||
if: ${{ inputs.depot_build_id != '' }}
|
||||
with:
|
||||
oidc: true
|
||||
|
||||
- shell: bash
|
||||
if: ${{ inputs.use_mirrors == 'true' }}
|
||||
run: |
|
||||
@@ -69,9 +61,8 @@ runs:
|
||||
run: rm -rfv /usr/local/bin/helm || true
|
||||
|
||||
- shell: bash
|
||||
run: sudo --preserve-env=ANSIBLE_PYTHON_INTERPRETER,ATMOSPHERE_NETWORK_BACKEND,DEPOT_BUILD_ID,DEPOT_TOKEN,MOLECULE_CSI_DRIVER env "PATH=$PATH" molecule test -s ${{ inputs.scenario }}
|
||||
run: sudo --preserve-env=ANSIBLE_PYTHON_INTERPRETER,ATMOSPHERE_NETWORK_BACKEND,MOLECULE_CSI_DRIVER env "PATH=$PATH" molecule test -s ${{ inputs.scenario }}
|
||||
env:
|
||||
ANSIBLE_PYTHON_INTERPRETER: /usr/bin/python3
|
||||
ATMOSPHERE_NETWORK_BACKEND: ${{ inputs.network_backend }}
|
||||
DEPOT_BUILD_ID: ${{ inputs.depot_build_id }}
|
||||
MOLECULE_CSI_DRIVER: ${{ inputs.csi_driver }}
|
||||
@@ -60,36 +60,6 @@ jobs:
|
||||
fetch-depth: 0
|
||||
- uses: ./.github/actions/build
|
||||
|
||||
images:
|
||||
runs-on: ubuntu-latest
|
||||
concurrency:
|
||||
group: images-push-${{ github.ref }}
|
||||
cancel-in-progress: false
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: depot/setup-action@v1
|
||||
- run: echo tag=$(echo ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }} | cut -d'/' -f2) >> $GITHUB_OUTPUT
|
||||
id: image_info
|
||||
- uses: docker/login-action@v3
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
with:
|
||||
registry: harbor.atmosphere.dev
|
||||
username: ${{ secrets.HARBOR_USERNAME }}
|
||||
password: ${{ secrets.HARBOR_PASSWORD }}
|
||||
- uses: depot/bake-action@v1
|
||||
id: bake
|
||||
with:
|
||||
project: jd10vkmkwv
|
||||
save: ${{ github.event_name == 'pull_request' }}
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
env:
|
||||
TAG: ${{ steps.image_info.outputs.tag }}
|
||||
outputs:
|
||||
build-id: ${{ steps.bake.outputs.build-id }}
|
||||
|
||||
keycloak:
|
||||
runs-on: vexxhost-ubuntu-22.04-4
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
@@ -108,11 +78,6 @@ jobs:
|
||||
concurrency:
|
||||
group: ${{ github.job }}-${{ matrix.network_backend }}-${{ github.event.pull_request.number }}
|
||||
cancel-in-progress: true
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
needs:
|
||||
- images
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -125,4 +90,3 @@ jobs:
|
||||
with:
|
||||
scenario: aio
|
||||
network_backend: ${{ matrix.network_backend }}
|
||||
depot_build_id: ${{ needs.images.outputs.build-id }}
|
||||
@@ -80,4 +80,14 @@ spec:
|
||||
value: ovn-ovsdb-sb
|
||||
- name: OVN_SSL_ENABLE
|
||||
value: "no"
|
||||
volumeMounts:
|
||||
- name: var-log-ovn
|
||||
mountPath: /var/log/ovn
|
||||
- name: var-run-ovn
|
||||
mountPath: /var/run/ovn
|
||||
volumes:
|
||||
- name: var-log-ovn
|
||||
emptyDir: {}
|
||||
- name: var-run-ovn
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
@@ -108,11 +108,15 @@ spec:
|
||||
mountPath: /var/run/ovn
|
||||
- name: data
|
||||
mountPath: /etc/ovn
|
||||
- name: var-log-ovn
|
||||
mountPath: /var/log/ovn
|
||||
volumes:
|
||||
- name: run-openvswitch
|
||||
hostPath:
|
||||
path: /run/openvswitch
|
||||
type: DirectoryOrCreate
|
||||
- name: var-log-ovn
|
||||
emptyDir: {}
|
||||
{{- if not .Values.volume.ovn_ovsdb_nb.enabled }}
|
||||
- name: data
|
||||
emptyDir: {}
|
||||
|
||||
@@ -108,11 +108,15 @@ spec:
|
||||
mountPath: /var/run/ovn
|
||||
- name: data
|
||||
mountPath: /etc/ovn
|
||||
- name: var-log-ovn
|
||||
mountPath: /var/log/ovn
|
||||
volumes:
|
||||
- name: run-openvswitch
|
||||
hostPath:
|
||||
path: /run/openvswitch
|
||||
type: DirectoryOrCreate
|
||||
- name: var-log-ovn
|
||||
emptyDir: {}
|
||||
{{- if not .Values.volume.ovn_ovsdb_sb.enabled }}
|
||||
- name: data
|
||||
emptyDir: {}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
diff --git a/ovn/templates/deployment-northd.yaml b/ovn/templates/deployment-northd.yaml
|
||||
index 1234567..abcdefg 100644
|
||||
--- a/ovn/templates/deployment-northd.yaml
|
||||
+++ b/ovn/templates/deployment-northd.yaml
|
||||
@@ -78,5 +78,15 @@ spec:
|
||||
- name: OVN_KUBERNETES_SB_STATEFULSET
|
||||
value: ovn-ovsdb-sb
|
||||
- name: OVN_SSL_ENABLE
|
||||
value: "no"
|
||||
+ volumeMounts:
|
||||
+ - name: var-log-ovn
|
||||
+ mountPath: /var/log/ovn
|
||||
+ - name: var-run-ovn
|
||||
+ mountPath: /var/run/ovn
|
||||
+ volumes:
|
||||
+ - name: var-log-ovn
|
||||
+ emptyDir: {}
|
||||
+ - name: var-run-ovn
|
||||
+ emptyDir: {}
|
||||
{{- end }}
|
||||
diff --git a/ovn/templates/statefulset-ovsdb-nb.yaml b/ovn/templates/statefulset-ovsdb-nb.yaml
|
||||
index d19d5105..f964c4b6 100644
|
||||
--- a/ovn/templates/statefulset-ovsdb-nb.yaml
|
||||
+++ b/ovn/templates/statefulset-ovsdb-nb.yaml
|
||||
@@ -108,11 +108,15 @@ spec:
|
||||
mountPath: /var/run/ovn
|
||||
- name: data
|
||||
mountPath: /etc/ovn
|
||||
+ - name: var-log-ovn
|
||||
+ mountPath: /var/log/ovn
|
||||
volumes:
|
||||
- name: run-openvswitch
|
||||
hostPath:
|
||||
path: /run/openvswitch
|
||||
type: DirectoryOrCreate
|
||||
+ - name: var-log-ovn
|
||||
+ emptyDir: {}
|
||||
{{- if not .Values.volume.ovn_ovsdb_nb.enabled }}
|
||||
- name: data
|
||||
emptyDir: {}
|
||||
diff --git a/ovn/templates/statefulset-ovsdb-sb.yaml b/ovn/templates/statefulset-ovsdb-sb.yaml
|
||||
index a6180aaa..31174aa5 100644
|
||||
--- a/ovn/templates/statefulset-ovsdb-sb.yaml
|
||||
+++ b/ovn/templates/statefulset-ovsdb-sb.yaml
|
||||
@@ -108,11 +108,15 @@ spec:
|
||||
mountPath: /var/run/ovn
|
||||
- name: data
|
||||
mountPath: /etc/ovn
|
||||
+ - name: var-log-ovn
|
||||
+ mountPath: /var/log/ovn
|
||||
volumes:
|
||||
- name: run-openvswitch
|
||||
hostPath:
|
||||
path: /run/openvswitch
|
||||
type: DirectoryOrCreate
|
||||
+ - name: var-log-ovn
|
||||
+ emptyDir: {}
|
||||
{{- if not .Values.volume.ovn_ovsdb_sb.enabled }}
|
||||
- name: data
|
||||
emptyDir: {}
|
||||
-297
@@ -1,297 +0,0 @@
|
||||
variable "REGISTRY" {
|
||||
default = "harbor.atmosphere.dev/library"
|
||||
}
|
||||
|
||||
variable "TAG" {
|
||||
default = "main"
|
||||
}
|
||||
|
||||
variable "UV_CACHE_ID" {
|
||||
default = "uv-${TAG}"
|
||||
}
|
||||
|
||||
target "ubuntu" {
|
||||
context = "images/ubuntu"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
contexts = {
|
||||
"ubuntu" = "docker-image://docker.io/library/ubuntu:noble-20250529"
|
||||
}
|
||||
}
|
||||
|
||||
target "ovsinit" {
|
||||
context = "images/ovsinit"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
contexts = {
|
||||
"runtime" = "docker-image://docker.io/library/debian:bullseye-slim"
|
||||
"rust" = "docker-image://docker.io/library/rust:1.87-bullseye"
|
||||
"src" = "./crates/ovsinit"
|
||||
}
|
||||
}
|
||||
|
||||
target "ubuntu-cloud-archive" {
|
||||
context = "images/ubuntu-cloud-archive"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
contexts = {
|
||||
"ubuntu" = "target:ubuntu"
|
||||
}
|
||||
}
|
||||
|
||||
target "python-base" {
|
||||
context = "images/python-base"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
contexts = {
|
||||
"ubuntu-cloud-archive" = "target:ubuntu-cloud-archive"
|
||||
}
|
||||
}
|
||||
|
||||
target "openstack-venv-builder" {
|
||||
context = "images/openstack-venv-builder"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
args = {
|
||||
UV_CACHE_ID = "${UV_CACHE_ID}"
|
||||
}
|
||||
|
||||
contexts = {
|
||||
"ubuntu-cloud-archive" = "target:ubuntu-cloud-archive"
|
||||
"python-base" = "target:python-base"
|
||||
}
|
||||
}
|
||||
|
||||
target "openstack-runtime" {
|
||||
context = "images/openstack-runtime"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
contexts = {
|
||||
"base" = "target:ubuntu-cloud-archive"
|
||||
}
|
||||
}
|
||||
|
||||
target "openstack-python-runtime" {
|
||||
context = "images/openstack-runtime"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
contexts = {
|
||||
"base" = "target:python-base"
|
||||
}
|
||||
}
|
||||
|
||||
target "keepalived" {
|
||||
context = "images/keepalived"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
contexts = {
|
||||
"ubuntu" = "target:ubuntu"
|
||||
}
|
||||
|
||||
tags = [
|
||||
"${REGISTRY}/keepalived:${TAG}"
|
||||
]
|
||||
}
|
||||
|
||||
target "libvirtd" {
|
||||
context = "images/libvirtd"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
contexts = {
|
||||
"openstack-runtime" = "target:openstack-runtime"
|
||||
}
|
||||
|
||||
args = {
|
||||
PROJECT = "nova"
|
||||
}
|
||||
|
||||
tags = [
|
||||
"${REGISTRY}/libvirtd:${TAG}"
|
||||
]
|
||||
}
|
||||
|
||||
target "netoffload" {
|
||||
context = "images/netoffload"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
contexts = {
|
||||
"golang" = "docker-image://docker.io/library/golang:1.24"
|
||||
"ubuntu" = "target:ubuntu"
|
||||
}
|
||||
|
||||
tags = [
|
||||
"${REGISTRY}/netoffload:${TAG}"
|
||||
]
|
||||
}
|
||||
|
||||
target "nova-ssh" {
|
||||
context = "images/nova-ssh"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
contexts = {
|
||||
"openstack-runtime" = "target:openstack-runtime"
|
||||
}
|
||||
|
||||
args = {
|
||||
PROJECT = "nova"
|
||||
SHELL = "/bin/bash"
|
||||
}
|
||||
|
||||
tags = [
|
||||
"${REGISTRY}/nova-ssh:${TAG}"
|
||||
]
|
||||
}
|
||||
|
||||
target "openvswitch" {
|
||||
context = "images/openvswitch"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
contexts = {
|
||||
"centos" = "docker-image://quay.io/centos/centos:stream9"
|
||||
}
|
||||
}
|
||||
|
||||
target "ovn" {
|
||||
name = "ovn-${component}"
|
||||
matrix = {
|
||||
component = ["host", "central"]
|
||||
}
|
||||
|
||||
context = "images/ovn"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
contexts = {
|
||||
"golang" = "docker-image://docker.io/library/golang:1.24"
|
||||
"openvswitch" = "target:openvswitch"
|
||||
"ovsinit" = "target:ovsinit"
|
||||
}
|
||||
|
||||
args = {
|
||||
OVN_COMPONENT = "${component}"
|
||||
}
|
||||
|
||||
tags = [
|
||||
"${REGISTRY}/ovn-${component}:${TAG}"
|
||||
]
|
||||
}
|
||||
|
||||
target "python-openstackclient" {
|
||||
context = "images/python-openstackclient"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
args = {
|
||||
UV_CACHE_ID = "${UV_CACHE_ID}"
|
||||
}
|
||||
|
||||
contexts = {
|
||||
"openstack-venv-builder" = "target:openstack-venv-builder"
|
||||
"python-base" = "target:python-base"
|
||||
}
|
||||
|
||||
tags = [
|
||||
"${REGISTRY}/python-openstackclient:${TAG}"
|
||||
]
|
||||
}
|
||||
|
||||
target "neutron-source" {
|
||||
context = "images/source-patch"
|
||||
target = "unshallow"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
contexts = {
|
||||
"git" = "https://github.com/openstack/neutron.git#46f4ef447537d80bff2bb64da6a61fff40e8fcc3" # renovate: branch=master
|
||||
"patches" = "patches/openstack/neutron"
|
||||
}
|
||||
}
|
||||
|
||||
target "neutron" {
|
||||
context = "images/neutron"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
args = {
|
||||
PROJECT = "neutron"
|
||||
UV_CACHE_ID = "${UV_CACHE_ID}"
|
||||
}
|
||||
|
||||
contexts = {
|
||||
"neutron-source" = "target:neutron-source"
|
||||
"openstack-python-runtime" = "target:openstack-python-runtime"
|
||||
"openstack-venv-builder" = "target:openstack-venv-builder"
|
||||
"ovsinit" = "target:ovsinit"
|
||||
}
|
||||
|
||||
tags = [
|
||||
"${REGISTRY}/neutron:${TAG}"
|
||||
]
|
||||
}
|
||||
|
||||
target "openstack" {
|
||||
name = "openstack-${service}"
|
||||
matrix = {
|
||||
service = [
|
||||
"barbican",
|
||||
"cinder",
|
||||
"designate",
|
||||
"glance",
|
||||
"heat",
|
||||
"horizon",
|
||||
"ironic",
|
||||
"keystone",
|
||||
"magnum",
|
||||
"manila",
|
||||
"nova",
|
||||
"octavia",
|
||||
"ovn-bgp-agent",
|
||||
"placement",
|
||||
"staffeln",
|
||||
"tempest",
|
||||
]
|
||||
}
|
||||
|
||||
context = "images/${service}"
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
|
||||
args = {
|
||||
PROJECT = "${service}"
|
||||
UV_CACHE_ID = "${UV_CACHE_ID}"
|
||||
}
|
||||
|
||||
contexts = {
|
||||
"openstack-python-runtime" = "target:openstack-python-runtime"
|
||||
"openstack-venv-builder" = "target:openstack-venv-builder"
|
||||
"ovsinit" = "target:ovsinit"
|
||||
}
|
||||
|
||||
tags = [
|
||||
"${REGISTRY}/${service}:${TAG}"
|
||||
]
|
||||
}
|
||||
|
||||
group "default" {
|
||||
targets = [
|
||||
"keepalived",
|
||||
"libvirtd",
|
||||
"netoffload",
|
||||
"neutron",
|
||||
"nova-ssh",
|
||||
"openstack-barbican",
|
||||
"openstack-cinder",
|
||||
"openstack-designate",
|
||||
"openstack-glance",
|
||||
"openstack-heat",
|
||||
"openstack-horizon",
|
||||
"openstack-ironic",
|
||||
"openstack-keystone",
|
||||
"openstack-magnum",
|
||||
"openstack-manila",
|
||||
"openstack-nova",
|
||||
"openstack-octavia",
|
||||
"openstack-ovn-bgp-agent",
|
||||
"openstack-placement",
|
||||
"openstack-staffeln",
|
||||
"openstack-tempest",
|
||||
"ovn-central",
|
||||
"ovn-host",
|
||||
"python-openstackclient",
|
||||
]
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/barbican repo=https://github.com/openstack/barbican.git branch=master
|
||||
ARG BARBICAN_GIT_REF=842ea71bca3aa99ecfb7dac653e8fee7119dd057
|
||||
ADD --keep-git-dir=true https://github.com/openstack/barbican.git#${BARBICAN_GIT_REF} /src/barbican
|
||||
RUN git -C /src/barbican fetch --unshallow
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/barbican \
|
||||
pykmip
|
||||
EOF
|
||||
|
||||
FROM openstack-python-runtime
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
@@ -1,38 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/cinder repo=https://github.com/openstack/cinder.git branch=master
|
||||
ARG CINDER_GIT_REF=d9a7d06907d7e3b21fc08d5311a69aa1e4bff951
|
||||
ADD --keep-git-dir=true https://github.com/openstack/cinder.git#${CINDER_GIT_REF} /src/cinder
|
||||
RUN git -C /src/cinder fetch --unshallow
|
||||
COPY patches/cinder /patches/cinder
|
||||
RUN git -C /src/cinder apply --verbose /patches/cinder/*
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/cinder \
|
||||
purestorage \
|
||||
python-3parclient \
|
||||
storpool \
|
||||
storpool.spopenstack
|
||||
EOF
|
||||
ADD --chmod=644 \
|
||||
https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/cinder/openstack/caracal/storpool.py \
|
||||
/var/lib/openstack/lib/python3.12/site-packages/cinder/volume/drivers/storpool.py
|
||||
ADD --chmod=644 \
|
||||
https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/caracal/storpool.py \
|
||||
/var/lib/openstack/lib/python3.12/site-packages/os_brick/initiator/connectors/storpool.py
|
||||
|
||||
FROM openstack-python-runtime
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
ceph-common dmidecode lsscsi nfs-common nvme-cli python3-rados python3-rbd qemu-utils qemu-block-extra sysfsutils udev util-linux
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
ADD --chmod=755 https://dl.k8s.io/release/v1.34.1/bin/linux/amd64/kubectl /usr/local/bin/kubectl
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
@@ -1,145 +0,0 @@
|
||||
From 5ffb50d2873c48998491950138c848a9feef07fc Mon Sep 17 00:00:00 2001
|
||||
From: ricolin <ricolin@ricolky.com>
|
||||
Date: Fri, 1 Mar 2024 13:50:13 +0800
|
||||
Subject: [PATCH 1/3] Create encrypted volumes directly to RBD
|
||||
|
||||
This fix slow on create encrypted volumes with temp file import.
|
||||
Encrypted volume create is now directly upload to RBD with qemu-img
|
||||
command without temprory image file generated.
|
||||
|
||||
Closes-Bug: #2055517
|
||||
Change-Id: If7a72a4acd5600de1350289a9d9c38017d42659e
|
||||
---
|
||||
cinder/tests/unit/volume/drivers/test_rbd.py | 9 +--
|
||||
cinder/volume/drivers/rbd.py | 62 +++++++++----------
|
||||
...ate-encrypted-volume-c1bb6b44b85c0242.yaml | 7 +++
|
||||
3 files changed, 40 insertions(+), 38 deletions(-)
|
||||
create mode 100644 releasenotes/notes/improve-create-encrypted-volume-c1bb6b44b85c0242.yaml
|
||||
|
||||
diff --git a/cinder/tests/unit/volume/drivers/test_rbd.py b/cinder/tests/unit/volume/drivers/test_rbd.py
|
||||
index f1ffeb89e..cf768df06 100644
|
||||
--- a/cinder/tests/unit/volume/drivers/test_rbd.py
|
||||
+++ b/cinder/tests/unit/volume/drivers/test_rbd.py
|
||||
@@ -3247,7 +3247,6 @@ class RBDTestCase(test.TestCase):
|
||||
self.__dict__ = d
|
||||
|
||||
mock_temp_file.return_value.__enter__.side_effect = [
|
||||
- DictObj({'name': '/imgfile'}),
|
||||
DictObj({'name': '/passfile'})]
|
||||
|
||||
key_mgr = fake_keymgr.fake_api()
|
||||
@@ -3268,15 +3267,13 @@ class RBDTestCase(test.TestCase):
|
||||
self.context)
|
||||
mock_open.assert_called_with('/passfile', 'w')
|
||||
|
||||
- mock_exec.assert_any_call(
|
||||
+ mock_exec.assert_called_with(
|
||||
'qemu-img', 'create', '-f', 'luks', '-o',
|
||||
'cipher-alg=aes-256,cipher-mode=xts,ivgen-alg=essiv',
|
||||
'--object',
|
||||
'secret,id=luks_sec,format=raw,file=/passfile',
|
||||
- '-o', 'key-secret=luks_sec', '/imgfile', '12288M')
|
||||
- mock_exec.assert_any_call(
|
||||
- 'rbd', 'import', '--dest-pool', 'rbd', '--order', 22,
|
||||
- '/imgfile', self.volume_c.name)
|
||||
+ '-o', 'key-secret=luks_sec', 'rbd:rbd/%s' % self.volume_c.name,
|
||||
+ '12288M')
|
||||
|
||||
@mock.patch('cinder.objects.Volume.get_by_id')
|
||||
@mock.patch('cinder.db.volume_glance_metadata_get', return_value={})
|
||||
diff --git a/cinder/volume/drivers/rbd.py b/cinder/volume/drivers/rbd.py
|
||||
index 1f4dac8d9..aace801f3 100644
|
||||
--- a/cinder/volume/drivers/rbd.py
|
||||
+++ b/cinder/volume/drivers/rbd.py
|
||||
@@ -1089,8 +1089,8 @@ class RBDDriver(driver.CloneableImageVD, driver.MigrateVD,
|
||||
context: context.RequestContext) -> None:
|
||||
"""Create an encrypted volume.
|
||||
|
||||
- This works by creating an encrypted image locally,
|
||||
- and then uploading it to the volume.
|
||||
+ This works by creating an encrypted image and
|
||||
+ then uploading it to the volume directly.
|
||||
"""
|
||||
encryption = volume_utils.check_encryption_provider(volume, context)
|
||||
|
||||
@@ -1102,37 +1102,35 @@ class RBDDriver(driver.CloneableImageVD, driver.MigrateVD,
|
||||
# create a file
|
||||
tmp_dir = volume_utils.image_conversion_dir()
|
||||
|
||||
- with tempfile.NamedTemporaryFile(dir=tmp_dir) as tmp_image:
|
||||
- with tempfile.NamedTemporaryFile(dir=tmp_dir) as tmp_key:
|
||||
- with open(tmp_key.name, 'w') as f:
|
||||
- f.write(passphrase)
|
||||
-
|
||||
- cipher_spec = image_utils.decode_cipher(encryption['cipher'],
|
||||
- encryption['key_size'])
|
||||
-
|
||||
- create_cmd = (
|
||||
- 'qemu-img', 'create', '-f', 'luks',
|
||||
- '-o', 'cipher-alg=%(cipher_alg)s,'
|
||||
- 'cipher-mode=%(cipher_mode)s,'
|
||||
- 'ivgen-alg=%(ivgen_alg)s' % cipher_spec,
|
||||
- '--object', 'secret,id=luks_sec,'
|
||||
- 'format=raw,file=%(passfile)s' % {'passfile':
|
||||
- tmp_key.name},
|
||||
- '-o', 'key-secret=luks_sec',
|
||||
- tmp_image.name,
|
||||
- '%sM' % (volume.size * 1024))
|
||||
- self._execute(*create_cmd)
|
||||
-
|
||||
- # Copy image into RBD
|
||||
- chunk_size = self.configuration.rbd_store_chunk_size * units.Mi
|
||||
- order = int(math.log(chunk_size, 2))
|
||||
+ with tempfile.NamedTemporaryFile(dir=tmp_dir) as tmp_key:
|
||||
+ with open(tmp_key.name, 'w') as f:
|
||||
+ f.write(passphrase)
|
||||
|
||||
- cmd = ['rbd', 'import',
|
||||
- '--dest-pool', self.configuration.rbd_pool,
|
||||
- '--order', order,
|
||||
- tmp_image.name, volume.name]
|
||||
- cmd.extend(self._ceph_args())
|
||||
- self._execute(*cmd)
|
||||
+ cipher_spec = image_utils.decode_cipher(encryption['cipher'],
|
||||
+ encryption['key_size'])
|
||||
+
|
||||
+ _, conf, user_id, _ = self._get_config_tuple()
|
||||
+ rbd_options = ''
|
||||
+ if user_id:
|
||||
+ rbd_options += ':id=%(user_id)s' % {'user_id': user_id}
|
||||
+ if conf:
|
||||
+ rbd_options += ':conf=%(conf)s' % {'conf': conf}
|
||||
+ create_cmd = (
|
||||
+ 'qemu-img', 'create', '-f', 'luks',
|
||||
+ '-o', 'cipher-alg=%(cipher_alg)s,'
|
||||
+ 'cipher-mode=%(cipher_mode)s,'
|
||||
+ 'ivgen-alg=%(ivgen_alg)s' % cipher_spec,
|
||||
+ '--object', 'secret,id=luks_sec,'
|
||||
+ 'format=raw,file=%(passfile)s' % {'passfile':
|
||||
+ tmp_key.name},
|
||||
+ '-o', 'key-secret=luks_sec',
|
||||
+ 'rbd:%(pool_name)s/%(image_name)s%(rbd_options)s' % {
|
||||
+ 'pool_name': self.configuration.rbd_pool,
|
||||
+ 'image_name': volume.name,
|
||||
+ 'rbd_options': rbd_options
|
||||
+ },
|
||||
+ '%sM' % (volume.size * 1024))
|
||||
+ self._execute(*create_cmd)
|
||||
|
||||
def create_volume(self, volume: Volume) -> dict[str, Any]:
|
||||
"""Creates a logical volume."""
|
||||
diff --git a/releasenotes/notes/improve-create-encrypted-volume-c1bb6b44b85c0242.yaml b/releasenotes/notes/improve-create-encrypted-volume-c1bb6b44b85c0242.yaml
|
||||
new file mode 100644
|
||||
index 000000000..8bdff6746
|
||||
--- /dev/null
|
||||
+++ b/releasenotes/notes/improve-create-encrypted-volume-c1bb6b44b85c0242.yaml
|
||||
@@ -0,0 +1,7 @@
|
||||
+---
|
||||
+fixes:
|
||||
+ - |
|
||||
+ [Bug 255517](https://bugs.launchpad.net/cinder/+bug/2055517): Fix slow
|
||||
+ on create encrypted volumes with temp file import. Encrypted volume create
|
||||
+ is now directly upload to rbd with qemu-img command without temprory image
|
||||
+ file generated.
|
||||
--
|
||||
2.34.1
|
||||
@@ -1,144 +0,0 @@
|
||||
From ddb4c87da6d20cc2cf37db70498f6890db1b2498 Mon Sep 17 00:00:00 2001
|
||||
From: ricolin <rlin@vexxhost.com>
|
||||
Date: Tue, 22 Oct 2024 18:31:52 +0800
|
||||
Subject: [PATCH] Directly import converted image to RBD
|
||||
|
||||
For volume encryption from Glance image case,
|
||||
once we cloned the image down, we do convert and import back to RBD.
|
||||
|
||||
This patch allows us to avoid another tempfile write and directly
|
||||
upload image to RBD.
|
||||
|
||||
Related-Bug: #2055517
|
||||
Change-Id: Ib5e15eeee6a02e2833d14ac34f6fdeb4a6548a67
|
||||
---
|
||||
cinder/tests/unit/volume/drivers/test_rbd.py | 2 -
|
||||
cinder/volume/drivers/rbd.py | 57 ++++++++-----------
|
||||
...verted-encrypt-image-005986a59d1027e1.yaml | 9 +++
|
||||
3 files changed, 34 insertions(+), 34 deletions(-)
|
||||
create mode 100644 releasenotes/notes/allow-direct-import-converted-encrypt-image-005986a59d1027e1.yaml
|
||||
|
||||
diff --git a/cinder/volume/drivers/rbd.py b/cinder/volume/drivers/rbd.py
|
||||
index 13f67b3d4..291db326d 100644
|
||||
--- a/cinder/volume/drivers/rbd.py
|
||||
+++ b/cinder/volume/drivers/rbd.py
|
||||
@@ -1992,11 +1991,10 @@ class RBDDriver(driver.CloneableImageVD, driver.MigrateVD,
|
||||
self._copy_image_to_volume(context, volume, image_service, image_id,
|
||||
disable_sparse=disable_sparse)
|
||||
|
||||
- def _encrypt_image(self,
|
||||
- context: context.RequestContext,
|
||||
- volume: Volume,
|
||||
- tmp_dir: str,
|
||||
- src_image_path: Any) -> None:
|
||||
+ def _encrypt_image_and_upload(
|
||||
+ self, context: context.RequestContext,
|
||||
+ volume: Volume, tmp_dir: str, src_image_path: Any
|
||||
+ ) -> None:
|
||||
encryption = volume_utils.check_encryption_provider(
|
||||
volume,
|
||||
context)
|
||||
@@ -2010,6 +2008,19 @@ class RBDDriver(driver.CloneableImageVD, driver.MigrateVD,
|
||||
cipher_spec = image_utils.decode_cipher(encryption['cipher'],
|
||||
encryption['key_size'])
|
||||
|
||||
+ _, conf, user_id, _ = self._get_config_tuple()
|
||||
+ rbd_options = ''
|
||||
+ if user_id:
|
||||
+ rbd_options += f':id={user_id}'
|
||||
+ if conf:
|
||||
+ rbd_options += f':conf={conf}'
|
||||
+
|
||||
+ rbd_dest = 'rbd:%(pool_name)s/%(image_name)s%(rbd_options)s' % {
|
||||
+ 'pool_name': self.configuration.rbd_pool,
|
||||
+ 'image_name': volume.name,
|
||||
+ 'rbd_options': rbd_options
|
||||
+ }
|
||||
+
|
||||
tmp_dir = volume_utils.image_conversion_dir()
|
||||
|
||||
with tempfile.NamedTemporaryFile(prefix='luks_',
|
||||
@@ -2017,18 +2028,10 @@ class RBDDriver(driver.CloneableImageVD, driver.MigrateVD,
|
||||
with open(pass_file.name, 'w') as f:
|
||||
f.write(passphrase)
|
||||
|
||||
- # Convert the raw image to luks
|
||||
- dest_image_path = src_image_path + '.luks'
|
||||
- try:
|
||||
- image_utils.convert_image(src_image_path, dest_image_path,
|
||||
- 'luks', src_format='raw',
|
||||
- cipher_spec=cipher_spec,
|
||||
- passphrase_file=pass_file.name)
|
||||
-
|
||||
- # Replace the original image with the now encrypted image
|
||||
- os.rename(dest_image_path, src_image_path)
|
||||
- finally:
|
||||
- fileutils.delete_if_exists(dest_image_path)
|
||||
+ image_utils.convert_image(src_image_path, rbd_dest,
|
||||
+ 'luks', src_format='raw',
|
||||
+ cipher_spec=cipher_spec,
|
||||
+ passphrase_file=pass_file.name)
|
||||
|
||||
def _copy_image_to_volume(self,
|
||||
context: context.RequestContext,
|
||||
@@ -2047,9 +2050,6 @@ class RBDDriver(driver.CloneableImageVD, driver.MigrateVD,
|
||||
size=volume.size,
|
||||
disable_sparse=disable_sparse)
|
||||
|
||||
- if encrypted:
|
||||
- self._encrypt_image(context, volume, tmp_dir, tmp.name)
|
||||
-
|
||||
@utils.retry(exception.VolumeIsBusy,
|
||||
self.configuration.rados_connection_interval,
|
||||
self.configuration.rados_connection_retries)
|
||||
@@ -2058,17 +2058,21 @@ class RBDDriver(driver.CloneableImageVD, driver.MigrateVD,
|
||||
|
||||
_delete_volume(volume)
|
||||
|
||||
- chunk_size = self.configuration.rbd_store_chunk_size * units.Mi
|
||||
- order = int(math.log(chunk_size, 2))
|
||||
- # keep using the command line import instead of librbd since it
|
||||
- # detects zeroes to preserve sparseness in the image
|
||||
- args = ['rbd', 'import',
|
||||
- '--pool', self.configuration.rbd_pool,
|
||||
- '--order', order,
|
||||
- tmp.name, volume.name,
|
||||
- '--new-format']
|
||||
- args.extend(self._ceph_args())
|
||||
- self._try_execute(*args)
|
||||
+ if encrypted:
|
||||
+ self._encrypt_image_and_upload(
|
||||
+ context, volume, tmp_dir, tmp.name)
|
||||
+ else:
|
||||
+ chunk_size = self.configuration.rbd_store_chunk_size * units.Mi
|
||||
+ order = int(math.log(chunk_size, 2))
|
||||
+ # keep using the command line import instead of librbd since it
|
||||
+ # detects zeroes to preserve sparseness in the image
|
||||
+ args = ['rbd', 'import',
|
||||
+ '--pool', self.configuration.rbd_pool,
|
||||
+ '--order', order,
|
||||
+ tmp.name, volume.name,
|
||||
+ '--new-format']
|
||||
+ args.extend(self._ceph_args())
|
||||
+ self._try_execute(*args)
|
||||
self._resize(volume)
|
||||
# We may need to re-enable replication because we have deleted the
|
||||
# original image and created a new one using the command line import.
|
||||
diff --git a/releasenotes/notes/allow-direct-import-converted-encrypt-image-005986a59d1027e1.yaml b/releasenotes/notes/allow-direct-import-converted-encrypt-image-005986a59d1027e1.yaml
|
||||
new file mode 100644
|
||||
index 000000000..b1544214d
|
||||
--- /dev/null
|
||||
+++ b/releasenotes/notes/allow-direct-import-converted-encrypt-image-005986a59d1027e1.yaml
|
||||
@@ -0,0 +1,9 @@
|
||||
+---
|
||||
+fixes:
|
||||
+ - |
|
||||
+ [Bug 255517](https://bugs.launchpad.net/cinder/+bug/2055517): Improve slow
|
||||
+ on create encrypted volumes with temp file import.
|
||||
+ For volume encryption from Glance image case, once we cloned the image
|
||||
+ down, we do convert and import back to RBD. We now avoid another tempfile
|
||||
+ write and directly upload image to RBD. And it is now directly upload to
|
||||
+ RBD with qemu-img command without temprory converted image file generated.
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM golang:1.22.12 AS builder
|
||||
WORKDIR /workspace
|
||||
RUN \
|
||||
--mount=type=bind,from=source,source=/,target=/workspace/src,readwrite \
|
||||
--mount=type=cache,target=/go/pkg/mod \
|
||||
--mount=type=cache,target=/root/.cache/go-build <<EOF sh -xe
|
||||
make -C /workspace/src binaries
|
||||
mv /workspace/src/bin /workspace/bin
|
||||
EOF
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /workspace/bin/manager /manager
|
||||
USER 65532
|
||||
ENTRYPOINT ["/manager"]
|
||||
@@ -1,27 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/designate repo=https://github.com/openstack/designate.git branch=master
|
||||
ARG DESIGNATE_GIT_REF=035453ffd1ba0f574a1d7f23b458222c0fd8fc68
|
||||
ADD --keep-git-dir=true https://github.com/openstack/designate.git#${DESIGNATE_GIT_REF} /src/designate
|
||||
RUN git -C /src/designate fetch --unshallow
|
||||
COPY patches/designate /patches/designate
|
||||
RUN git -C /src/designate apply --verbose /patches/designate/*
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/designate
|
||||
EOF
|
||||
|
||||
FROM openstack-python-runtime
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
bind9utils
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
-37
@@ -1,37 +0,0 @@
|
||||
From b807373aacf08470527340024b414afe5819d212 Mon Sep 17 00:00:00 2001
|
||||
From: ricolin <rlin@vexxhost.com>
|
||||
Date: Tue, 27 Feb 2024 15:42:31 +0800
|
||||
Subject: [PATCH] Fix Mysql default character setting (utf8mb4)
|
||||
|
||||
Since 8.0 Mysql uses utf8mb4 as default.
|
||||
To use utf8, will change the new comming tables in DATABASE to use
|
||||
`utf8mb3`. And that makes new comming tables not compatible with rest
|
||||
tables within same database or tables from all other database that
|
||||
using default setting.
|
||||
We should make sure we uses utf8mb4 so no confusion or incompatible
|
||||
error will raise.
|
||||
|
||||
Closes-bug: #2033635
|
||||
Change-Id: I7232b55300c8817a00e73e449e03ea6103f40701
|
||||
---
|
||||
.../alembic/versions/15b34ff3ecb8_fix_service_charset.py | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/designate/storage/sqlalchemy/alembic/versions/15b34ff3ecb8_fix_service_charset.py b/designate/storage/sqlalchemy/alembic/versions/15b34ff3ecb8_fix_service_charset.py
|
||||
index 07212b0c..0a6cfef7 100644
|
||||
--- a/designate/storage/sqlalchemy/alembic/versions/15b34ff3ecb8_fix_service_charset.py
|
||||
+++ b/designate/storage/sqlalchemy/alembic/versions/15b34ff3ecb8_fix_service_charset.py
|
||||
@@ -43,6 +43,8 @@ def upgrade() -> None:
|
||||
return
|
||||
|
||||
op.execute('SET foreign_key_checks = 0;')
|
||||
- op.execute('ALTER TABLE service_statuses CONVERT TO CHARACTER SET utf8;')
|
||||
+ op.execute(
|
||||
+ 'ALTER TABLE service_statuses CONVERT TO CHARACTER SET utf8mb4;'
|
||||
+ )
|
||||
op.execute('SET foreign_key_checks = 1;')
|
||||
- op.execute('ALTER DATABASE DEFAULT CHARACTER SET utf8;')
|
||||
+ op.execute('ALTER DATABASE DEFAULT CHARACTER SET utf8mb4;')
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/glance repo=https://github.com/openstack/glance.git branch=master
|
||||
ARG GLANCE_GIT_REF=60a2f055d54eb28413921c84afa7ed400bdb0695
|
||||
ADD --keep-git-dir=true https://github.com/openstack/glance.git#${GLANCE_GIT_REF} /src/glance
|
||||
RUN git -C /src/glance fetch --unshallow
|
||||
# renovate: name=openstack/glance_store repo=https://github.com/openstack/glance_store.git branch=master
|
||||
ARG GLANCE_STORE_GIT_REF=b320f11c8e6c0db495a0d0bd3d43c9406cea1667
|
||||
ADD --keep-git-dir=true https://github.com/openstack/glance_store.git#${GLANCE_STORE_GIT_REF} /src/glance_store
|
||||
RUN git -C /src/glance_store fetch --unshallow
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/glance \
|
||||
/src/glance_store[cinder] \
|
||||
storpool \
|
||||
storpool.spopenstack
|
||||
EOF
|
||||
ADD --chmod=644 \
|
||||
https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/caracal/storpool.py \
|
||||
/var/lib/openstack/lib/python3.12/site-packages/os_brick/initiator/connectors/storpool.py
|
||||
|
||||
FROM openstack-python-runtime
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
ceph-common dmidecode lsscsi nvme-cli python3-rados python3-rbd qemu-block-extra qemu-utils sysfsutils udev util-linux
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
ADD --chmod=755 https://dl.k8s.io/release/v1.34.1/bin/linux/amd64/kubectl /usr/local/bin/kubectl
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
@@ -1,25 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/heat repo=https://github.com/openstack/heat.git branch=master
|
||||
ARG HEAT_GIT_REF=7ffb5dd3c2d76299479d5b55041a021458e5f056
|
||||
ADD --keep-git-dir=true https://github.com/openstack/heat.git#${HEAT_GIT_REF} /src/heat
|
||||
RUN git -C /src/heat fetch --unshallow
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/heat
|
||||
EOF
|
||||
|
||||
FROM openstack-python-runtime
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
curl jq
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
@@ -1,63 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/horizon repo=https://github.com/openstack/horizon.git branch=master
|
||||
ARG HORIZON_GIT_REF=54f710ff815a4f45615bd111bc7ca45f6beb562c
|
||||
ADD --keep-git-dir=true https://github.com/openstack/horizon.git#${HORIZON_GIT_REF} /src/horizon
|
||||
RUN git -C /src/horizon fetch --unshallow
|
||||
# renovate: name=openstack/designate-dashboard repo=https://github.com/openstack/designate-dashboard.git branch=master
|
||||
ARG DESIGNATE_DASHBOARD_GIT_REF=5ae88cbc9c0d728ce94acc568b7c9394ad49f175
|
||||
ADD --keep-git-dir=true https://github.com/openstack/designate-dashboard.git#${DESIGNATE_DASHBOARD_GIT_REF} /src/designate-dashboard
|
||||
RUN git -C /src/designate-dashboard fetch --unshallow
|
||||
# renovate: name=openstack/heat-dashboard repo=https://github.com/openstack/heat-dashboard.git branch=master
|
||||
ARG HEAT_DASHBOARD_GIT_REF=2a5ad239edb99f60ff401e9f4bcdb33f809cd77c
|
||||
ADD --keep-git-dir=true https://github.com/openstack/heat-dashboard.git#${HEAT_DASHBOARD_GIT_REF} /src/heat-dashboard
|
||||
RUN git -C /src/heat-dashboard fetch --unshallow
|
||||
# renovate: name=openstack/ironic-ui repo=https://github.com/openstack/ironic-ui.git branch=master
|
||||
ARG IRONIC_UI_REF=abd2400a0e40fff5b50d5b3490915b4a0f3ebcbd
|
||||
ADD --keep-git-dir=true https://github.com/openstack/ironic-ui.git#${IRONIC_UI_REF} /src/ironic-ui
|
||||
RUN git -C /src/ironic-ui fetch --unshallow
|
||||
# renovate: name=openstack/magnum-ui repo=https://github.com/openstack/magnum-ui.git branch=master
|
||||
ARG MAGNUM_UI_REF=59d8a0864ef10d75baabbde1404f2386759fb2b6
|
||||
ADD --keep-git-dir=true https://github.com/openstack/magnum-ui.git#${MAGNUM_UI_REF} /src/magnum-ui
|
||||
RUN git -C /src/magnum-ui fetch --unshallow
|
||||
# renovate: name=openstack/manila-ui repo=https://github.com/openstack/manila-ui.git branch=master
|
||||
ARG MANILA_UI_REF=40a8a1075c3bd0315c5b25b8a5caf6bdb1ef3c30
|
||||
ADD --keep-git-dir=true https://github.com/openstack/manila-ui.git#${MANILA_UI_REF} /src/manila-ui
|
||||
RUN git -C /src/manila-ui fetch --unshallow
|
||||
# renovate: name=openstack/neutron-vpnaas-dashboard repo=https://github.com/openstack/neutron-vpnaas-dashboard.git branch=master
|
||||
ARG NEUTRON_VPNAAS_DASHBOARD_REF=823399e6187a8c365b1d64b9620f99fd949aadc1
|
||||
ADD --keep-git-dir=true https://github.com/openstack/neutron-vpnaas-dashboard.git#${NEUTRON_VPNAAS_DASHBOARD_REF} /src/neutron-vpnaas-dashboard
|
||||
RUN git -C /src/neutron-vpnaas-dashboard fetch --unshallow
|
||||
# renovate: name=openstack/octavia-dashboard repo=https://github.com/openstack/octavia-dashboard.git branch=master
|
||||
ARG OCTAVIA_DASHBOARD_REF=3386566c7c98a055a4e42797f6843f5a44f9e48e
|
||||
ADD --keep-git-dir=true https://github.com/openstack/octavia-dashboard.git#${OCTAVIA_DASHBOARD_REF} /src/octavia-dashboard
|
||||
RUN git -C /src/octavia-dashboard fetch --unshallow
|
||||
COPY patches/magnum-ui /patches/magnum-ui
|
||||
RUN git -C /src/magnum-ui apply --verbose /patches/magnum-ui/*
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/designate-dashboard \
|
||||
/src/heat-dashboard \
|
||||
/src/horizon \
|
||||
/src/ironic-ui \
|
||||
/src/magnum-ui \
|
||||
/src/manila-ui \
|
||||
/src/neutron-vpnaas-dashboard \
|
||||
/src/octavia-dashboard \
|
||||
pymemcache
|
||||
EOF
|
||||
|
||||
FROM openstack-python-runtime
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
apache2 gettext libapache2-mod-wsgi-py3
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
@@ -1,111 +0,0 @@
|
||||
From 4812585772dbaa9bdb5c2aa7df522d615d747b13 Mon Sep 17 00:00:00 2001
|
||||
From: ricolin <rlin@vexxhost.com>
|
||||
Date: Tue, 9 Sep 2025 14:24:10 +0800
|
||||
Subject: [PATCH] fix: disable resizing for admins
|
||||
|
||||
By default, admins see all clusters and they are allowed to do all
|
||||
actions however the resize function will not work so we're displaying
|
||||
something for admins that they can't use.
|
||||
|
||||
This will hide the resize button for clusters that don't match the
|
||||
project ID of the current user.
|
||||
|
||||
Change-Id: If09c509abdd21a5a7b9bc374af52a06404fb0ff8
|
||||
|
||||
Change-Id: I5f85af7e3b77840c7efb5873ff03139c714a746d
|
||||
Signed-off-by: ricolin <rlin@vexxhost.com>
|
||||
---
|
||||
.../clusters/resize/resize.service.js | 9 ++++---
|
||||
.../clusters/resize/resize.service.spec.js | 27 ++++++++++++++-----
|
||||
2 files changed, 26 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/magnum_ui/static/dashboard/container-infra/clusters/resize/resize.service.js b/magnum_ui/static/dashboard/container-infra/clusters/resize/resize.service.js
|
||||
index dace892..00099a7 100644
|
||||
--- a/magnum_ui/static/dashboard/container-infra/clusters/resize/resize.service.js
|
||||
+++ b/magnum_ui/static/dashboard/container-infra/clusters/resize/resize.service.js
|
||||
@@ -32,6 +32,7 @@
|
||||
resizeService.$inject = [
|
||||
'$rootScope',
|
||||
'$q',
|
||||
+ 'horizon.app.core.openstack-service-api.userSession',
|
||||
'horizon.app.core.openstack-service-api.magnum',
|
||||
'horizon.framework.util.actions.action-result.service',
|
||||
'horizon.framework.util.i18n.gettext',
|
||||
@@ -43,8 +44,8 @@
|
||||
];
|
||||
|
||||
function resizeService(
|
||||
- $rootScope, $q, magnum, actionResult, gettext, $qExtensions, modal, toast, spinnerModal,
|
||||
- resourceType
|
||||
+ $rootScope, $q, userSession, magnum, actionResult, gettext, $qExtensions,
|
||||
+ modal, toast, spinnerModal, resourceType
|
||||
) {
|
||||
|
||||
var modalConfig, formModel;
|
||||
@@ -87,8 +88,8 @@
|
||||
return deferred.promise;
|
||||
}
|
||||
|
||||
- function allowed() {
|
||||
- return $qExtensions.booleanAsPromise(true);
|
||||
+ function allowed(selected) {
|
||||
+ return userSession.isCurrentProject(selected.project_id);
|
||||
}
|
||||
|
||||
function constructModalConfig(nodegroups, workerNodesList) {
|
||||
diff --git a/magnum_ui/static/dashboard/container-infra/clusters/resize/resize.service.spec.js b/magnum_ui/static/dashboard/container-infra/clusters/resize/resize.service.spec.js
|
||||
index 0f64b93..bc49e2c 100644
|
||||
--- a/magnum_ui/static/dashboard/container-infra/clusters/resize/resize.service.spec.js
|
||||
+++ b/magnum_ui/static/dashboard/container-infra/clusters/resize/resize.service.spec.js
|
||||
@@ -18,10 +18,10 @@
|
||||
'use strict';
|
||||
|
||||
describe('horizon.dashboard.container-infra.clusters.resize.service', function() {
|
||||
-
|
||||
- var service, $scope, $q, deferred, magnum, spinnerModal, modalConfig;
|
||||
+ var service, $scope, $q, deferred, magnum, spinnerModal, modalConfig, userSession;
|
||||
var selected = {
|
||||
- id: 1
|
||||
+ id: 1,
|
||||
+ project_id: "f5ed2d21437644adb2669f9ade9c949b"
|
||||
};
|
||||
var modal = {
|
||||
open: function(config) {
|
||||
@@ -50,6 +50,7 @@
|
||||
'horizon.dashboard.container-infra.clusters.resize.service');
|
||||
magnum = $injector.get('horizon.app.core.openstack-service-api.magnum');
|
||||
spinnerModal = $injector.get('horizon.framework.widgets.modal-wait-spinner.service');
|
||||
+ userSession = $injector.get('horizon.app.core.openstack-service-api.userSession');
|
||||
|
||||
spyOn(spinnerModal, 'showModalSpinner').and.callFake(function() {});
|
||||
spyOn(spinnerModal, 'hideModalSpinner').and.callFake(function() {});
|
||||
@@ -60,9 +61,23 @@
|
||||
spyOn(modal, 'open').and.callThrough();
|
||||
}));
|
||||
|
||||
- it('should check the policy if the user is allowed to update cluster', function() {
|
||||
- var allowed = service.allowed();
|
||||
- expect(allowed).toBeTruthy();
|
||||
+ it('should allow user to resize cluster if they are in the same project', async function() {
|
||||
+ spyOn(userSession, 'get').and.returnValue({project_id: selected.project_id});
|
||||
+
|
||||
+ await service.allowed(selected);
|
||||
+ });
|
||||
+
|
||||
+ it('should not allow user to resize cluster if they are in a different project', async function() {
|
||||
+ spyOn(userSession, 'get').and.returnValue({project_id: 'different_project'});
|
||||
+
|
||||
+ try {
|
||||
+ await service.allowed(selected);
|
||||
+ } catch (err) {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ throw new Error('User should not be allowed to resize cluster');
|
||||
+
|
||||
});
|
||||
|
||||
it('should open the modal, hide the loading spinner and check the form model',
|
||||
--
|
||||
2.25.1
|
||||
|
||||
-74
@@ -1,74 +0,0 @@
|
||||
From 6ecbb870f24f5c5c4a5b548166ac292801adda84 Mon Sep 17 00:00:00 2001
|
||||
From: Mohammed Naser <mnaser@vexxhost.com>
|
||||
Date: Sun, 19 Feb 2023 21:39:46 +0000
|
||||
Subject: [PATCH] [capi] Avoid going through Heat for worker list
|
||||
|
||||
By default, Magnum UI goes through Heat to get the list of nodes
|
||||
which is not correct since it's making an assumption that Heat
|
||||
is always in use.
|
||||
|
||||
The fix for this would be to make sure that Magnum has a list of
|
||||
all the VMs in it's database (or some sort of API call that
|
||||
returns them all from the driver) but that's quite a big amount
|
||||
of work to implement for now.
|
||||
|
||||
So for now, if stack_id doesn't look like a UUID, we assume it
|
||||
is deployed using Clsuter API driver for Magnum and look up with
|
||||
that alternative method instead.
|
||||
|
||||
(cherry picked from commit 6f31cc5cacf23398b76392922ee9863d50aa9e7e)
|
||||
(cherry picked from commit d44f16f13a89d7fb00d3d949a392d638ce2d0cc8)
|
||||
(cherry picked from commit 72122e350429590e9002058e7e35c4dcc94d2d4f)
|
||||
|
||||
Change-Id: I62bb6352e54d72296a9639856f8dd3de19ceb869
|
||||
Signed-off-by: ricolin <rlin@vexxhost.com>
|
||||
---
|
||||
magnum_ui/api/rest/magnum.py | 18 ++++++++++++++++++
|
||||
1 file changed, 18 insertions(+)
|
||||
|
||||
diff --git a/magnum_ui/api/rest/magnum.py b/magnum_ui/api/rest/magnum.py
|
||||
index 19fe816..4ae662b 100644
|
||||
--- a/magnum_ui/api/rest/magnum.py
|
||||
+++ b/magnum_ui/api/rest/magnum.py
|
||||
@@ -17,6 +17,8 @@ import re
|
||||
|
||||
from collections import defaultdict
|
||||
|
||||
+from oslo_utils import uuidutils
|
||||
+
|
||||
from django.conf import settings
|
||||
from django.http import HttpResponse
|
||||
from django.http import HttpResponseNotFound
|
||||
@@ -229,6 +231,19 @@ class ClusterResize(generic.View):
|
||||
|
||||
url_regex = r'container_infra/clusters/(?P<cluster_id>[^/]+)/resize$'
|
||||
|
||||
+ def _cluster_api_resize_get(self, request, cluster):
|
||||
+ search_opts = {"name": "%s-" % cluster["stack_id"]}
|
||||
+ servers = api.nova.server_list(request, search_opts=search_opts)[0]
|
||||
+
|
||||
+ worker_nodes = []
|
||||
+ for server in servers:
|
||||
+ control_plane_prefix = "%s-control-plane" % cluster["stack_id"]
|
||||
+ if not server.name.startswith(control_plane_prefix):
|
||||
+ worker_nodes.append({"name": server.name, "id": server.id})
|
||||
+
|
||||
+ return {"cluster": change_to_id(cluster),
|
||||
+ "worker_nodes": worker_nodes}
|
||||
+
|
||||
@rest_utils.ajax()
|
||||
def get(self, request, cluster_id):
|
||||
"""Get cluster details for resize"""
|
||||
@@ -238,6 +253,9 @@ class ClusterResize(generic.View):
|
||||
print(e)
|
||||
return HttpResponseNotFound()
|
||||
|
||||
+ if not uuidutils.is_uuid_like(cluster["stack_id"]):
|
||||
+ return self._cluster_api_resize_get(request, cluster)
|
||||
+
|
||||
try:
|
||||
ngs = magnum.nodegroup_list(request, cluster_id)
|
||||
nodegroups = [n.to_dict() for n in ngs]
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/ironic repo=https://github.com/openstack/ironic.git branch=master
|
||||
ARG IRONIC_GIT_REF=5b2dd69ae16cb3c18c6d21c73e7ad716f078e50e
|
||||
ADD --keep-git-dir=true https://github.com/openstack/ironic.git#${IRONIC_GIT_REF} /src/ironic
|
||||
RUN git -C /src/ironic fetch --unshallow
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/ironic \
|
||||
python-dracclient \
|
||||
sushy
|
||||
EOF
|
||||
|
||||
FROM openstack-python-runtime
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
ethtool ipmitool iproute2 ipxe lshw qemu-block-extra qemu-utils tftpd-hpa
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
@@ -1,12 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM ubuntu
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
curl keepalived
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
@@ -1,46 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/keystone repo=https://github.com/openstack/keystone.git branch=master
|
||||
ARG KEYSTONE_GIT_REF=a568938e0c967a56ade269c93f42718008487b14
|
||||
ADD --keep-git-dir=true https://github.com/openstack/keystone.git#${KEYSTONE_GIT_REF} /src/keystone
|
||||
RUN git -C /src/keystone fetch --unshallow
|
||||
COPY patches/keystone /patches/keystone
|
||||
RUN git -C /src/keystone apply --verbose /patches/keystone/*
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/keystone[ldap] \
|
||||
keystone-keycloak-backend==0.2.0
|
||||
EOF
|
||||
|
||||
FROM openstack-python-runtime
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
apache2 libapache2-mod-wsgi-py3
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
ARG MOD_AUTH_OPENIDC_VERSION=2.4.18.1
|
||||
ARG TARGETARCH
|
||||
RUN <<EOF bash -xe
|
||||
# TODO(mnaser): mod_auth_openidc does not have aarch64 builds
|
||||
if [ "${TARGETARCH}" = "arm64" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
curl
|
||||
curl -LO https://github.com/OpenIDC/mod_auth_openidc/releases/download/v${MOD_AUTH_OPENIDC_VERSION}/libapache2-mod-auth-openidc_${MOD_AUTH_OPENIDC_VERSION}-1.$(lsb_release -sc)_${TARGETARCH}.deb
|
||||
apt-get install -y --no-install-recommends ./libapache2-mod-auth-openidc_${MOD_AUTH_OPENIDC_VERSION}-1.$(lsb_release -sc)_${TARGETARCH}.deb
|
||||
a2enmod auth_openidc
|
||||
apt-get purge -y --auto-remove curl
|
||||
apt-get clean
|
||||
rm -rfv /var/lib/apt/lists/* libapache2-mod-auth-openidc_${MOD_AUTH_OPENIDC_VERSION}-1.$(lsb_release -sc)_${TARGETARCH}.deb
|
||||
EOF
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
@@ -1,44 +0,0 @@
|
||||
From 3d312a6ce35734aa490b2928d0a6f59fd2077119 Mon Sep 17 00:00:00 2001
|
||||
From: ricolin <rlin@vexxhost.com>
|
||||
Date: Mon, 8 Sep 2025 09:56:09 +0800
|
||||
Subject: [PATCH] Revert "setup: Remove pbr's wsgi_scripts"
|
||||
|
||||
This reverts commit 0d2cc1a3af4dbd2825cef5992056bffe935eaadd.
|
||||
---
|
||||
.../notes/remove-wsgi-scripts-615b97ee4d6e0de2.yaml | 8 --------
|
||||
setup.cfg | 4 ++++
|
||||
2 files changed, 4 insertions(+), 8 deletions(-)
|
||||
delete mode 100644 releasenotes/notes/remove-wsgi-scripts-615b97ee4d6e0de2.yaml
|
||||
|
||||
diff --git a/releasenotes/notes/remove-wsgi-scripts-615b97ee4d6e0de2.yaml b/releasenotes/notes/remove-wsgi-scripts-615b97ee4d6e0de2.yaml
|
||||
deleted file mode 100644
|
||||
index 7eb670e3c..000000000
|
||||
--- a/releasenotes/notes/remove-wsgi-scripts-615b97ee4d6e0de2.yaml
|
||||
+++ /dev/null
|
||||
@@ -1,8 +0,0 @@
|
||||
----
|
||||
-upgrade:
|
||||
- - |
|
||||
- The WSGI scripts, ``keystone-wsgi-admin`` and ``keystone-wsgi-public``,
|
||||
- have been removed. Deployment tooling should instead reference the Python
|
||||
- module paths for the service, ``keystone.wsgi.api``, if their chosen WSGI
|
||||
- server supports this (gunicorn, uWSGI) or implement a ``.wsgi`` script
|
||||
- themselves if not (mod_wsgi).
|
||||
diff --git a/setup.cfg b/setup.cfg
|
||||
index 7b0662c7e..1511d4dd5 100644
|
||||
--- a/setup.cfg
|
||||
+++ b/setup.cfg
|
||||
@@ -38,6 +38,10 @@ console_scripts =
|
||||
keystone-manage = keystone.cmd.manage:main
|
||||
keystone-status = keystone.cmd.status:main
|
||||
|
||||
+wsgi_scripts =
|
||||
+ keystone-wsgi-admin = keystone.server.wsgi:initialize_admin_application
|
||||
+ keystone-wsgi-public = keystone.server.wsgi:initialize_public_application
|
||||
+
|
||||
keystone.assignment =
|
||||
sql = keystone.assignment.backends.sql:Assignment
|
||||
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2025-01-15T02:05:46Z
|
||||
|
||||
FROM openstack-runtime
|
||||
ADD --chmod=644 https://download.ceph.com/keys/release.gpg /etc/apt/trusted.gpg.d/ceph.gpg
|
||||
COPY <<EOF /etc/apt/sources.list.d/ceph.list
|
||||
deb http://download.ceph.com/debian-reef/ jammy main
|
||||
EOF
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
ceph-common cgroup-tools dmidecode ebtables iproute2 ipxe-qemu kmod libtpms0 libvirt-clients libvirt-daemon-system openssh-client openvswitch-switch ovmf pm-utils qemu-block-extra qemu-efi-aarch64 qemu-kvm seabios swtpm swtpm-tools
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
@@ -1,35 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM ubuntu AS helm
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
ARG HELM_VERSION=3.14.0
|
||||
ADD https://get.helm.sh/helm-v${HELM_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz /helm.tar.gz
|
||||
RUN tar -xzf /helm.tar.gz
|
||||
RUN mv /${TARGETOS}-${TARGETARCH}/helm /usr/bin/helm
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/magnum repo=https://github.com/openstack/magnum.git branch=master
|
||||
ARG MAGNUM_GIT_REF=eb56e291ad68ff74c7abcc166b8a7092206d16b7
|
||||
ADD --keep-git-dir=true https://github.com/openstack/magnum.git#${MAGNUM_GIT_REF} /src/magnum
|
||||
RUN git -C /src/magnum fetch --unshallow
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/magnum \
|
||||
magnum-cluster-api==0.34.2
|
||||
EOF
|
||||
|
||||
FROM openstack-python-runtime
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
haproxy
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
COPY --from=helm --link /usr/bin/helm /usr/local/bin/helm
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
@@ -1,25 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/manila repo=https://github.com/openstack/manila.git branch=master
|
||||
ARG MANILA_GIT_REF=da85a864b83ef11a068c08f64e1955a45953dc03
|
||||
ADD --keep-git-dir=true https://github.com/openstack/manila.git#${MANILA_GIT_REF} /src/manila
|
||||
RUN git -C /src/manila fetch --unshallow
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/manila
|
||||
EOF
|
||||
|
||||
FROM openstack-python-runtime
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
iproute2 openvswitch-switch python3-ceph-argparse python3-rados
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
@@ -1,20 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM golang AS build
|
||||
# renovate: name=vexxhost/netoffload repo=https://github.com/vexxhost/netoffload.git branch=main
|
||||
ARG NETOFFLOAD_GIT_REF=94b8c0fdb0b83bd1b7e14b9a58077a047c78a800
|
||||
ADD https://github.com/vexxhost/netoffload.git#${NETOFFLOAD_GIT_REF} /src
|
||||
WORKDIR /src
|
||||
RUN go build -v -o offloadctl ./cmd/offloadctl/main.go
|
||||
|
||||
FROM ubuntu
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
jq mstflint
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
COPY --from=build --link /src/offloadctl /usr/local/bin/offloadctl
|
||||
@@ -1,60 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2025-01-24T11:51:19Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/neutron-dynamic-routing repo=https://github.com/openstack/neutron-dynamic-routing.git branch=master
|
||||
ARG NEUTRON_DYNAMIC_ROUTING_GIT_REF=3cba8d7b3ad7b06414ddae8470b080a8479974a3
|
||||
ADD --keep-git-dir=true https://github.com/openstack/neutron-dynamic-routing.git#${NEUTRON_DYNAMIC_ROUTING_GIT_REF} /src/neutron-dynamic-routing
|
||||
RUN git -C /src/neutron-dynamic-routing fetch --unshallow
|
||||
# renovate: name=openstack/neutron-vpnaas repo=https://github.com/openstack/neutron-vpnaas.git branch=master
|
||||
ARG NEUTRON_VPNAAS_GIT_REF=86ffcc8d43818689f2ad5defa94c93fef671064f
|
||||
ADD --keep-git-dir=true https://github.com/openstack/neutron-vpnaas.git#${NEUTRON_VPNAAS_GIT_REF} /src/neutron-vpnaas
|
||||
RUN git -C /src/neutron-vpnaas fetch --unshallow
|
||||
# renovate: name=openstack/networking-baremetal repo=https://github.com/openstack/networking-baremetal.git branch=master
|
||||
ARG NETWORKING_BAREMETAL_GIT_REF=81d40be9ef65c0fd68c83358e316728fdcc9a9ac
|
||||
ADD --keep-git-dir=true https://github.com/openstack/networking-baremetal.git#${NETWORKING_BAREMETAL_GIT_REF} /src/networking-baremetal
|
||||
RUN git -C /src/networking-baremetal fetch --unshallow
|
||||
# renovate: name=openstack/networking-generic-switch repo=https://github.com/openstack/networking-generic-switch.git branch=master
|
||||
ARG NETWORKING_GENERIC_SWITCH_GIT_REF=2f7f3e12369e46294a2be5c780db373ba831124c
|
||||
ADD --keep-git-dir=true https://github.com/openstack/networking-generic-switch.git#${NETWORKING_GENERIC_SWITCH_GIT_REF} /src/networking-generic-switch
|
||||
RUN git -C /src/networking-generic-switch fetch --unshallow
|
||||
# renovate: name=vexxhost/neutron-policy-server repo=https://github.com/vexxhost/neutron-policy-server.git branch=main
|
||||
ARG POLICY_SERVER_GIT_REF=a215317bfa147f29dd4e85ff96a54982384c8ba1
|
||||
ADD --keep-git-dir=true https://github.com/vexxhost/neutron-policy-server.git#${POLICY_SERVER_GIT_REF} /src/neutron-policy-server
|
||||
RUN git -C /src/neutron-policy-server fetch --unshallow
|
||||
# renovate: name=vexxhost/neutron-ovn-network-logging-parser repo=https://github.com/vexxhost/neutron-ovn-network-logging-parser.git branch=main
|
||||
ARG LOG_PASER_GIT_REF=3895d8f9d004e612c71b4f798d31c758e113946b
|
||||
ADD --keep-git-dir=true https://github.com/vexxhost/neutron-ovn-network-logging-parser.git#${LOG_PASER_GIT_REF} /src/neutron-ovn-network-logging-parser
|
||||
RUN git -C /src/neutron-ovn-network-logging-parser fetch --unshallow
|
||||
# renovate: name=openstack/tap-as-a-service repo=https://opendev.org/openstack/tap-as-a-service.git branch=master
|
||||
ARG TAP_AS_A_SERVICE_GIT_REF=7fb35455e056b08088291e048b35c185b2f8f208
|
||||
ADD --keep-git-dir=true https://opendev.org/openstack/tap-as-a-service.git#${TAP_AS_A_SERVICE_GIT_REF} /src/tap-as-a-service
|
||||
RUN git -C /src/tap-as-a-service fetch --unshallow
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN \
|
||||
--mount=type=bind,from=neutron-source,source=/,target=/src/neutron,readwrite \
|
||||
--mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/neutron \
|
||||
/src/neutron-dynamic-routing \
|
||||
/src/neutron-vpnaas \
|
||||
/src/networking-baremetal \
|
||||
/src/networking-generic-switch \
|
||||
/src/neutron-policy-server \
|
||||
/src/neutron-ovn-network-logging-parser \
|
||||
/src/tap-as-a-service \
|
||||
pymemcache
|
||||
EOF
|
||||
|
||||
FROM openstack-python-runtime
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
conntrack dnsmasq dnsmasq-utils ebtables ethtool haproxy iproute2 ipset iptables iputils-arping jq keepalived lshw openvswitch-switch strongswan uuid-runtime
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
COPY --from=ovsinit /usr/local/bin/ovsinit /usr/local/bin/ovsinit
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
@@ -1,24 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM openstack-runtime
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
iproute2 \
|
||||
openssh-server \
|
||||
openssh-client
|
||||
EOF
|
||||
RUN <<EOF bash -xe
|
||||
chown -R nova: /etc/ssh
|
||||
mkdir /var/run/sshd
|
||||
chmod 0755 /var/run/sshd
|
||||
EOF
|
||||
COPY <<EOF /etc/ssh/sshd_config.d/00-hardening.conf
|
||||
Ciphers aes256-ctr,aes192-ctr
|
||||
MACs hmac-sha2-512,hmac-sha2-256
|
||||
KexAlgorithms diffie-hellman-group-exchange-sha256
|
||||
HostKeyAlgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
|
||||
MaxAuthTries 3
|
||||
EOF
|
||||
@@ -1,37 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-12-17T01:27:44Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/nova repo=https://github.com/openstack/nova.git branch=master
|
||||
ARG NOVA_GIT_REF=87bf7700b8e2adecdd854cd1607317048b6d86da
|
||||
ADD --keep-git-dir=true https://github.com/openstack/nova.git#${NOVA_GIT_REF} /src/nova
|
||||
RUN git -C /src/nova fetch --unshallow
|
||||
# renovate: name=vexxhost/nova-scheduler-filters repo=https://github.com/vexxhost/nova-scheduler-filters.git branch=main
|
||||
ARG SCHEDULER_FILTERS_GIT_REF=77ed1c2ca70f4166a6d0995c7d3d90822f0ca6c0
|
||||
ADD --keep-git-dir=true https://github.com/vexxhost/nova-scheduler-filters.git#${SCHEDULER_FILTERS_GIT_REF} /src/nova-scheduler-filters
|
||||
RUN git -C /src/nova-scheduler-filters fetch --unshallow
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/nova \
|
||||
/src/nova-scheduler-filters \
|
||||
python-ironicclient \
|
||||
storpool \
|
||||
storpool.spopenstack
|
||||
EOF
|
||||
ADD --chmod=644 \
|
||||
https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/caracal/storpool.py \
|
||||
/var/lib/openstack/lib/python3.12/site-packages/os_brick/initiator/connectors/storpool.py
|
||||
|
||||
FROM openstack-python-runtime
|
||||
ADD https://github.com/novnc/noVNC.git#v1.6.0 /usr/share/novnc
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
ceph-common dmidecode genisoimage iproute2 libosinfo-bin lsscsi mdevctl ndctl nfs-common nvme-cli openssh-client ovmf python3-libvirt python3-rados python3-rbd qemu-efi-aarch64 qemu-block-extra qemu-utils sysfsutils udev util-linux swtpm swtpm-tools libtpms0
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
@@ -1,30 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/octavia repo=https://github.com/openstack/octavia.git branch=master
|
||||
ARG OCTAVIA_GIT_REF=f6a639bb44127d9ba76b8c1cc72a4f16d75aeb6f
|
||||
ADD --keep-git-dir=true https://github.com/openstack/octavia.git#${OCTAVIA_GIT_REF} /src/octavia
|
||||
RUN git -C /src/octavia fetch --unshallow
|
||||
# renovate: name=openstack/ovn-octavia-provider repo=https://github.com/openstack/ovn-octavia-provider.git branch=master
|
||||
ARG OVN_OCTAVIA_PROVIDER_GIT_REF=df5a9804598efb4af9f7103b604a6988d0aeb004
|
||||
ADD --keep-git-dir=true https://github.com/openstack/ovn-octavia-provider.git#${OVN_OCTAVIA_PROVIDER_GIT_REF} /src/ovn-octavia-provider
|
||||
RUN git -C /src/ovn-octavia-provider fetch --unshallow
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/octavia[redis] \
|
||||
/src/ovn-octavia-provider
|
||||
EOF
|
||||
|
||||
FROM openstack-python-runtime
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
isc-dhcp-client openssh-client
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
@@ -1,12 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM base
|
||||
ONBUILD ARG PROJECT
|
||||
ONBUILD ARG SHELL=/usr/sbin/nologin
|
||||
ONBUILD RUN \
|
||||
groupadd -g 42424 ${PROJECT} && \
|
||||
useradd -u 42424 -g 42424 -M -d /var/lib/${PROJECT} -s ${SHELL} -c "${PROJECT} User" ${PROJECT} && \
|
||||
mkdir -p /etc/${PROJECT} /var/log/${PROJECT} /var/lib/${PROJECT} /var/cache/${PROJECT} && \
|
||||
chown -Rv ${PROJECT}:${PROJECT} /etc/${PROJECT} /var/log/${PROJECT} /var/lib/${PROJECT} /var/cache/${PROJECT}
|
||||
@@ -1,45 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM ubuntu-cloud-archive AS requirements
|
||||
# renovate: name=openstack/requirements repo=https://github.com/openstack/requirements.git branch=master
|
||||
ARG REQUIREMENTS_GIT_REF=d953bdbff8c1357447e53e4230e88949745fa395
|
||||
ADD --keep-git-dir=true https://github.com/openstack/requirements.git#${REQUIREMENTS_GIT_REF} /src/requirements
|
||||
RUN cp /src/requirements/upper-constraints.txt /upper-constraints.txt
|
||||
RUN <<EOF sh -xe
|
||||
sed -i '/glance_store/d' /upper-constraints.txt
|
||||
sed -i '/horizon/d' /upper-constraints.txt
|
||||
EOF
|
||||
|
||||
FROM python-base
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
build-essential \
|
||||
git \
|
||||
libldap2-dev \
|
||||
libpcre3-dev \
|
||||
libsasl2-dev \
|
||||
libssl-dev \
|
||||
lsb-release \
|
||||
openssh-client \
|
||||
python3 \
|
||||
python3-dev
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
||||
COPY --from=requirements --link /upper-constraints.txt /upper-constraints.txt
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv venv --system-site-packages /var/lib/openstack
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
confluent-kafka \
|
||||
cryptography \
|
||||
pymysql \
|
||||
python-binary-memcached \
|
||||
python-memcached \
|
||||
uwsgi
|
||||
EOF
|
||||
@@ -1,23 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM centos
|
||||
ADD --chmod=755 https://github.com/krallin/tini/releases/download/v0.19.0/tini /tini
|
||||
ARG OVS_SERIES=3.3
|
||||
ARG OVS_VERSION=${OVS_SERIES}.0-80
|
||||
RUN <<EOF sh -xe
|
||||
dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \
|
||||
centos-release-nfv-openvswitch.noarch
|
||||
dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \
|
||||
iptables \
|
||||
openvswitch${OVS_SERIES}-${OVS_VERSION}.el9s \
|
||||
openvswitch${OVS_SERIES}-test-${OVS_VERSION}.el9s \
|
||||
python3-netifaces \
|
||||
tcpdump \
|
||||
jq
|
||||
dnf -y clean all
|
||||
rm -rf /var/cache/dnf
|
||||
usermod -u 42424 openvswitch
|
||||
groupmod -g 42424 openvswitch
|
||||
EOF
|
||||
@@ -1,27 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/ovn-bgp-agent repo=https://github.com/openstack/ovn-bgp-agent.git branch=master
|
||||
ARG OVN_BGP_AGENT_GIT_REF=36746cf1c18720e4a9ef45f779cd53c5a412bd6c
|
||||
ADD --keep-git-dir=true https://github.com/openstack/ovn-bgp-agent.git#${OVN_BGP_AGENT_GIT_REF} /src/ovn-bgp-agent
|
||||
RUN git -C /src/ovn-bgp-agent fetch --unshallow
|
||||
COPY patches/ovn-bgp-agent /patches/ovn-bgp-agent
|
||||
RUN git -C /src/ovn-bgp-agent apply --verbose /patches/ovn-bgp-agent/*
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/ovn-bgp-agent[frr_k8s]
|
||||
EOF
|
||||
|
||||
FROM openstack-python-runtime
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
iproute2 openvswitch-switch
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
-787
@@ -1,787 +0,0 @@
|
||||
From 52a6d1f7950d8c486e37c26f5df0b4f1a2f2fd0d Mon Sep 17 00:00:00 2001
|
||||
From: Mohammed Naser <mnaser@vexxhost.com>
|
||||
Date: Thu, 13 Mar 2025 17:48:21 -0400
|
||||
Subject: [PATCH 1/2] Implement driver concept for BGP agent
|
||||
|
||||
This will allow users to plug in their own methods of exposing
|
||||
routes, even out of tree to avoid having additional maintenance
|
||||
burden on upstream.
|
||||
|
||||
Co-Authored-By: Dong Ma <winterma.dong@gmail.com>
|
||||
Change-Id: I97cc32d549fb9be53739331f30bfa61d381bda8b
|
||||
---
|
||||
ovn_bgp_agent/config.py | 3 +
|
||||
ovn_bgp_agent/drivers/driver_api.py | 33 +++
|
||||
.../drivers/openstack/ovn_evpn_driver.py | 8 +-
|
||||
.../openstack/ovn_stretched_l2_bgp_driver.py | 7 +-
|
||||
ovn_bgp_agent/drivers/openstack/utils/bgp.py | 12 +-
|
||||
ovn_bgp_agent/drivers/openstack/utils/evpn.py | 12 +-
|
||||
ovn_bgp_agent/drivers/openstack/utils/frr.py | 201 +++++++++---------
|
||||
.../openstack/test_nb_ovn_bgp_driver.py | 10 +-
|
||||
.../drivers/openstack/test_ovn_bgp_driver.py | 10 +-
|
||||
.../drivers/openstack/test_ovn_evpn_driver.py | 4 +-
|
||||
.../test_ovn_stretched_l2_bgp_driver.py | 10 +-
|
||||
.../unit/drivers/openstack/utils/test_bgp.py | 7 +-
|
||||
.../unit/drivers/openstack/utils/test_evpn.py | 7 +-
|
||||
.../unit/drivers/openstack/utils/test_frr.py | 21 +-
|
||||
setup.cfg | 3 +
|
||||
15 files changed, 202 insertions(+), 146 deletions(-)
|
||||
|
||||
diff --git a/ovn_bgp_agent/config.py b/ovn_bgp_agent/config.py
|
||||
index df41618..4f9155c 100644
|
||||
--- a/ovn_bgp_agent/config.py
|
||||
+++ b/ovn_bgp_agent/config.py
|
||||
@@ -66,6 +66,9 @@ agent_opts = [
|
||||
choices=('ovn_bgp_driver', 'ovn_evpn_driver',
|
||||
'ovn_stretched_l2_bgp_driver', 'nb_ovn_bgp_driver'),
|
||||
default='ovn_bgp_driver'),
|
||||
+ cfg.StrOpt('bgp_driver',
|
||||
+ help='BGP Driver to be used for exposing/witdrawing routes',
|
||||
+ default='frr'),
|
||||
cfg.StrOpt('ovsdb_connection',
|
||||
default='unix:/usr/local/var/run/openvswitch/db.sock',
|
||||
regex=r'^(tcp|ssl|unix):.+',
|
||||
diff --git a/ovn_bgp_agent/drivers/driver_api.py b/ovn_bgp_agent/drivers/driver_api.py
|
||||
index 5a657a0..174f161 100644
|
||||
--- a/ovn_bgp_agent/drivers/driver_api.py
|
||||
+++ b/ovn_bgp_agent/drivers/driver_api.py
|
||||
@@ -1,4 +1,5 @@
|
||||
# Copyright 2021 Red Hat, Inc.
|
||||
+# Copyright 2024 VEXXHOST, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -54,3 +55,35 @@ class AgentDriverBase(object, metaclass=abc.ABCMeta):
|
||||
@abc.abstractmethod
|
||||
def withdraw_subnet(self, subnet):
|
||||
raise NotImplementedError()
|
||||
+
|
||||
+
|
||||
+class BGPDriverBase(object, metaclass=abc.ABCMeta):
|
||||
+ """Base class for BGP drivers.
|
||||
+
|
||||
+ """
|
||||
+
|
||||
+ @classmethod
|
||||
+ def get_instance(cls, specific_driver):
|
||||
+ bgp_driver = stevedore_driver.DriverManager(
|
||||
+ namespace='ovn_bgp_agent.bgp_drivers',
|
||||
+ name=specific_driver,
|
||||
+ invoke_on_load=True
|
||||
+ ).driver
|
||||
+
|
||||
+ return bgp_driver
|
||||
+
|
||||
+ @abc.abstractmethod
|
||||
+ def nd_reconfigure(self, interface, prefix, opts):
|
||||
+ raise NotImplementedError()
|
||||
+
|
||||
+ @abc.abstractmethod
|
||||
+ def vrf_leak(self, vrf, bgp_as, bgp_router_id=None):
|
||||
+ raise NotImplementedError()
|
||||
+
|
||||
+ @abc.abstractmethod
|
||||
+ def vrf_reconfigure(self, evpn_info, action):
|
||||
+ raise NotImplementedError()
|
||||
+
|
||||
+ @abc.abstractmethod
|
||||
+ def set_default_redistribute(self, redist_opts):
|
||||
+ raise NotImplementedError()
|
||||
diff --git a/ovn_bgp_agent/drivers/openstack/ovn_evpn_driver.py b/ovn_bgp_agent/drivers/openstack/ovn_evpn_driver.py
|
||||
index 49cb2aa..e4a7712 100644
|
||||
--- a/ovn_bgp_agent/drivers/openstack/ovn_evpn_driver.py
|
||||
+++ b/ovn_bgp_agent/drivers/openstack/ovn_evpn_driver.py
|
||||
@@ -22,7 +22,6 @@ from oslo_log import log as logging
|
||||
|
||||
from ovn_bgp_agent import constants
|
||||
from ovn_bgp_agent.drivers import driver_api
|
||||
-from ovn_bgp_agent.drivers.openstack.utils import frr
|
||||
from ovn_bgp_agent.drivers.openstack.utils import ovn
|
||||
from ovn_bgp_agent.drivers.openstack.utils import ovs
|
||||
from ovn_bgp_agent.drivers.openstack.watchers import base_watcher
|
||||
@@ -46,6 +45,9 @@ EVPN_INFO = collections.namedtuple(
|
||||
class OVNEVPNDriver(driver_api.AgentDriverBase):
|
||||
|
||||
def __init__(self):
|
||||
+ self.bgp_driver = driver_api.BGPDriverBase.get_instance(
|
||||
+ CONF.bgp_driver)
|
||||
+
|
||||
self.ovn_bridge_mappings = {} # {'public': 'br-ex'}
|
||||
self.ovn_local_cr_lrps = {}
|
||||
self.ovn_local_lrps = {}
|
||||
@@ -242,7 +244,7 @@ class OVNEVPNDriver(driver_api.AgentDriverBase):
|
||||
'vlan': evpn_devices.vlan_name
|
||||
}
|
||||
|
||||
- frr.vrf_reconfigure(evpn_info, action="add-vrf")
|
||||
+ self.bgp_driver.vrf_reconfigure(evpn_info, action="add-vrf")
|
||||
|
||||
self._connect_evpn_to_ovn(evpn_devices.vrf_name, evpn_devices.veth_vrf,
|
||||
evpn_devices.veth_ovs, ips, datapath_bridge,
|
||||
@@ -326,7 +328,7 @@ class OVNEVPNDriver(driver_api.AgentDriverBase):
|
||||
cr_lrp_info.get('mac'))
|
||||
|
||||
evpn_info = {'vni': evpn_vni, 'bgp_as': cr_lrp_info.get('bgp_as')}
|
||||
- frr.vrf_reconfigure(evpn_info, action="del-vrf")
|
||||
+ self.bgp_driver.vrf_reconfigure(evpn_info, action="del-vrf")
|
||||
|
||||
try:
|
||||
del self.ovn_local_cr_lrps[cr_lrp_port_name]
|
||||
diff --git a/ovn_bgp_agent/drivers/openstack/ovn_stretched_l2_bgp_driver.py b/ovn_bgp_agent/drivers/openstack/ovn_stretched_l2_bgp_driver.py
|
||||
index 9eec639..575bb8a 100644
|
||||
--- a/ovn_bgp_agent/drivers/openstack/ovn_stretched_l2_bgp_driver.py
|
||||
+++ b/ovn_bgp_agent/drivers/openstack/ovn_stretched_l2_bgp_driver.py
|
||||
@@ -25,7 +25,6 @@ from ovn_bgp_agent import constants
|
||||
from ovn_bgp_agent.drivers import driver_api
|
||||
from ovn_bgp_agent.drivers.openstack.utils import bgp as bgp_utils
|
||||
from ovn_bgp_agent.drivers.openstack.utils import driver_utils
|
||||
-from ovn_bgp_agent.drivers.openstack.utils import frr
|
||||
from ovn_bgp_agent.drivers.openstack.utils import ovn
|
||||
from ovn_bgp_agent.drivers.openstack.utils import ovs
|
||||
from ovn_bgp_agent.drivers.openstack.watchers import bgp_watcher as watcher
|
||||
@@ -48,6 +47,9 @@ class HashedRoute:
|
||||
|
||||
class OVNBGPStretchedL2Driver(driver_api.AgentDriverBase):
|
||||
def __init__(self):
|
||||
+ self.bgp_driver = driver_api.BGPDriverBase.get_instance(
|
||||
+ CONF.bgp_driver)
|
||||
+
|
||||
self.ovn_local_cr_lrps = {}
|
||||
self.vrf_routes = set()
|
||||
self.ovn_routing_tables_routes = collections.defaultdict()
|
||||
@@ -72,8 +74,7 @@ class OVNBGPStretchedL2Driver(driver_api.AgentDriverBase):
|
||||
self.ovs_idl.start(CONF.ovsdb_connection)
|
||||
|
||||
# Base BGP configuration
|
||||
- # Ensure FRR is configured to leak only kernel routes by default
|
||||
- frr.set_default_redistribute(['kernel'])
|
||||
+ self.bgp_driver.set_default_redistribute(['kernel'])
|
||||
bgp_utils.ensure_base_bgp_configuration()
|
||||
|
||||
# Clear vrf routing table
|
||||
diff --git a/ovn_bgp_agent/drivers/openstack/utils/bgp.py b/ovn_bgp_agent/drivers/openstack/utils/bgp.py
|
||||
index e4a388c..658f540 100644
|
||||
--- a/ovn_bgp_agent/drivers/openstack/utils/bgp.py
|
||||
+++ b/ovn_bgp_agent/drivers/openstack/utils/bgp.py
|
||||
@@ -16,9 +16,9 @@ from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
|
||||
from ovn_bgp_agent import constants
|
||||
+from ovn_bgp_agent.drivers import driver_api
|
||||
from ovn_bgp_agent.drivers.openstack.utils import driver_utils
|
||||
from ovn_bgp_agent.drivers.openstack.utils import evpn
|
||||
-from ovn_bgp_agent.drivers.openstack.utils import frr
|
||||
from ovn_bgp_agent.utils import linux_net
|
||||
|
||||
|
||||
@@ -67,22 +67,24 @@ def withdraw_ips(port_ips, ips_info=None):
|
||||
linux_net.del_ips_from_dev(CONF.bgp_nic, port_ips)
|
||||
|
||||
|
||||
-def ensure_base_bgp_configuration(template=frr.LEAK_VRF_TEMPLATE):
|
||||
+def ensure_base_bgp_configuration():
|
||||
if CONF.exposing_method not in [constants.EXPOSE_METHOD_UNDERLAY,
|
||||
constants.EXPOSE_METHOD_DYNAMIC,
|
||||
constants.EXPOSE_METHOD_OVN]:
|
||||
return
|
||||
|
||||
+ bgp_driver = driver_api.BGPDriverBase.get_instance(
|
||||
+ CONF.bgp_driver)
|
||||
+
|
||||
# Create VRF
|
||||
linux_net.ensure_vrf(CONF.bgp_vrf, CONF.bgp_vrf_table_id)
|
||||
|
||||
# If we expose subnet routes, we should add kernel routes too.
|
||||
if CONF.advertisement_method_tenant_networks == 'subnet':
|
||||
- frr.set_default_redistribute(['connected', 'kernel'])
|
||||
+ bgp_driver.set_default_redistribute(['connected', 'kernel'])
|
||||
|
||||
# Ensure FRR is configure to leak the routes
|
||||
- frr.vrf_leak(CONF.bgp_vrf, CONF.bgp_AS, CONF.bgp_router_id,
|
||||
- template=template)
|
||||
+ bgp_driver.vrf_leak(CONF.bgp_vrf, CONF.bgp_AS, CONF.bgp_router_id)
|
||||
|
||||
# Create OVN dummy device
|
||||
linux_net.ensure_ovn_device(CONF.bgp_nic, CONF.bgp_vrf)
|
||||
diff --git a/ovn_bgp_agent/drivers/openstack/utils/evpn.py b/ovn_bgp_agent/drivers/openstack/utils/evpn.py
|
||||
index be32243..b54aa66 100644
|
||||
--- a/ovn_bgp_agent/drivers/openstack/utils/evpn.py
|
||||
+++ b/ovn_bgp_agent/drivers/openstack/utils/evpn.py
|
||||
@@ -20,8 +20,8 @@ from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
|
||||
from ovn_bgp_agent import constants
|
||||
+from ovn_bgp_agent.drivers import driver_api
|
||||
from ovn_bgp_agent.drivers.openstack.utils import driver_utils
|
||||
-from ovn_bgp_agent.drivers.openstack.utils import frr
|
||||
from ovn_bgp_agent.drivers.openstack.utils import ovs
|
||||
from ovn_bgp_agent import exceptions
|
||||
from ovn_bgp_agent.utils import linux_net
|
||||
@@ -45,6 +45,9 @@ class EvpnBridge:
|
||||
"VXLAN local ip")
|
||||
raise exceptions.ConfOptionRequired(option='evpn_local_ip')
|
||||
|
||||
+ self.bgp_driver = driver_api.BGPDriverBase.get_instance(
|
||||
+ CONF.bgp_driver)
|
||||
+
|
||||
self.ovs_bridge = ovs_bridge
|
||||
self.vni = vni
|
||||
self.mode = mode
|
||||
@@ -85,7 +88,7 @@ class EvpnBridge:
|
||||
linux_net.disable_learning_vxlan_intf(self.vxlan_name)
|
||||
|
||||
LOG.debug('Configure FRR VRF (add)')
|
||||
- frr.vrf_reconfigure(self.evpn_opts, 'add-vrf')
|
||||
+ self.bgp_driver.vrf_reconfigure(self.evpn_opts, 'add-vrf')
|
||||
|
||||
if self.mode == constants.OVN_EVPN_TYPE_L3:
|
||||
LOG.debug('Create L3 EVPN devices')
|
||||
@@ -126,7 +129,7 @@ class EvpnBridge:
|
||||
# otherwise, frr will throw an error that it can only delete
|
||||
# inactive vrf's
|
||||
LOG.debug('Configure FRR VRF (del)')
|
||||
- frr.vrf_reconfigure(self.evpn_opts, action="del-vrf")
|
||||
+ self.bgp_driver.vrf_reconfigure(self.evpn_opts, action="del-vrf")
|
||||
|
||||
self._setup_done = False
|
||||
|
||||
@@ -348,7 +351,8 @@ class VlanDev:
|
||||
self.configure_nd(opt.cidr, opts=opt.options)
|
||||
|
||||
def configure_nd(self, cidr, opts):
|
||||
- self._run(frr.nd_reconfigure, self.veth_vrf, cidr, opts)
|
||||
+ bgp_driver = driver_api.BGPDriverBase.get_instance(CONF.bgp_driver)
|
||||
+ self._run(bgp_driver.nd_reconfigure, self.veth_vrf, cidr, opts)
|
||||
|
||||
def add_ips(self, ips: list):
|
||||
self._custom_ips.update(ips)
|
||||
diff --git a/ovn_bgp_agent/drivers/openstack/utils/frr.py b/ovn_bgp_agent/drivers/openstack/utils/frr.py
|
||||
index 5f82583..3b3aea4 100644
|
||||
--- a/ovn_bgp_agent/drivers/openstack/utils/frr.py
|
||||
+++ b/ovn_bgp_agent/drivers/openstack/utils/frr.py
|
||||
@@ -20,6 +20,7 @@ from oslo_log import log as logging
|
||||
from oslo_serialization import jsonutils
|
||||
|
||||
from ovn_bgp_agent import constants
|
||||
+from ovn_bgp_agent.drivers import driver_api
|
||||
import ovn_bgp_agent.privileged.vtysh
|
||||
|
||||
CONF = cfg.CONF
|
||||
@@ -113,111 +114,111 @@ router bgp {{ bgp_as }} vrf {{ vrf_name }}
|
||||
'''
|
||||
|
||||
|
||||
-def _get_router_id():
|
||||
- output = ovn_bgp_agent.privileged.vtysh.run_vtysh_command(
|
||||
- command='show ip bgp summary json')
|
||||
- return jsonutils.loads(output).get('ipv4Unicast', {}).get('routerId')
|
||||
-
|
||||
-
|
||||
-def _run_vtysh_config_with_tempfile(vrf_config):
|
||||
- try:
|
||||
- f = tempfile.NamedTemporaryFile(mode='w')
|
||||
- f.write(vrf_config)
|
||||
- f.flush()
|
||||
- except (IOError, OSError) as e:
|
||||
- LOG.error('Failed to create the VRF configuration '
|
||||
- 'file. Error: %s', e)
|
||||
- if f is not None:
|
||||
- f.close()
|
||||
- raise
|
||||
-
|
||||
- try:
|
||||
- ovn_bgp_agent.privileged.vtysh.run_vtysh_config(f.name)
|
||||
- finally:
|
||||
- if f is not None:
|
||||
- f.close()
|
||||
-
|
||||
-
|
||||
-def set_default_redistribute(redist_opts):
|
||||
- if not isinstance(redist_opts, set):
|
||||
- redist_opts = set(redist_opts)
|
||||
-
|
||||
- if redist_opts == DEFAULT_REDISTRIBUTE:
|
||||
- # no update required.
|
||||
- return
|
||||
-
|
||||
- DEFAULT_REDISTRIBUTE.clear()
|
||||
- DEFAULT_REDISTRIBUTE.update(redist_opts)
|
||||
-
|
||||
-
|
||||
-def nd_reconfigure(interface, prefix, opts):
|
||||
- LOG.info('FRR IPv6 ND reconfiguration (intf %s, prefix %s)', interface,
|
||||
- prefix)
|
||||
- nd_template = Template(CONFIGURE_ND_TEMPLATE)
|
||||
-
|
||||
- # Need to define what setting is for SLAAC
|
||||
- if (not opts.get('dhcpv6_stateless', False) or
|
||||
- opts.get('dhcpv6_stateless', '') not in ('true', True)):
|
||||
- prefix += ' no-autoconfig'
|
||||
+class FRRDriver(driver_api.BGPDriverBase):
|
||||
+ def _get_router_id(self):
|
||||
+ output = ovn_bgp_agent.privileged.vtysh.run_vtysh_command(
|
||||
+ command='show ip bgp summary json')
|
||||
+ return jsonutils.loads(output).get('ipv4Unicast', {}).get('routerId')
|
||||
+
|
||||
+ def _run_vtysh_config_with_tempfile(self, vrf_config):
|
||||
+ try:
|
||||
+ f = tempfile.NamedTemporaryFile(mode='w')
|
||||
+ f.write(vrf_config)
|
||||
+ f.flush()
|
||||
+ except (IOError, OSError) as e:
|
||||
+ LOG.error('Failed to create the VRF configuration '
|
||||
+ 'file. Error: %s', e)
|
||||
+ if f is not None:
|
||||
+ f.close()
|
||||
+ raise
|
||||
+
|
||||
+ try:
|
||||
+ ovn_bgp_agent.privileged.vtysh.run_vtysh_config(f.name)
|
||||
+ finally:
|
||||
+ if f is not None:
|
||||
+ f.close()
|
||||
+
|
||||
+ def nd_reconfigure(self, interface, prefix, opts):
|
||||
+ LOG.info('FRR IPv6 ND reconfiguration (intf %s, prefix %s)', interface,
|
||||
+ prefix)
|
||||
+ nd_template = Template(CONFIGURE_ND_TEMPLATE)
|
||||
+
|
||||
+ # Need to define what setting is for SLAAC
|
||||
+ if (not opts.get('dhcpv6_stateless', False) or
|
||||
+ opts.get('dhcpv6_stateless', '') not in ('true', True)):
|
||||
+ prefix += ' no-autoconfig'
|
||||
+
|
||||
+ # Parse dns servers from dhcp options.
|
||||
+ dns_servers = []
|
||||
+ if opts.get('dns_server'):
|
||||
+ dns_servers = [
|
||||
+ s.strip()
|
||||
+ for s in opts['dns_server'][1:-1].split(',')
|
||||
+ ]
|
||||
+
|
||||
+ is_dhcpv6 = True # Need a better way to define this one.
|
||||
+
|
||||
+ nd_config = nd_template.render(
|
||||
+ intf=interface,
|
||||
+ prefix=prefix,
|
||||
+ dns_servers=dns_servers,
|
||||
+ is_dhcpv6=is_dhcpv6,
|
||||
+ )
|
||||
+
|
||||
+ self._run_vtysh_config_with_tempfile(nd_config)
|
||||
+
|
||||
+ def vrf_leak(self, vrf, bgp_as, bgp_router_id=None):
|
||||
+ LOG.info("Add VRF leak for VRF %s on router bgp %s", vrf, bgp_as)
|
||||
+ if not bgp_router_id:
|
||||
+ bgp_router_id = self._get_router_id()
|
||||
+ if not bgp_router_id:
|
||||
+ LOG.error("Unknown router-id, needed for route leaking")
|
||||
+ return
|
||||
+
|
||||
+ vrf_template = Template(LEAK_VRF_TEMPLATE)
|
||||
+ vrf_config = vrf_template.render(vrf_name=vrf, bgp_as=bgp_as,
|
||||
+ redistribute=DEFAULT_REDISTRIBUTE,
|
||||
+ bgp_router_id=bgp_router_id)
|
||||
+ self._run_vtysh_config_with_tempfile(vrf_config)
|
||||
+
|
||||
+ def vrf_reconfigure(self, evpn_info, action):
|
||||
+ LOG.info("FRR reconfiguration (action = %s) for evpn: %s",
|
||||
+ action, evpn_info)
|
||||
+
|
||||
+ # If we have more actions, we can define them in this list.
|
||||
+ vrf_templates = {
|
||||
+ 'add-vrf': ADD_VRF_TEMPLATE,
|
||||
+ 'del-vrf': DEL_VRF_TEMPLATE,
|
||||
+ }
|
||||
+ if action not in vrf_templates:
|
||||
+ LOG.error("Unknown FRR reconfiguration action: %s", action)
|
||||
+ return
|
||||
|
||||
- # Parse dns servers from dhcp options.
|
||||
- dns_servers = []
|
||||
- if opts.get('dns_server'):
|
||||
- dns_servers = [s.strip() for s in opts['dns_server'][1:-1].split(',')]
|
||||
+ # Set default opts, so all params are available for the templates
|
||||
+ # Then update them with evpn_info
|
||||
+ opts = dict(route_targets=[], route_distinguishers=[],
|
||||
+ export_targets=[], import_targets=[],
|
||||
+ local_ip=CONF.evpn_local_ip,
|
||||
+ redistribute=DEFAULT_REDISTRIBUTE,
|
||||
+ bgp_as=CONF.bgp_AS, vrf_name='', vni=0)
|
||||
+ opts.update(evpn_info)
|
||||
|
||||
- is_dhcpv6 = True # Need a better way to define this one.
|
||||
+ if not opts['vrf_name']:
|
||||
+ opts['vrf_name'] = "{}{}".format(constants.OVN_EVPN_VRF_PREFIX,
|
||||
+ evpn_info['vni'])
|
||||
|
||||
- nd_config = nd_template.render(
|
||||
- intf=interface,
|
||||
- prefix=prefix,
|
||||
- dns_servers=dns_servers,
|
||||
- is_dhcpv6=is_dhcpv6,
|
||||
- )
|
||||
+ vrf_template = Template(vrf_templates.get(action))
|
||||
+ vrf_config = vrf_template.render(**opts)
|
||||
|
||||
- _run_vtysh_config_with_tempfile(nd_config)
|
||||
+ self._run_vtysh_config_with_tempfile(vrf_config)
|
||||
|
||||
+ def set_default_redistribute(self, redist_opts):
|
||||
+ if not isinstance(redist_opts, set):
|
||||
+ redist_opts = set(redist_opts)
|
||||
|
||||
-def vrf_leak(vrf, bgp_as, bgp_router_id=None, template=LEAK_VRF_TEMPLATE):
|
||||
- LOG.info("Add VRF leak for VRF %s on router bgp %s", vrf, bgp_as)
|
||||
- if not bgp_router_id:
|
||||
- bgp_router_id = _get_router_id()
|
||||
- if not bgp_router_id:
|
||||
- LOG.error("Unknown router-id, needed for route leaking")
|
||||
+ if redist_opts == DEFAULT_REDISTRIBUTE:
|
||||
+ # no update required.
|
||||
return
|
||||
|
||||
- vrf_template = Template(template)
|
||||
- vrf_config = vrf_template.render(vrf_name=vrf, bgp_as=bgp_as,
|
||||
- redistribute=DEFAULT_REDISTRIBUTE,
|
||||
- bgp_router_id=bgp_router_id)
|
||||
- _run_vtysh_config_with_tempfile(vrf_config)
|
||||
-
|
||||
-
|
||||
-def vrf_reconfigure(evpn_info, action):
|
||||
- LOG.info("FRR reconfiguration (action = %s) for evpn: %s",
|
||||
- action, evpn_info)
|
||||
-
|
||||
- # If we have more actions, we can define them in this list.
|
||||
- vrf_templates = {
|
||||
- 'add-vrf': ADD_VRF_TEMPLATE,
|
||||
- 'del-vrf': DEL_VRF_TEMPLATE,
|
||||
- }
|
||||
- if action not in vrf_templates:
|
||||
- LOG.error("Unknown FRR reconfiguration action: %s", action)
|
||||
- return
|
||||
-
|
||||
- # Set default opts, so all params are available for the templates
|
||||
- # Then update them with evpn_info
|
||||
- opts = dict(route_targets=[], route_distinguishers=[], export_targets=[],
|
||||
- import_targets=[], local_ip=CONF.evpn_local_ip,
|
||||
- redistribute=DEFAULT_REDISTRIBUTE,
|
||||
- bgp_as=CONF.bgp_AS, vrf_name='', vni=0)
|
||||
- opts.update(evpn_info)
|
||||
-
|
||||
- if not opts['vrf_name']:
|
||||
- opts['vrf_name'] = "{}{}".format(constants.OVN_EVPN_VRF_PREFIX,
|
||||
- evpn_info['vni'])
|
||||
-
|
||||
- vrf_template = Template(vrf_templates.get(action))
|
||||
- vrf_config = vrf_template.render(**opts)
|
||||
-
|
||||
- _run_vtysh_config_with_tempfile(vrf_config)
|
||||
+ DEFAULT_REDISTRIBUTE.clear()
|
||||
+ DEFAULT_REDISTRIBUTE.update(redist_opts)
|
||||
diff --git a/ovn_bgp_agent/tests/unit/drivers/openstack/test_nb_ovn_bgp_driver.py b/ovn_bgp_agent/tests/unit/drivers/openstack/test_nb_ovn_bgp_driver.py
|
||||
index 3d3809e..09f2f92 100644
|
||||
--- a/ovn_bgp_agent/tests/unit/drivers/openstack/test_nb_ovn_bgp_driver.py
|
||||
+++ b/ovn_bgp_agent/tests/unit/drivers/openstack/test_nb_ovn_bgp_driver.py
|
||||
@@ -78,7 +78,7 @@ class TestNBOVNBGPDriver(test_base.TestCase):
|
||||
self.conf_ovsdb_connection = 'tcp:127.0.0.1:6642'
|
||||
|
||||
@mock.patch.object(linux_net, 'ensure_vrf')
|
||||
- @mock.patch.object(frr, 'vrf_leak')
|
||||
+ @mock.patch.object(frr.FRRDriver, 'vrf_leak')
|
||||
@mock.patch.object(linux_net, 'ensure_ovn_device')
|
||||
@mock.patch.object(linux_net, 'delete_routes_from_table')
|
||||
def test_start(self, mock_delete_routes_from_table,
|
||||
@@ -105,8 +105,7 @@ class TestNBOVNBGPDriver(test_base.TestCase):
|
||||
mock_ensure_vrf.assert_called_once_with(
|
||||
CONF.bgp_vrf, CONF.bgp_vrf_table_id)
|
||||
mock_vrf_leak.assert_called_once_with(
|
||||
- CONF.bgp_vrf, CONF.bgp_AS, CONF.bgp_router_id,
|
||||
- template=frr.LEAK_VRF_TEMPLATE)
|
||||
+ CONF.bgp_vrf, CONF.bgp_AS, CONF.bgp_router_id)
|
||||
mock_ensure_ovn_device.assert_called_once_with(CONF.bgp_nic,
|
||||
CONF.bgp_vrf)
|
||||
mock_delete_routes_from_table.assert_called_once_with(
|
||||
@@ -114,7 +113,7 @@ class TestNBOVNBGPDriver(test_base.TestCase):
|
||||
self.mock_nbdb().start.assert_called_once_with()
|
||||
|
||||
@mock.patch.object(linux_net, 'ensure_ovn_device')
|
||||
- @mock.patch.object(frr, 'vrf_leak')
|
||||
+ @mock.patch.object(frr.FRRDriver, 'vrf_leak')
|
||||
@mock.patch.object(linux_net, 'ensure_vrf')
|
||||
def test_frr_sync(self, mock_ensure_vrf, mock_vrf_leak,
|
||||
mock_ensure_ovn_dev):
|
||||
@@ -123,8 +122,7 @@ class TestNBOVNBGPDriver(test_base.TestCase):
|
||||
mock_ensure_vrf.assert_called_once_with(
|
||||
CONF.bgp_vrf, CONF.bgp_vrf_table_id)
|
||||
mock_vrf_leak.assert_called_once_with(
|
||||
- CONF.bgp_vrf, CONF.bgp_AS, CONF.bgp_router_id,
|
||||
- template=frr.LEAK_VRF_TEMPLATE)
|
||||
+ CONF.bgp_vrf, CONF.bgp_AS, CONF.bgp_router_id)
|
||||
mock_ensure_ovn_dev.assert_called_once_with(
|
||||
CONF.bgp_nic, CONF.bgp_vrf)
|
||||
|
||||
diff --git a/ovn_bgp_agent/tests/unit/drivers/openstack/test_ovn_bgp_driver.py b/ovn_bgp_agent/tests/unit/drivers/openstack/test_ovn_bgp_driver.py
|
||||
index cdaef6e..7fdfff7 100644
|
||||
--- a/ovn_bgp_agent/tests/unit/drivers/openstack/test_ovn_bgp_driver.py
|
||||
+++ b/ovn_bgp_agent/tests/unit/drivers/openstack/test_ovn_bgp_driver.py
|
||||
@@ -75,20 +75,19 @@ class TestOVNBGPDriver(test_base.TestCase):
|
||||
|
||||
@mock.patch.object(linux_net, 'ensure_ovn_device')
|
||||
@mock.patch.object(linux_net, 'ensure_vrf')
|
||||
- @mock.patch.object(frr, 'vrf_leak')
|
||||
+ @mock.patch.object(frr.FRRDriver, 'vrf_leak')
|
||||
def test_start(self, mock_vrf, *args):
|
||||
self.bgp_driver.start()
|
||||
|
||||
mock_vrf.assert_called_once_with(
|
||||
- CONF.bgp_vrf, CONF.bgp_AS, CONF.bgp_router_id,
|
||||
- template=frr.LEAK_VRF_TEMPLATE)
|
||||
+ CONF.bgp_vrf, CONF.bgp_AS, CONF.bgp_router_id)
|
||||
# Assert connections were started
|
||||
self.mock_ovs_idl().start.assert_called_once_with(
|
||||
CONF.ovsdb_connection)
|
||||
self.mock_sbdb().start.assert_called_once_with()
|
||||
|
||||
@mock.patch.object(linux_net, 'ensure_ovn_device')
|
||||
- @mock.patch.object(frr, 'vrf_leak')
|
||||
+ @mock.patch.object(frr.FRRDriver, 'vrf_leak')
|
||||
@mock.patch.object(linux_net, 'ensure_vrf')
|
||||
def test_frr_sync(self, mock_ensure_vrf, mock_vrf_leak,
|
||||
mock_ensure_ovn_dev):
|
||||
@@ -97,8 +96,7 @@ class TestOVNBGPDriver(test_base.TestCase):
|
||||
mock_ensure_vrf.assert_called_once_with(
|
||||
CONF.bgp_vrf, CONF.bgp_vrf_table_id)
|
||||
mock_vrf_leak.assert_called_once_with(
|
||||
- CONF.bgp_vrf, CONF.bgp_AS, CONF.bgp_router_id,
|
||||
- template=frr.LEAK_VRF_TEMPLATE)
|
||||
+ CONF.bgp_vrf, CONF.bgp_AS, CONF.bgp_router_id)
|
||||
mock_ensure_ovn_dev.assert_called_once_with(
|
||||
CONF.bgp_nic, CONF.bgp_vrf)
|
||||
|
||||
diff --git a/ovn_bgp_agent/tests/unit/drivers/openstack/test_ovn_evpn_driver.py b/ovn_bgp_agent/tests/unit/drivers/openstack/test_ovn_evpn_driver.py
|
||||
index 0815577..204b164 100644
|
||||
--- a/ovn_bgp_agent/tests/unit/drivers/openstack/test_ovn_evpn_driver.py
|
||||
+++ b/ovn_bgp_agent/tests/unit/drivers/openstack/test_ovn_evpn_driver.py
|
||||
@@ -185,7 +185,7 @@ class TestOVNEVPNDriver(test_base.TestCase):
|
||||
self.assertEqual((None, None), ret)
|
||||
|
||||
@mock.patch.object(linux_net, 'add_ip_nei')
|
||||
- @mock.patch.object(frr, 'vrf_reconfigure')
|
||||
+ @mock.patch.object(frr.FRRDriver, 'vrf_reconfigure')
|
||||
def _test_expose_ip(
|
||||
self, mock_vrf_reconfigure, mock_add_ip_nei, cr_lrp=False):
|
||||
mock_get_bridge = mock.patch.object(
|
||||
@@ -246,7 +246,7 @@ class TestOVNEVPNDriver(test_base.TestCase):
|
||||
self._test_expose_ip(cr_lrp=True)
|
||||
|
||||
@mock.patch.object(ovs, 'remove_evpn_router_ovs_flows')
|
||||
- @mock.patch.object(frr, 'vrf_reconfigure')
|
||||
+ @mock.patch.object(frr.FRRDriver, 'vrf_reconfigure')
|
||||
def _test_withdraw_ip(
|
||||
self, mock_vrf_reconfigure, mock_remove_evpn_flows, cr_lrp=True,
|
||||
ret_vlan_tag=True):
|
||||
diff --git a/ovn_bgp_agent/tests/unit/drivers/openstack/test_ovn_stretched_l2_bgp_driver.py b/ovn_bgp_agent/tests/unit/drivers/openstack/test_ovn_stretched_l2_bgp_driver.py
|
||||
index 896d4ac..feee7d6 100644
|
||||
--- a/ovn_bgp_agent/tests/unit/drivers/openstack/test_ovn_stretched_l2_bgp_driver.py
|
||||
+++ b/ovn_bgp_agent/tests/unit/drivers/openstack/test_ovn_stretched_l2_bgp_driver.py
|
||||
@@ -138,13 +138,13 @@ class TestOVNBGPStretchedL2Driver(test_base.TestCase):
|
||||
@mock.patch.object(linux_net, "ensure_vrf")
|
||||
@mock.patch.object(linux_net, "ensure_ovn_device")
|
||||
@mock.patch.object(linux_net, "delete_routes_from_table")
|
||||
- @mock.patch.object(frr, "vrf_leak")
|
||||
+ @mock.patch.object(frr.FRRDriver, "vrf_leak")
|
||||
def test_start(self, mock_vrf, mock_delete_routes, mock_ensure_ovn_device,
|
||||
*args):
|
||||
CONF.set_override("clear_vrf_routes_on_startup", True)
|
||||
|
||||
mock_redistribute = mock.patch.object(
|
||||
- frr, "set_default_redistribute"
|
||||
+ frr.FRRDriver, "set_default_redistribute"
|
||||
).start()
|
||||
|
||||
self.bgp_driver.start()
|
||||
@@ -154,7 +154,6 @@ class TestOVNBGPStretchedL2Driver(test_base.TestCase):
|
||||
CONF.bgp_vrf,
|
||||
CONF.bgp_AS,
|
||||
CONF.bgp_router_id,
|
||||
- template=frr.LEAK_VRF_TEMPLATE,
|
||||
)
|
||||
# Assert connections were started
|
||||
self.mock_ovs_idl().start.assert_called_once_with(
|
||||
@@ -168,13 +167,13 @@ class TestOVNBGPStretchedL2Driver(test_base.TestCase):
|
||||
@mock.patch.object(linux_net, "ensure_vrf")
|
||||
@mock.patch.object(linux_net, "ensure_ovn_device")
|
||||
@mock.patch.object(linux_net, "delete_routes_from_table")
|
||||
- @mock.patch.object(frr, "vrf_leak")
|
||||
+ @mock.patch.object(frr.FRRDriver, "vrf_leak")
|
||||
def test_start_clear_routes(
|
||||
self, mock_vrf, mock_delete_routes, mock_ensure_ovn_device, *args):
|
||||
CONF.set_override("clear_vrf_routes_on_startup", False)
|
||||
|
||||
mock_redistribute = mock.patch.object(
|
||||
- frr, "set_default_redistribute"
|
||||
+ frr.FRRDriver, "set_default_redistribute"
|
||||
).start()
|
||||
|
||||
self.bgp_driver.start()
|
||||
@@ -184,7 +183,6 @@ class TestOVNBGPStretchedL2Driver(test_base.TestCase):
|
||||
CONF.bgp_vrf,
|
||||
CONF.bgp_AS,
|
||||
CONF.bgp_router_id,
|
||||
- template=frr.LEAK_VRF_TEMPLATE,
|
||||
)
|
||||
# Assert connections were started
|
||||
self.mock_ovs_idl().start.assert_called_once_with(
|
||||
diff --git a/ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_bgp.py b/ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_bgp.py
|
||||
index ee3fb79..adcfce3 100644
|
||||
--- a/ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_bgp.py
|
||||
+++ b/ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_bgp.py
|
||||
@@ -17,6 +17,7 @@ from oslo_config import cfg
|
||||
from unittest import mock
|
||||
|
||||
from ovn_bgp_agent import constants
|
||||
+from ovn_bgp_agent.drivers import driver_api
|
||||
from ovn_bgp_agent.drivers.openstack.utils import bgp as bgp_utils
|
||||
from ovn_bgp_agent.tests import base as test_base
|
||||
|
||||
@@ -29,9 +30,13 @@ class TestEVPN(test_base.TestCase):
|
||||
def setUp(self):
|
||||
super(TestEVPN, self).setUp()
|
||||
|
||||
- self.mock_frr = mock.patch.object(bgp_utils, 'frr').start()
|
||||
+ self.mock_frr = mock.Mock()
|
||||
self.mock_linux_net = mock.patch.object(bgp_utils, 'linux_net').start()
|
||||
|
||||
+ mock_get_instance = mock.patch.object(driver_api.BGPDriverBase,
|
||||
+ "get_instance").start()
|
||||
+ mock_get_instance.return_value = self.mock_frr
|
||||
+
|
||||
def _set_exposing_method(self, exposing_method):
|
||||
CONF.set_override('exposing_method', exposing_method)
|
||||
self.addCleanup(CONF.clear_override, 'exposing_method')
|
||||
diff --git a/ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_evpn.py b/ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_evpn.py
|
||||
index a51da13..8941214 100644
|
||||
--- a/ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_evpn.py
|
||||
+++ b/ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_evpn.py
|
||||
@@ -17,6 +17,7 @@ from oslo_config import cfg
|
||||
from unittest import mock
|
||||
|
||||
from ovn_bgp_agent import constants
|
||||
+from ovn_bgp_agent.drivers import driver_api
|
||||
from ovn_bgp_agent.drivers.openstack.utils import evpn
|
||||
from ovn_bgp_agent import exceptions
|
||||
from ovn_bgp_agent.tests import base as test_base
|
||||
@@ -35,9 +36,13 @@ class TestEVPN(test_base.TestCase):
|
||||
self.mock_ovs = mock.patch.object(evpn, 'ovs').start()
|
||||
self.mock_ovs.get_ovs_patch_port_ofport.return_value = 12
|
||||
|
||||
- self.mock_frr = mock.patch.object(evpn, 'frr').start()
|
||||
+ self.mock_frr = mock.Mock()
|
||||
self.mock_linux_net = mock.patch.object(evpn, 'linux_net').start()
|
||||
|
||||
+ mock_get_instance = mock.patch.object(driver_api.BGPDriverBase,
|
||||
+ "get_instance").start()
|
||||
+ mock_get_instance.return_value = self.mock_frr
|
||||
+
|
||||
self.fake_mac = fake_mac = 'fe:12:34:56:89:90'
|
||||
self.mock_linux_net.get_interface_address.return_value = fake_mac
|
||||
|
||||
diff --git a/ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_frr.py b/ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_frr.py
|
||||
index ef1913b..047aa30 100644
|
||||
--- a/ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_frr.py
|
||||
+++ b/ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_frr.py
|
||||
@@ -25,21 +25,22 @@ class TestFrr(test_base.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestFrr, self).setUp()
|
||||
+ self.frr_driver = frr_utils.FRRDriver()
|
||||
self.mock_vtysh = mock.patch('ovn_bgp_agent.privileged.vtysh').start()
|
||||
|
||||
def test__get_router_id(self):
|
||||
router_id = 'fake-router'
|
||||
self.mock_vtysh.run_vtysh_command.return_value = (
|
||||
'{"ipv4Unicast": {"routerId": "%s"}}' % router_id)
|
||||
- ret = frr_utils._get_router_id()
|
||||
+ ret = self.frr_driver._get_router_id()
|
||||
self.assertEqual(router_id, ret)
|
||||
|
||||
def test__get_router_id_no_ipv4_settings(self):
|
||||
self.mock_vtysh.run_vtysh_command.return_value = '{}'
|
||||
- ret = frr_utils._get_router_id()
|
||||
+ ret = self.frr_driver._get_router_id()
|
||||
self.assertIsNone(ret)
|
||||
|
||||
- @mock.patch.object(frr_utils, '_get_router_id')
|
||||
+ @mock.patch.object(frr_utils.FRRDriver, '_get_router_id')
|
||||
@mock.patch.object(tempfile, 'NamedTemporaryFile')
|
||||
def test_vrf_leak(self, mock_tf, mock_gri):
|
||||
vrf = 'fake-vrf'
|
||||
@@ -47,7 +48,7 @@ class TestFrr(test_base.TestCase):
|
||||
router_id = 'fake-router-id'
|
||||
mock_gri.return_value = router_id
|
||||
|
||||
- frr_utils.vrf_leak(vrf, bgp_as)
|
||||
+ self.frr_driver.vrf_leak(vrf, bgp_as)
|
||||
|
||||
write_arg = mock_tf.return_value.write.call_args_list[0][0][0]
|
||||
self.assertIn(vrf, write_arg)
|
||||
@@ -55,11 +56,11 @@ class TestFrr(test_base.TestCase):
|
||||
# Assert the file was closed
|
||||
mock_tf.return_value.close.assert_called_once_with()
|
||||
|
||||
- @mock.patch.object(frr_utils, '_get_router_id')
|
||||
+ @mock.patch.object(frr_utils.FRRDriver, '_get_router_id')
|
||||
@mock.patch.object(tempfile, 'NamedTemporaryFile')
|
||||
def test_vrf_leak_no_router_id(self, mock_tf, mock_gri):
|
||||
mock_gri.return_value = None
|
||||
- frr_utils.vrf_leak('fake-vrf', 'fake-bgp-as')
|
||||
+ self.frr_driver.vrf_leak('fake-vrf', 'fake-bgp-as')
|
||||
# Assert no file was created
|
||||
self.assertFalse(mock_tf.called)
|
||||
|
||||
@@ -68,7 +69,7 @@ class TestFrr(test_base.TestCase):
|
||||
action = 'add-vrf' if add_vrf else 'del-vrf'
|
||||
evpn_info = {'vni': '1001', 'bgp_as': 'fake-bgp-as'}
|
||||
|
||||
- frr_utils.vrf_reconfigure(evpn_info, action)
|
||||
+ self.frr_driver.vrf_reconfigure(evpn_info, action)
|
||||
|
||||
vrf_name = "{}{}".format(constants.OVN_EVPN_VRF_PREFIX,
|
||||
evpn_info['vni'])
|
||||
@@ -93,7 +94,9 @@ class TestFrr(test_base.TestCase):
|
||||
self._test_vrf_reconfigure(add_vrf=False)
|
||||
|
||||
def test_vrf_reconfigure_unknown_action(self):
|
||||
- frr_utils.vrf_reconfigure({'fake': 'evpn-info'}, 'non-existing-action')
|
||||
+ self.frr_driver.vrf_reconfigure(
|
||||
+ {'fake': 'evpn-info'}, 'non-existing-action'
|
||||
+ )
|
||||
# Assert run_vtysh_command() wasn't called
|
||||
self.assertFalse(self.mock_vtysh.run_vtysh_config.called)
|
||||
|
||||
@@ -106,7 +109,7 @@ class TestFrr(test_base.TestCase):
|
||||
'dns_server': '{2001:4860:4860::8888, 2001:4860:4860::8844}',
|
||||
}
|
||||
|
||||
- frr_utils.nd_reconfigure(interface, prefix, opts)
|
||||
+ self.frr_driver.nd_reconfigure(interface, prefix, opts)
|
||||
|
||||
write_arg = mock_tf.return_value.write.call_args_list[0][0][0]
|
||||
|
||||
diff --git a/setup.cfg b/setup.cfg
|
||||
index c475b49..ebc069f 100644
|
||||
--- a/setup.cfg
|
||||
+++ b/setup.cfg
|
||||
@@ -36,5 +36,8 @@ ovn_bgp_agent.drivers =
|
||||
ovn_evpn_driver = ovn_bgp_agent.drivers.openstack.ovn_evpn_driver:OVNEVPNDriver
|
||||
ovn_stretched_l2_bgp_driver = ovn_bgp_agent.drivers.openstack.ovn_stretched_l2_bgp_driver:OVNBGPStretchedL2Driver
|
||||
|
||||
+ovn_bgp_agent.bgp_drivers =
|
||||
+ frr = ovn_bgp_agent.drivers.openstack.utils.frr:FRRDriver
|
||||
+
|
||||
oslo.config.opts =
|
||||
ovnbgpagent = ovn_bgp_agent.config:list_opts
|
||||
--
|
||||
2.34.1
|
||||
|
||||
-624
@@ -1,624 +0,0 @@
|
||||
From 9736881a7765936128edfcf3805b4fef06f775d9 Mon Sep 17 00:00:00 2001
|
||||
From: Dong Ma <winterma.dong@gmail.com>
|
||||
Date: Tue, 10 Dec 2024 21:59:07 +0800
|
||||
Subject: [PATCH 2/2] Add the support of create kubernetes resource
|
||||
|
||||
Add support for the OVN BGP agent to create Kuberentes
|
||||
resources using the frr-k8s [1]
|
||||
|
||||
Refactor frr to the drvier based and new frr_k8s
|
||||
|
||||
[1] https://github.com/metallb/frr-k8s
|
||||
|
||||
Closes-Bug: #2091374
|
||||
Change-Id: Iff5c965b9f67e49dae4dca5f1c590f5784c954ae
|
||||
Signed-off-by: Dong Ma <winterma.dong@gmail.com>
|
||||
---
|
||||
ovn_bgp_agent/config.py | 10 +
|
||||
.../drivers/openstack/utils/frr_k8s.py | 322 ++++++++++++++++++
|
||||
.../drivers/openstack/utils/test_frr_k8s.py | 161 +++++++++
|
||||
.../utils/testdata/TestSingleVRFIBGP.golden | 35 ++
|
||||
setup.cfg | 5 +
|
||||
test-requirements.txt | 1 +
|
||||
6 files changed, 534 insertions(+)
|
||||
create mode 100644 ovn_bgp_agent/drivers/openstack/utils/frr_k8s.py
|
||||
create mode 100644 ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_frr_k8s.py
|
||||
create mode 100644 ovn_bgp_agent/tests/unit/drivers/openstack/utils/testdata/TestSingleVRFIBGP.golden
|
||||
|
||||
diff --git a/ovn_bgp_agent/config.py b/ovn_bgp_agent/config.py
|
||||
index 4f9155c..e459b5c 100644
|
||||
--- a/ovn_bgp_agent/config.py
|
||||
+++ b/ovn_bgp_agent/config.py
|
||||
@@ -228,6 +228,14 @@ local_ovn_cluster_opts = [
|
||||
' NB driver is used.'),
|
||||
]
|
||||
|
||||
+frr_k8s_opts = [
|
||||
+ cfg.StrOpt('namespace',
|
||||
+ help='namespace to config frr-k8s',
|
||||
+ default='frr-k8s-system'),
|
||||
+ cfg.StrOpt('node_name',
|
||||
+ help='Override the node name used for FRR-k8s configuration.',
|
||||
+ default=None),
|
||||
+]
|
||||
CONF = cfg.CONF
|
||||
EXTRA_LOG_LEVEL_DEFAULTS = [
|
||||
'oslo.privsep.daemon=INFO'
|
||||
@@ -241,6 +249,7 @@ def register_opts():
|
||||
CONF.register_opts(root_helper_opts, "agent")
|
||||
CONF.register_opts(ovn_opts, "ovn")
|
||||
CONF.register_opts(local_ovn_cluster_opts, "local_ovn_cluster")
|
||||
+ CONF.register_opts(frr_k8s_opts, "frr_k8s")
|
||||
|
||||
|
||||
def init(args, **kwargs):
|
||||
@@ -268,4 +277,5 @@ def list_opts():
|
||||
("agent", root_helper_opts),
|
||||
("ovn", ovn_opts),
|
||||
("local_ovn_cluster", local_ovn_cluster_opts),
|
||||
+ ("frr_k8s", frr_k8s_opts),
|
||||
]
|
||||
diff --git a/ovn_bgp_agent/drivers/openstack/utils/frr_k8s.py b/ovn_bgp_agent/drivers/openstack/utils/frr_k8s.py
|
||||
new file mode 100644
|
||||
index 0000000..850475f
|
||||
--- /dev/null
|
||||
+++ b/ovn_bgp_agent/drivers/openstack/utils/frr_k8s.py
|
||||
@@ -0,0 +1,322 @@
|
||||
+# Copyright 2024 VEXXHOST, Inc.
|
||||
+#
|
||||
+# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
+# you may not use this file except in compliance with the License.
|
||||
+# You may obtain a copy of the License at
|
||||
+#
|
||||
+# http://www.apache.org/licenses/LICENSE-2.0
|
||||
+#
|
||||
+# Unless required by applicable law or agreed to in writing, software
|
||||
+# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
+# See the License for the specific language governing permissions and
|
||||
+# limitations under the License.
|
||||
+
|
||||
+from jinja2 import Template
|
||||
+from kubernetes import client
|
||||
+from kubernetes import config
|
||||
+from oslo_config import cfg
|
||||
+from oslo_log import log as logging
|
||||
+
|
||||
+from ovn_bgp_agent import constants
|
||||
+from ovn_bgp_agent.drivers import driver_api
|
||||
+from ovn_bgp_agent.drivers.openstack.utils import ovs
|
||||
+
|
||||
+CONF = cfg.CONF
|
||||
+
|
||||
+LOG = logging.getLogger(__name__)
|
||||
+
|
||||
+DEFAULT_REDISTRIBUTE = {'connected'}
|
||||
+
|
||||
+CONFIGURE_ND_TEMPLATE = '''
|
||||
+interface {{ intf }}
|
||||
+{% if is_dhcpv6 %}
|
||||
+ ipv6 nd managed-config-flag
|
||||
+{% endif %}
|
||||
+{% for server in dns_servers %}
|
||||
+ ipv6 nd rdnss {{ server }}
|
||||
+{% endfor %}
|
||||
+ ipv6 nd prefix {{ prefix }}
|
||||
+ no ipv6 nd suppress-ra
|
||||
+exit
|
||||
+'''
|
||||
+
|
||||
+ADD_VRF_TEMPLATE = '''
|
||||
+vrf {{ vrf_name }}
|
||||
+ vni {{ vni }}
|
||||
+exit-vrf
|
||||
+
|
||||
+router bgp {{ bgp_as }} vrf {{ vrf_name }}
|
||||
+ address-family ipv4 unicast
|
||||
+{% for redist in redistribute %}
|
||||
+ redistribute {{ redist }}
|
||||
+{% endfor %}
|
||||
+ exit-address-family
|
||||
+ address-family ipv6 unicast
|
||||
+{% for redist in redistribute %}
|
||||
+ redistribute {{ redist }}
|
||||
+{% endfor %}
|
||||
+ exit-address-family
|
||||
+ address-family l2vpn evpn
|
||||
+ advertise ipv4 unicast
|
||||
+ advertise ipv6 unicast
|
||||
+{% if route_distinguishers|length > 0 %}
|
||||
+ rd {{ route_distinguishers[0] }}
|
||||
+{% else %}
|
||||
+ rd {{ local_ip }}:{{ vni }}
|
||||
+{% endif %}
|
||||
+{% for route_target in route_targets %}
|
||||
+ route-target import {{ route_target }}
|
||||
+ route-target export {{ route_target }}
|
||||
+{% endfor %}
|
||||
+{% for route_target in export_targets %}
|
||||
+ route-target export {{ route_target }}
|
||||
+{% endfor %}
|
||||
+{% for route_target in import_targets %}
|
||||
+ route-target import {{ route_target }}
|
||||
+{% endfor %}
|
||||
+ exit-address-family
|
||||
+
|
||||
+'''
|
||||
+
|
||||
+DEL_VRF_TEMPLATE = '''
|
||||
+no vrf {{ vrf_name }}
|
||||
+no interface veth-{{ vrf_name }}
|
||||
+no router bgp {{ bgp_as }} vrf {{ vrf_name }}
|
||||
+
|
||||
+'''
|
||||
+
|
||||
+LEAK_VRF_TEMPLATE = '''
|
||||
+router bgp {{ bgp_as }} vrf {{ vrf_name }}
|
||||
+ bgp router-id {{ bgp_router_id }}
|
||||
+ address-family ipv4 unicast
|
||||
+{% for redist in redistribute %}
|
||||
+ redistribute {{ redist }}
|
||||
+{% endfor %}
|
||||
+ exit-address-family
|
||||
+
|
||||
+ address-family ipv6 unicast
|
||||
+{% for redist in redistribute %}
|
||||
+ redistribute {{ redist }}
|
||||
+{% endfor %}
|
||||
+ exit-address-family
|
||||
+
|
||||
+'''
|
||||
+
|
||||
+
|
||||
+class FRRK8sDriver(driver_api.BGPDriverBase):
|
||||
+ def __init__(self):
|
||||
+ config.load_incluster_config()
|
||||
+
|
||||
+ self.namespace = CONF.frr_k8s.namespace
|
||||
+ self.api_instance = client.CustomObjectsApi()
|
||||
+
|
||||
+ self.ovs_idl = ovs.OvsIdl()
|
||||
+ self.ovs_idl.start(CONF.ovsdb_connection)
|
||||
+ if CONF.frr_k8s.node_name:
|
||||
+ self.chassis = CONF.frr_k8s.node_name
|
||||
+ else:
|
||||
+ self.chassis = self.ovs_idl.get_own_chassis_name()
|
||||
+
|
||||
+ def nd_reconfigure(self, interface, prefix, opts):
|
||||
+ LOG.info('FRR IPv6 ND reconfiguration (intf %s, prefix %s)', interface,
|
||||
+ prefix)
|
||||
+ nd_template = Template(CONFIGURE_ND_TEMPLATE)
|
||||
+
|
||||
+ # Need to define what setting is for SLAAC
|
||||
+ if (not opts.get('dhcpv6_stateless', False) or
|
||||
+ opts.get('dhcpv6_stateless', '') not in ('true', True)):
|
||||
+ prefix += ' no-autoconfig'
|
||||
+
|
||||
+ # Parse dns servers from dhcp options.
|
||||
+ dns_servers = []
|
||||
+ if opts.get('dns_server'):
|
||||
+ dns_servers = [
|
||||
+ s.strip()
|
||||
+ for s in opts['dns_server'][1:-1].split(',')
|
||||
+ ]
|
||||
+
|
||||
+ is_dhcpv6 = True # Need a better way to define this one.
|
||||
+
|
||||
+ nd_config = nd_template.render(
|
||||
+ intf=interface,
|
||||
+ prefix=prefix,
|
||||
+ dns_servers=dns_servers,
|
||||
+ is_dhcpv6=is_dhcpv6,
|
||||
+ )
|
||||
+
|
||||
+ resource = {
|
||||
+ "metadata": {
|
||||
+ "name": self._resource_name(f"nd-{interface}"),
|
||||
+ },
|
||||
+ "spec": {
|
||||
+ "raw": {
|
||||
+ "priority": 5,
|
||||
+ "rawConfig": nd_config,
|
||||
+ },
|
||||
+ },
|
||||
+ }
|
||||
+
|
||||
+ self._create_or_update_config(resource)
|
||||
+
|
||||
+ def vrf_leak(self, vrf, bgp_as, bgp_router_id=None):
|
||||
+ LOG.info("Add VRF leak for VRF %s on router bgp %s", vrf, bgp_as)
|
||||
+ if not bgp_router_id:
|
||||
+ LOG.error("Unknown router-id, needed for route leaking")
|
||||
+ return
|
||||
+
|
||||
+ vrf_template = Template(LEAK_VRF_TEMPLATE)
|
||||
+ vrf_config = vrf_template.render(vrf_name=vrf, bgp_as=bgp_as,
|
||||
+ redistribute=DEFAULT_REDISTRIBUTE,
|
||||
+ bgp_router_id=bgp_router_id)
|
||||
+
|
||||
+ resource = {
|
||||
+ "metadata": {
|
||||
+ "name": self._resource_name(vrf),
|
||||
+ },
|
||||
+ "spec": {
|
||||
+ "bgp": {
|
||||
+ "routers": [
|
||||
+ {
|
||||
+ "asn": int(bgp_as),
|
||||
+ "imports": [
|
||||
+ {
|
||||
+ "vrf": vrf,
|
||||
+ }
|
||||
+ ]
|
||||
+ },
|
||||
+ {
|
||||
+ "asn": int(bgp_as),
|
||||
+ "id": bgp_router_id,
|
||||
+ "vrf": vrf,
|
||||
+ }
|
||||
+ ],
|
||||
+ },
|
||||
+ "raw": {
|
||||
+ "priority": 5,
|
||||
+ "rawConfig": vrf_config,
|
||||
+ },
|
||||
+ },
|
||||
+ }
|
||||
+
|
||||
+ self._create_or_update_config(resource)
|
||||
+
|
||||
+ def vrf_reconfigure(self, evpn_info, action):
|
||||
+ LOG.info("FRR reconfiguration (action = %s) for evpn: %s",
|
||||
+ action, evpn_info)
|
||||
+
|
||||
+ # If we have more actions, we can define them in this list.
|
||||
+ vrf_templates = {
|
||||
+ 'add-vrf': ADD_VRF_TEMPLATE,
|
||||
+ 'del-vrf': DEL_VRF_TEMPLATE,
|
||||
+ }
|
||||
+ if action not in vrf_templates:
|
||||
+ LOG.error("Unknown FRR reconfiguration action: %s", action)
|
||||
+ return
|
||||
+
|
||||
+ # Set default opts, so all params are available for the templates
|
||||
+ # Then update them with evpn_info
|
||||
+ opts = dict(route_targets=[], route_distinguishers=[],
|
||||
+ export_targets=[], import_targets=[],
|
||||
+ local_ip=CONF.evpn_local_ip,
|
||||
+ redistribute=DEFAULT_REDISTRIBUTE,
|
||||
+ bgp_as=CONF.bgp_AS, vrf_name='', vni=0)
|
||||
+ opts.update(evpn_info)
|
||||
+
|
||||
+ if not opts['vrf_name']:
|
||||
+ opts['vrf_name'] = "{}{}".format(constants.OVN_EVPN_VRF_PREFIX,
|
||||
+ evpn_info['vni'])
|
||||
+
|
||||
+ vrf_template = Template(vrf_templates.get(action))
|
||||
+ vrf_config = vrf_template.render(**opts)
|
||||
+
|
||||
+ if action == "add-vrf":
|
||||
+ resource = {
|
||||
+ "metadata": {
|
||||
+ "name": self._resource_name(opts['vrf_name']),
|
||||
+ },
|
||||
+ "spec": {
|
||||
+ "raw": {
|
||||
+ "priority": 5,
|
||||
+ "rawConfig": vrf_config,
|
||||
+ },
|
||||
+ },
|
||||
+ }
|
||||
+ self._create_or_update_config(resource)
|
||||
+ elif action == "del-vrf":
|
||||
+ self._delete_config(self._resource_name(opts['vrf_name']))
|
||||
+
|
||||
+ def set_default_redistribute(self, redist_opts):
|
||||
+ if not isinstance(redist_opts, set):
|
||||
+ redist_opts = set(redist_opts)
|
||||
+
|
||||
+ if redist_opts == DEFAULT_REDISTRIBUTE:
|
||||
+ # no update required.
|
||||
+ return
|
||||
+
|
||||
+ DEFAULT_REDISTRIBUTE.clear()
|
||||
+ DEFAULT_REDISTRIBUTE.update(redist_opts)
|
||||
+
|
||||
+ def _resource_name(self, vrf_name):
|
||||
+ return f"{self.chassis}-{vrf_name}"
|
||||
+
|
||||
+ def _create_config(self, resource):
|
||||
+ try:
|
||||
+ self.api_instance.create_namespaced_custom_object(
|
||||
+ group="frrk8s.metallb.io",
|
||||
+ version="v1beta1",
|
||||
+ namespace=CONF.frr_k8s.namespace,
|
||||
+ plural="frrconfigurations",
|
||||
+ body=resource,
|
||||
+ )
|
||||
+ except client.exceptions.ApiException as e:
|
||||
+ LOG.error("Exception when creating FRRConfiguration: %s", e)
|
||||
+
|
||||
+ def _create_or_update_config(self, resource):
|
||||
+ resource["apiVersion"] = "frrk8s.metallb.io/v1beta1"
|
||||
+ resource["kind"] = "FRRConfiguration"
|
||||
+ resource["metadata"]["namespace"] = CONF.frr_k8s.namespace
|
||||
+ resource["spec"]["nodeSelector"] = {
|
||||
+ "matchLabels": {
|
||||
+ "kubernetes.io/hostname": self.chassis,
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ try:
|
||||
+ frr_config = self.api_instance.get_namespaced_custom_object(
|
||||
+ group="frrk8s.metallb.io",
|
||||
+ version="v1beta1",
|
||||
+ namespace=resource["metadata"]["namespace"],
|
||||
+ plural="frrconfigurations",
|
||||
+ name=resource["metadata"]["name"]
|
||||
+ )
|
||||
+
|
||||
+ resource["metadata"]["resourceVersion"] = \
|
||||
+ frr_config["metadata"]["resourceVersion"]
|
||||
+ self.api_instance.replace_namespaced_custom_object(
|
||||
+ group="frrk8s.metallb.io",
|
||||
+ version="v1beta1",
|
||||
+ namespace=resource["metadata"]["namespace"],
|
||||
+ plural="frrconfigurations",
|
||||
+ name=resource["metadata"]["name"],
|
||||
+ body=resource,
|
||||
+ )
|
||||
+ except client.exceptions.ApiException as e:
|
||||
+ if e.status == 404:
|
||||
+ return self._create_config(resource)
|
||||
+ LOG.error("Exception when retrieving FRRConfiguration.")
|
||||
+
|
||||
+ def _delete_config(self, name):
|
||||
+ try:
|
||||
+ self.api_instance.delete_namespaced_custom_object(
|
||||
+ group="frrk8s.metallb.io",
|
||||
+ version="v1beta1",
|
||||
+ namespace=CONF.frr_k8s.namespace,
|
||||
+ plural="frrconfigurations",
|
||||
+ name=name,
|
||||
+ )
|
||||
+ except client.exceptions.ApiException as e:
|
||||
+ if e.status == 404:
|
||||
+ LOG.info("FRRConfiguration %s not found", name)
|
||||
+ return
|
||||
+ LOG.error("Exception when deleting FRRConfiguration: %s", e)
|
||||
diff --git a/ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_frr_k8s.py b/ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_frr_k8s.py
|
||||
new file mode 100644
|
||||
index 0000000..5079473
|
||||
--- /dev/null
|
||||
+++ b/ovn_bgp_agent/tests/unit/drivers/openstack/utils/test_frr_k8s.py
|
||||
@@ -0,0 +1,161 @@
|
||||
+# Copyright 2024 VEXXHOST, Inc.
|
||||
+# All Rights Reserved.
|
||||
+#
|
||||
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
+# not use this file except in compliance with the License. You may obtain
|
||||
+# a copy of the License at
|
||||
+#
|
||||
+# http://www.apache.org/licenses/LICENSE-2.0
|
||||
+#
|
||||
+# Unless required by applicable law or agreed to in writing, software
|
||||
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
+# License for the specific language governing permissions and limitations
|
||||
+# under the License.
|
||||
+
|
||||
+import json
|
||||
+import os
|
||||
+
|
||||
+from unittest import mock
|
||||
+
|
||||
+from oslo_config import cfg
|
||||
+
|
||||
+from kubernetes import client
|
||||
+from kubernetes import config
|
||||
+from ovn_bgp_agent.drivers.openstack.utils import frr_k8s
|
||||
+from ovn_bgp_agent.drivers.openstack.utils import ovs
|
||||
+from ovn_bgp_agent.tests import base as test_base
|
||||
+
|
||||
+
|
||||
+CONF = cfg.CONF
|
||||
+
|
||||
+
|
||||
+class TestFrrK8s(test_base.TestCase):
|
||||
+
|
||||
+ @mock.patch.object(config, "load_incluster_config")
|
||||
+ @mock.patch.object(client, "CustomObjectsApi")
|
||||
+ @mock.patch.object(ovs, "OvsIdl")
|
||||
+ def setUp(self, mock_ovsidl, mock_custom_objects_api,
|
||||
+ mock_load_incluster_config):
|
||||
+ super(TestFrrK8s, self).setUp()
|
||||
+ self.frr_driver = frr_k8s.FRRK8sDriver()
|
||||
+ self.frr_driver.chassis = 'test-chassis'
|
||||
+ self.frr_driver.ovs_idl = mock.MagicMock()
|
||||
+ self.frr_driver.ovs_idl.get_own_chassis_name.return_value =\
|
||||
+ 'test-chassis'
|
||||
+ self.frr_driver.api_instance = mock.MagicMock()
|
||||
+
|
||||
+ def load_golden_file(self, filename):
|
||||
+ data = {}
|
||||
+ file_path = os.path.join(os.path.dirname(__file__), filename)
|
||||
+ if os.path.isfile(file_path):
|
||||
+ with open(file_path, 'r') as f:
|
||||
+ file_content = f.read().strip()
|
||||
+ if file_content:
|
||||
+ data = json.loads(file_content)
|
||||
+ return data
|
||||
+
|
||||
+ def test_SingleVRFIBGP(self):
|
||||
+ test_case = 'TestSingleVRFIBGP'
|
||||
+ vrf = 'fake-vrf'
|
||||
+ bgp_as = 100
|
||||
+ router_id = '10.1.1.254'
|
||||
+
|
||||
+ self.frr_driver.vrf_leak(vrf, bgp_as, router_id)
|
||||
+
|
||||
+ expected_data = self.load_golden_file(
|
||||
+ 'testdata/' + test_case + '.golden'
|
||||
+ )
|
||||
+
|
||||
+ self.frr_driver.api_instance.get_namespaced_custom_object.\
|
||||
+ assert_called_once_with(
|
||||
+ group="frrk8s.metallb.io",
|
||||
+ version="v1beta1",
|
||||
+ namespace=CONF.frr_k8s.namespace,
|
||||
+ plural="frrconfigurations",
|
||||
+ name=f"{self.frr_driver.chassis}-{vrf}"
|
||||
+ )
|
||||
+
|
||||
+ expected_data['metadata']["resourceVersion"] = mock.ANY
|
||||
+ self.frr_driver.api_instance.replace_namespaced_custom_object.\
|
||||
+ assert_called_once_with(
|
||||
+ group="frrk8s.metallb.io",
|
||||
+ version="v1beta1",
|
||||
+ namespace=CONF.frr_k8s.namespace,
|
||||
+ plural="frrconfigurations",
|
||||
+ name=f"{self.frr_driver.chassis}-{vrf}",
|
||||
+ body={
|
||||
+ "metadata": expected_data['metadata'],
|
||||
+ "spec": expected_data['spec'],
|
||||
+ "apiVersion": "frrk8s.metallb.io/v1beta1",
|
||||
+ "kind": "FRRConfiguration"
|
||||
+ },
|
||||
+ )
|
||||
+
|
||||
+ @mock.patch.object(frr_k8s.FRRK8sDriver, '_create_or_update_config')
|
||||
+ def test_nd_reconfigure(self, mock_create_or_update):
|
||||
+ interface = 'eth0'
|
||||
+ prefix = '2001:db8::/64'
|
||||
+ opts = {'dns_server': '[2001:db8::1, 2001:db8::2]'}
|
||||
+ self.frr_driver.nd_reconfigure(interface, prefix, opts)
|
||||
+ mock_create_or_update.assert_called_once()
|
||||
+
|
||||
+ opts_dhcpv6 = {
|
||||
+ 'dns_server': '[2001:db8::1, 2001:db8::2]',
|
||||
+ 'dhcpv6_stateless': True
|
||||
+ }
|
||||
+ self.frr_driver.nd_reconfigure(interface, prefix, opts_dhcpv6)
|
||||
+ mock_create_or_update.assert_called()
|
||||
+
|
||||
+ @mock.patch.object(frr_k8s.FRRK8sDriver, '_create_or_update_config')
|
||||
+ @mock.patch.object(frr_k8s.FRRK8sDriver, '_delete_config')
|
||||
+ def test_vrf_reconfigure(self, mock_delete, mock_create_or_update):
|
||||
+ evpn_info = {'vni': 100, 'route_targets': ['65000:100']}
|
||||
+ self.frr_driver.vrf_reconfigure(evpn_info, 'add-vrf')
|
||||
+ mock_create_or_update.assert_called_once()
|
||||
+ self.frr_driver.vrf_reconfigure(evpn_info, 'del-vrf')
|
||||
+ mock_delete.assert_called_once()
|
||||
+
|
||||
+ self.frr_driver.vrf_reconfigure(evpn_info, 'unknown-action')
|
||||
+ mock_create_or_update.assert_called_once()
|
||||
+ mock_delete.assert_called_once()
|
||||
+
|
||||
+ def test_resource_name(self):
|
||||
+ vrf_name = 'test-vrf'
|
||||
+ expected_name = 'test-chassis-test-vrf'
|
||||
+ self.assertEqual(
|
||||
+ self.frr_driver._resource_name(vrf_name),
|
||||
+ expected_name
|
||||
+ )
|
||||
+
|
||||
+ def test_create_config(self):
|
||||
+ resource = {'metadata': {'name': 'test-resource'}}
|
||||
+ self.frr_driver._create_config(resource)
|
||||
+ self.frr_driver.api_instance.create_namespaced_custom_object.\
|
||||
+ assert_called_once()
|
||||
+
|
||||
+ self.frr_driver.api_instance.create_namespaced_custom_object.\
|
||||
+ side_effect = client.exceptions.ApiException(status=400)
|
||||
+ self.frr_driver._create_config(resource)
|
||||
+ self.frr_driver.api_instance.create_namespaced_custom_object.\
|
||||
+ assert_called()
|
||||
+
|
||||
+ @mock.patch.object(frr_k8s.FRRK8sDriver, '_create_config')
|
||||
+ def test_create_or_update_config(self, mock_create_config):
|
||||
+ resource = {'metadata': {'name': 'test-resource'}, 'spec': {}}
|
||||
+ self.frr_driver.api_instance.get_namespaced_custom_object.\
|
||||
+ return_value = {'metadata': {'resourceVersion': '1'}}
|
||||
+ self.frr_driver._create_or_update_config(resource)
|
||||
+ self.frr_driver.api_instance.replace_namespaced_custom_object.\
|
||||
+ assert_called_once()
|
||||
+
|
||||
+ self.frr_driver.api_instance.get_namespaced_custom_object.\
|
||||
+ side_effect = client.exceptions.ApiException(status=404)
|
||||
+ self.frr_driver._create_or_update_config(resource)
|
||||
+ mock_create_config.assert_called()
|
||||
+
|
||||
+ self.frr_driver.api_instance.get_namespaced_custom_object.\
|
||||
+ side_effect = client.exceptions.ApiException(status=400)
|
||||
+ self.frr_driver._create_or_update_config(resource)
|
||||
+ self.frr_driver.api_instance.replace_namespaced_custom_object.\
|
||||
+ assert_called_once()
|
||||
diff --git a/ovn_bgp_agent/tests/unit/drivers/openstack/utils/testdata/TestSingleVRFIBGP.golden b/ovn_bgp_agent/tests/unit/drivers/openstack/utils/testdata/TestSingleVRFIBGP.golden
|
||||
new file mode 100644
|
||||
index 0000000..2487918
|
||||
--- /dev/null
|
||||
+++ b/ovn_bgp_agent/tests/unit/drivers/openstack/utils/testdata/TestSingleVRFIBGP.golden
|
||||
@@ -0,0 +1,35 @@
|
||||
+{
|
||||
+ "metadata": {
|
||||
+ "name": "test-chassis-fake-vrf",
|
||||
+ "namespace": "frr-k8s-system"
|
||||
+ },
|
||||
+ "spec": {
|
||||
+ "bgp": {
|
||||
+ "routers": [
|
||||
+ {
|
||||
+ "asn": 100,
|
||||
+ "imports": [
|
||||
+ {
|
||||
+ "vrf": "fake-vrf"
|
||||
+ }
|
||||
+ ]
|
||||
+ },
|
||||
+ {
|
||||
+ "asn": 100,
|
||||
+ "id": "10.1.1.254",
|
||||
+ "vrf": "fake-vrf"
|
||||
+ }
|
||||
+ ]
|
||||
+ },
|
||||
+ "raw": {
|
||||
+ "priority": 5,
|
||||
+ "rawConfig": "\nrouter bgp 100 vrf fake-vrf\n bgp router-id 10.1.1.254\n address-family ipv4 unicast\n\n redistribute connected\n\n exit-address-family\n\n address-family ipv6 unicast\n\n redistribute connected\n\n exit-address-family\n"
|
||||
+ },
|
||||
+ "nodeSelector": {
|
||||
+ "matchLabels": {
|
||||
+ "kubernetes.io/hostname": "test-chassis"
|
||||
+ }
|
||||
+ }
|
||||
+ },
|
||||
+ "status": {}
|
||||
+}
|
||||
diff --git a/setup.cfg b/setup.cfg
|
||||
index ebc069f..aa4e4fb 100644
|
||||
--- a/setup.cfg
|
||||
+++ b/setup.cfg
|
||||
@@ -38,6 +38,11 @@ ovn_bgp_agent.drivers =
|
||||
|
||||
ovn_bgp_agent.bgp_drivers =
|
||||
frr = ovn_bgp_agent.drivers.openstack.utils.frr:FRRDriver
|
||||
+ frr_k8s = ovn_bgp_agent.drivers.openstack.utils.frr_k8s:FRRK8sDriver
|
||||
|
||||
oslo.config.opts =
|
||||
ovnbgpagent = ovn_bgp_agent.config:list_opts
|
||||
+
|
||||
+[extras]
|
||||
+frr-k8s =
|
||||
+ kubernetes>=24.2.0
|
||||
diff --git a/test-requirements.txt b/test-requirements.txt
|
||||
index 9472f33..f0f7c0f 100644
|
||||
--- a/test-requirements.txt
|
||||
+++ b/test-requirements.txt
|
||||
@@ -7,3 +7,4 @@ oslotest>=1.10.0 # Apache-2.0
|
||||
pyroute2>=0.6.4;sys_platform!='win32' # Apache-2.0 (+ dual licensed GPL2)
|
||||
stestr>=1.0.0 # Apache-2.0
|
||||
testtools>=1.4.0 # MIT
|
||||
+kubernetes>=24.2.0 # Apache-2.0
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-10-31T12:56:04Z
|
||||
|
||||
FROM golang AS ovn-kubernetes
|
||||
ARG OVN_KUBERNETES_REF=5359e7d7f872058b6e5bf884c9f19d1922451f29
|
||||
ADD https://github.com/ovn-kubernetes/ovn-kubernetes.git#${OVN_KUBERNETES_REF} /src
|
||||
COPY patches/ovn-kubernetes /patches/ovn-kubernetes
|
||||
RUN git -C /src apply --verbose /patches/ovn-kubernetes/*
|
||||
RUN <<EOF bash -xe
|
||||
cd /src/go-controller
|
||||
go build -o /usr/bin/ovn-kube-util ./cmd/ovn-kube-util
|
||||
EOF
|
||||
|
||||
FROM openvswitch
|
||||
ENV OVS_USER_ID=42424
|
||||
ARG TARGETPLATFORM
|
||||
ADD --chmod=755 https://dl.k8s.io/release/v1.34.1/bin/${TARGETPLATFORM}/kubectl /usr/local/bin/kubectl
|
||||
ARG OVN_SERIES=24.03
|
||||
ARG OVN_VERSION=${OVN_SERIES}.2-34
|
||||
RUN <<EOF sh -xe
|
||||
dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \
|
||||
firewalld-filesystem hostname ovn${OVN_SERIES}-${OVN_VERSION}.el9s procps-ng
|
||||
dnf -y clean all
|
||||
rm -rf /var/cache/dnf
|
||||
EOF
|
||||
ARG OVN_COMPONENT
|
||||
RUN <<EOF sh -xe
|
||||
dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \
|
||||
ovn${OVN_SERIES}-${OVN_COMPONENT}-${OVN_VERSION}.el9s
|
||||
dnf -y clean all
|
||||
rm -rf /var/cache/dnf
|
||||
EOF
|
||||
COPY --from=ovn-kubernetes --link /src/dist/images/ovndb-raft-functions.sh /root/ovndb-raft-functions.sh
|
||||
COPY --from=ovn-kubernetes --link /src/dist/images/ovnkube.sh /root/ovnkube.sh
|
||||
COPY --from=ovn-kubernetes --link /usr/bin/ovn-kube-util /usr/bin/ovn-kube-util
|
||||
COPY --from=ovsinit /usr/local/bin/ovsinit /usr/local/bin/ovsinit
|
||||
RUN <<EOF bash -xe
|
||||
usermod -u 42424 openvswitch
|
||||
mkdir -p /var/log/ovn /var/lib/ovn /var/run/ovn
|
||||
chown -Rv 42424:42424 /var/log/ovn /var/lib/ovn /var/run/ovn
|
||||
EOF
|
||||
-161
@@ -1,161 +0,0 @@
|
||||
From 0227559bb404c3d7d5f32737809c38024bbabef0 Mon Sep 17 00:00:00 2001
|
||||
From: Mohammed Naser <mnaser@vexxhost.com>
|
||||
Date: Thu, 18 Jan 2024 12:42:24 -0500
|
||||
Subject: [PATCH 1/2] chore: refactor to using OVN_KUBERNETES_STATEFULSET
|
||||
|
||||
---
|
||||
dist/images/ovndb-raft-functions.sh | 32 ++++++++++++++---------------
|
||||
dist/images/ovnkube.sh | 5 ++++-
|
||||
2 files changed, 20 insertions(+), 17 deletions(-)
|
||||
|
||||
diff --git a/dist/images/ovndb-raft-functions.sh b/dist/images/ovndb-raft-functions.sh
|
||||
index dceb4ec2e..65e9b6d9b 100644
|
||||
--- a/dist/images/ovndb-raft-functions.sh
|
||||
+++ b/dist/images/ovndb-raft-functions.sh
|
||||
@@ -10,7 +10,7 @@ verify-ovsdb-raft() {
|
||||
fi
|
||||
|
||||
replicas=$(kubectl --server=${K8S_APISERVER} --token=${k8s_token} --certificate-authority=${K8S_CACERT} \
|
||||
- get statefulset -n ${ovn_kubernetes_namespace} ovnkube-db -o=jsonpath='{.spec.replicas}')
|
||||
+ get statefulset -n ${ovn_kubernetes_namespace} ${ovn_kubernetes_statefulset} -o=jsonpath='{.spec.replicas}')
|
||||
if [[ ${replicas} -lt 3 || $((${replicas} % 2)) -eq 0 ]]; then
|
||||
echo "at least 3 nodes need to be configured, and it must be odd number of nodes"
|
||||
exit 1
|
||||
@@ -45,14 +45,14 @@ db_part_of_cluster() {
|
||||
}
|
||||
|
||||
# Checks if cluster has already been initialized.
|
||||
-# If not it returns false and sets init_ip to ovnkube-db-0
|
||||
+# If not it returns false and sets init_ip to ${ovn_kubernetes_statefulset}-0
|
||||
cluster_exists() {
|
||||
# See if ep is available ...
|
||||
local db=${1}
|
||||
local port=${2}
|
||||
|
||||
db_pods=$(kubectl --server=${K8S_APISERVER} --token=${k8s_token} --certificate-authority=${K8S_CACERT} \
|
||||
- get pod -n ${ovn_kubernetes_namespace} -o=jsonpath='{.items[*].metadata.name}' | egrep -o 'ovnkube-db[^ ]+')
|
||||
+ get pod -n ${ovn_kubernetes_namespace} -o=jsonpath='{.items[*].metadata.name}' | egrep -o "${ovn_kubernetes_statefulset}[^ ]+")
|
||||
|
||||
for db_pod in $db_pods; do
|
||||
if db_part_of_cluster $db_pod $db $port; then
|
||||
@@ -63,7 +63,7 @@ cluster_exists() {
|
||||
|
||||
# if we get here there is no cluster, set init_ip and get out
|
||||
init_ip="$(kubectl --server=${K8S_APISERVER} --token=${k8s_token} --certificate-authority=${K8S_CACERT} \
|
||||
- get pod -n ${ovn_kubernetes_namespace} ovnkube-db-0 -o=jsonpath='{.status.podIP}')"
|
||||
+ get pod -n ${ovn_kubernetes_namespace} ${ovn_kubernetes_statefulset}-0 -o=jsonpath='{.status.podIP}')"
|
||||
if [[ $? != 0 ]]; then
|
||||
return 1
|
||||
fi
|
||||
@@ -90,17 +90,17 @@ check_and_apply_ovnkube_db_ep() {
|
||||
|
||||
# return if ovn db service endpoint already exists
|
||||
result=$(kubectl --server=${K8S_APISERVER} --token=${k8s_token} --certificate-authority=${K8S_CACERT} \
|
||||
- get ep -n ${ovn_kubernetes_namespace} ovnkube-db 2>&1)
|
||||
+ get ep -n ${ovn_kubernetes_namespace} ${ovn_kubernetes_statefulset} 2>&1)
|
||||
test $? -eq 0 && return
|
||||
if ! echo ${result} | grep -q "NotFound"; then
|
||||
- echo "Failed to find ovnkube-db endpoint: ${result}, Exiting..."
|
||||
+ echo "Failed to find ${ovn_kubernetes_statefulset} endpoint: ${result}, Exiting..."
|
||||
exit 12
|
||||
fi
|
||||
- # Get IPs of all ovnkube-db PODs
|
||||
+ # Get IPs of all ${ovn_kubernetes_statefulset} PODs
|
||||
ips=()
|
||||
for ((i = 0; i < ${replicas}; i++)); do
|
||||
ip=$(kubectl --server=${K8S_APISERVER} --token=${k8s_token} --certificate-authority=${K8S_CACERT} \
|
||||
- get pod -n ${ovn_kubernetes_namespace} ovnkube-db-${i} -o=jsonpath='{.status.podIP}')
|
||||
+ get pod -n ${ovn_kubernetes_namespace} ${ovn_kubernetes_statefulset}-${i} -o=jsonpath='{.status.podIP}')
|
||||
if [[ ${ip} == "" ]]; then
|
||||
break
|
||||
fi
|
||||
@@ -108,7 +108,7 @@ check_and_apply_ovnkube_db_ep() {
|
||||
done
|
||||
|
||||
if [[ ${i} -eq ${replicas} ]]; then
|
||||
- # Number of POD IPs is same as number of statefulset replicas. Now, if the number of ovnkube-db endpoints
|
||||
+ # Number of POD IPs is same as number of statefulset replicas. Now, if the number of ${ovn_kubernetes_statefulset} endpoints
|
||||
# is 0, then we are applying the endpoint for the first time. So, we need to make sure that each of the
|
||||
# pod IP responds to the `ovsdb-client list-dbs` call before we set the endpoint. If they don't, retry several
|
||||
# times and then give up.
|
||||
@@ -170,7 +170,7 @@ set_election_timer() {
|
||||
return 0
|
||||
}
|
||||
|
||||
-# set_connection() will be called for ovnkube-db-0 pod when :
|
||||
+# set_connection() will be called for ${ovn_kubernetes_statefulset}-0 pod when :
|
||||
# 1. it is first started or
|
||||
# 2. it restarts after the initial start has failed or
|
||||
# 3. subsequent restarts during the lifetime of the pod
|
||||
@@ -307,7 +307,7 @@ ovsdb-raft() {
|
||||
--ovn-${db}-log="${ovn_loglevel_db}" &
|
||||
else
|
||||
# either we need to initialize a new cluster or wait for db-0 to create it
|
||||
- if [[ "${POD_NAME}" == "ovnkube-db-0" ]]; then
|
||||
+ if [[ "${POD_NAME}" == "${ovn_kubernetes_statefulset}-0" ]]; then
|
||||
echo "Cluster does not exist for DB: ${db}, creating new raft cluster"
|
||||
run_as_ovs_user_if_needed \
|
||||
${OVNCTL_PATH} run_${db}_ovsdb --no-monitor \
|
||||
@@ -317,7 +317,7 @@ ovsdb-raft() {
|
||||
${db_ssl_opts} \
|
||||
--ovn-${db}-log="${ovn_loglevel_db}" &
|
||||
else
|
||||
- echo "Cluster does not exist for DB: ${db}, waiting for ovnkube-db-0 pod to create it"
|
||||
+ echo "Cluster does not exist for DB: ${db}, waiting for ${ovn_kubernetes_statefulset}-0 pod to create it"
|
||||
# all non pod-0 pods will be blocked here till connection is set
|
||||
wait_for_event cluster_exists ${db} ${port}
|
||||
run_as_ovs_user_if_needed \
|
||||
@@ -356,8 +356,8 @@ ovsdb-raft() {
|
||||
fi
|
||||
echo "=============== ${db}-ovsdb-raft ========== RUNNING"
|
||||
|
||||
- if [[ "${POD_NAME}" == "ovnkube-db-0" ]]; then
|
||||
- # post raft create work has to be done only once and in ovnkube-db-0 while it is still
|
||||
+ if [[ "${POD_NAME}" == "${ovn_kubernetes_statefulset}-0" ]]; then
|
||||
+ # post raft create work has to be done only once and in ${ovn_kubernetes_statefulset}-0 while it is still
|
||||
# a single-node cluster, additional protection against the case when pod-0 isn't a leader
|
||||
# is needed in the cases of sudden pod-0 initialization logic restarts
|
||||
current_raft_role=$(ovs-appctl -t ${OVN_RUNDIR}/ovn${db}_db.ctl cluster/status ${database} 2>&1 | grep "^Role")
|
||||
@@ -381,9 +381,9 @@ ovsdb-raft() {
|
||||
fi
|
||||
|
||||
last_node_index=$(expr ${replicas} - 1)
|
||||
- # Create endpoints only if all ovnkube-db pods have started and are running. We do this
|
||||
+ # Create endpoints only if all ${ovn_kubernetes_statefulset} pods have started and are running. We do this
|
||||
# from the last pod of the statefulset.
|
||||
- if [[ ${db} == "nb" && "${POD_NAME}" == "ovnkube-db-"${last_node_index} ]]; then
|
||||
+ if [[ ${db} == "nb" && "${POD_NAME}" == "${ovn_kubernetes_statefulset}-"${last_node_index} ]]; then
|
||||
check_and_apply_ovnkube_db_ep ${port}
|
||||
fi
|
||||
|
||||
diff --git a/dist/images/ovnkube.sh b/dist/images/ovnkube.sh
|
||||
index bf3989e37..720b3e14d 100755
|
||||
--- a/dist/images/ovnkube.sh
|
||||
+++ b/dist/images/ovnkube.sh
|
||||
@@ -40,6 +40,7 @@ fi
|
||||
# OVN_NET_CIDR - the network cidr - v3
|
||||
# OVN_SVC_CIDR - the cluster-service-cidr - v3
|
||||
# OVN_KUBERNETES_NAMESPACE - k8s namespace - v3
|
||||
+# OVN_KUBERNETES_STATEFULSET - k8s statefulset - v3
|
||||
# K8S_NODE - hostname of the node - v3
|
||||
#
|
||||
# OVN_DAEMONSET_VERSION - version match daemonset and image - v3
|
||||
@@ -198,12 +199,14 @@ metrics_bind_port=${OVN_METRICS_BIND_PORT:-9476}
|
||||
metrics_exporter_port=${OVN_METRICS_EXPORTER_PORT:-9310}
|
||||
|
||||
ovn_kubernetes_namespace=${OVN_KUBERNETES_NAMESPACE:-ovn-kubernetes}
|
||||
+ovn_kubernetes_statefulset=${OVN_KUBERNETES_STATEFULSET:-ovnkube-db}
|
||||
+
|
||||
# namespace used for classifying host network traffic
|
||||
ovn_host_network_namespace=${OVN_HOST_NETWORK_NAMESPACE:-ovn-host-network}
|
||||
|
||||
# host on which ovnkube-db POD is running and this POD contains both
|
||||
# OVN NB and SB DB running in their own container.
|
||||
-ovn_db_host=${K8S_NODE_IP:-""}
|
||||
+ovn_db_host=${K8S_NODE_IP:-$(hostname -f)}
|
||||
|
||||
# OVN_NB_PORT - ovn north db port (default 6641)
|
||||
ovn_nb_port=${OVN_NB_PORT:-6641}
|
||||
--
|
||||
2.42.0
|
||||
|
||||
-144
@@ -1,144 +0,0 @@
|
||||
From 90851bd77718bc834446ebe2ddf34b8e9383dee8 Mon Sep 17 00:00:00 2001
|
||||
From: Mohammed Naser <mnaser@vexxhost.com>
|
||||
Date: Thu, 18 Jan 2024 16:16:11 -0500
|
||||
Subject: [PATCH 2/2] chore(northd): refactor to being able to use split svcs
|
||||
|
||||
---
|
||||
dist/images/ovnkube.sh | 75 +++++++++++++++++++++++++++++++++---------
|
||||
1 file changed, 59 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/dist/images/ovnkube.sh b/dist/images/ovnkube.sh
|
||||
index 720b3e14d..1d3059cf8 100755
|
||||
--- a/dist/images/ovnkube.sh
|
||||
+++ b/dist/images/ovnkube.sh
|
||||
@@ -200,6 +200,8 @@ metrics_exporter_port=${OVN_METRICS_EXPORTER_PORT:-9310}
|
||||
|
||||
ovn_kubernetes_namespace=${OVN_KUBERNETES_NAMESPACE:-ovn-kubernetes}
|
||||
ovn_kubernetes_statefulset=${OVN_KUBERNETES_STATEFULSET:-ovnkube-db}
|
||||
+ovn_kubernetes_nb_statefulset=${OVN_KUBERNETES_NB_STATEFULSET:-ovnkube-db}
|
||||
+ovn_kubernetes_sb_statefulset=${OVN_KUBERNETES_SB_STATEFULSET:-ovnkube-db}
|
||||
|
||||
# namespace used for classifying host network traffic
|
||||
ovn_host_network_namespace=${OVN_HOST_NETWORK_NAMESPACE:-ovn-host-network}
|
||||
@@ -374,6 +376,24 @@ wait_for_event() {
|
||||
done
|
||||
}
|
||||
|
||||
+wait_for_db () {
|
||||
+ local db=$1
|
||||
+ local ep=$(get_ovnkube_zone_db_ep ${db})
|
||||
+
|
||||
+ echo "Getting the ${ep} ep"
|
||||
+ # See if ep is available ...
|
||||
+ IFS=" " read -a ep_hosts <<<"$(kubectl --server=${K8S_APISERVER} --token=${k8s_token} --certificate-authority=${K8S_CACERT} \
|
||||
+ get endpointslice -n ${ovn_kubernetes_namespace} -l kubernetes.io/service-name=${ep} -o=jsonpath='{range .items[0].endpoints[*]}{.addresses[0]} ')"
|
||||
+ if [[ ${#ep_hosts[@]} == 0 ]]; then
|
||||
+ return 1
|
||||
+ fi
|
||||
+
|
||||
+ ep_hosts_string="${ep_hosts[*]}"
|
||||
+ declare -g -a "ovn_${db}db_hosts=($ep_hosts_string)"
|
||||
+
|
||||
+ return 0
|
||||
+}
|
||||
+
|
||||
# The ovnkube-db kubernetes service must be populated with OVN DB service endpoints
|
||||
# before various OVN K8s containers can come up. This functions checks for that.
|
||||
# If OVN dbs are configured to listen only on unix sockets, then there will not be
|
||||
@@ -384,15 +404,18 @@ ready_to_start_node() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
- ovnkube_db_ep=$(get_ovnkube_zone_db_ep)
|
||||
- echo "Getting the ${ovnkube_db_ep} ep"
|
||||
- # See if ep is available ...
|
||||
- IFS=" " read -a ovn_db_hosts <<<"$(kubectl --server=${K8S_APISERVER} --token=${k8s_token} --certificate-authority=${K8S_CACERT} \
|
||||
- get ep -n ${ovn_kubernetes_namespace} ${ovnkube_db_ep} -o=jsonpath='{range .subsets[0].addresses[*]}{.ip}{" "}')"
|
||||
- if [[ ${#ovn_db_hosts[@]} == 0 ]]; then
|
||||
+ wait_for_db nb
|
||||
+ if [[ $? != 0 ]]; then
|
||||
+ return 1
|
||||
+ fi
|
||||
+
|
||||
+ wait_for_db sb
|
||||
+ if [[ $? != 0 ]]; then
|
||||
return 1
|
||||
fi
|
||||
+
|
||||
get_ovn_db_vars
|
||||
+
|
||||
return 0
|
||||
}
|
||||
# wait_for_event ready_to_start_node
|
||||
@@ -410,17 +433,29 @@ check_ovn_daemonset_version() {
|
||||
}
|
||||
|
||||
get_ovn_db_vars() {
|
||||
+
|
||||
+ index=0
|
||||
ovn_nbdb_str=""
|
||||
- ovn_sbdb_str=""
|
||||
- for i in "${ovn_db_hosts[@]}"; do
|
||||
+ for i in "${ovn_nbdb_hosts[@]}"; do
|
||||
if [ -n "$ovn_nbdb_str" ]; then
|
||||
ovn_nbdb_str=${ovn_nbdb_str}","
|
||||
+ fi
|
||||
+ host="${ovn_kubernetes_nb_statefulset}-${index}.${ovn_kubernetes_nb_statefulset}.${ovn_kubernetes_namespace}.svc.cluster.local"
|
||||
+ ovn_nbdb_str=${ovn_nbdb_str}${transport}://${host}:${ovn_nb_port}
|
||||
+ index=$((index + 1))
|
||||
+ done
|
||||
+
|
||||
+ index=0
|
||||
+ ovn_sbdb_str=""
|
||||
+ for i in "${ovn_sbdb_hosts[@]}"; do
|
||||
+ if [ -n "$ovn_sbdb_str" ]; then
|
||||
ovn_sbdb_str=${ovn_sbdb_str}","
|
||||
fi
|
||||
- ip=$(bracketify $i)
|
||||
- ovn_nbdb_str=${ovn_nbdb_str}${transport}://${ip}:${ovn_nb_port}
|
||||
- ovn_sbdb_str=${ovn_sbdb_str}${transport}://${ip}:${ovn_sb_port}
|
||||
+ host="${ovn_kubernetes_sb_statefulset}-${index}.${ovn_kubernetes_sb_statefulset}.${ovn_kubernetes_namespace}.svc.cluster.local"
|
||||
+ ovn_sbdb_str=${ovn_sbdb_str}${transport}://${host}:${ovn_sb_port}
|
||||
+ index=$((index + 1))
|
||||
done
|
||||
+
|
||||
# OVN_NORTH and OVN_SOUTH override derived host
|
||||
ovn_nbdb=${OVN_NORTH:-$ovn_nbdb_str}
|
||||
ovn_sbdb=${OVN_SOUTH:-$ovn_sbdb_str}
|
||||
@@ -730,7 +765,7 @@ set_ovnkube_db_ep() {
|
||||
ips=("$@")
|
||||
|
||||
ovn_zone=$(get_node_zone)
|
||||
- ovnkube_db_ep=$(get_ovnkube_zone_db_ep)
|
||||
+ ovnkube_db_ep=$(get_ovnkube_zone_db_ep sb)
|
||||
echo "=============== setting ${ovnkube_db_ep} endpoints to ${ips[@]}"
|
||||
# create a new endpoint for the headless onvkube-db service without selectors
|
||||
kubectl --server=${K8S_APISERVER} --token=${k8s_token} --certificate-authority=${K8S_CACERT} apply -f - <<EOF
|
||||
@@ -779,12 +814,20 @@ function get_node_zone() {
|
||||
}
|
||||
|
||||
function get_ovnkube_zone_db_ep() {
|
||||
- zone=$(get_node_zone)
|
||||
- if [ "$zone" == "global" ]; then
|
||||
- echo "ovnkube-db"
|
||||
+ local db=$1
|
||||
+
|
||||
+ if [ "$db" == "nb" ]; then
|
||||
+ ep="${ovn_kubernetes_nb_statefulset}"
|
||||
else
|
||||
- echo "ovnkube-db-$zone"
|
||||
+ ep="${ovn_kubernetes_sb_statefulset}"
|
||||
fi
|
||||
+
|
||||
+ zone=$(get_node_zone)
|
||||
+ if [ "$zone" != "global" ]; then
|
||||
+ ep="${ep}-${zone}"
|
||||
+ fi
|
||||
+
|
||||
+ echo "${ep}"
|
||||
}
|
||||
|
||||
# v3 - run nb_ovsdb in a separate container
|
||||
--
|
||||
2.42.0
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
From 71b19667c04fd114e49d3fda957e26e7fa595675 Mon Sep 17 00:00:00 2001
|
||||
From: Mohammed Naser <mnaser@vexxhost.com>
|
||||
Date: Sun, 4 Feb 2024 14:15:49 -0500
|
||||
Subject: [PATCH] stop creating ovnkube eps
|
||||
|
||||
---
|
||||
dist/images/ovnkube.sh | 3 ---
|
||||
1 file changed, 3 deletions(-)
|
||||
|
||||
diff --git a/dist/images/ovnkube.sh b/dist/images/ovnkube.sh
|
||||
index 1d3059cf8..069d36648 100755
|
||||
--- a/dist/images/ovnkube.sh
|
||||
+++ b/dist/images/ovnkube.sh
|
||||
@@ -908,9 +908,6 @@ sb-ovsdb() {
|
||||
}
|
||||
ovn-sbctl --inactivity-probe=0 set-connection p${transport}:${ovn_sb_port}:$(bracketify ${ovn_db_host})
|
||||
|
||||
- # create the ovnkube-db endpoints
|
||||
- wait_for_event attempts=10 check_ovnkube_db_ep ${ovn_db_host} ${ovn_nb_port}
|
||||
- set_ovnkube_db_ep ${ovn_db_host}
|
||||
if memory_trim_on_compaction_supported "sbdb"
|
||||
then
|
||||
# Enable SBDB memory trimming on DB compaction, Every 10mins DBs are compacted
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2025-02-16T12:56:04Z
|
||||
|
||||
FROM rust AS builder
|
||||
WORKDIR /src
|
||||
COPY --from=src / /src
|
||||
RUN cargo install --path .
|
||||
|
||||
FROM runtime
|
||||
COPY --from=builder /usr/local/cargo/bin/ovsinit /usr/local/bin/ovsinit
|
||||
@@ -1,18 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/placement repo=https://github.com/openstack/placement.git branch=master
|
||||
ARG PLACEMENT_GIT_REF=2df2316c370128ee3aaca2179b7a4b33d96f37ae
|
||||
ADD --keep-git-dir=true https://github.com/openstack/placement.git#${PLACEMENT_GIT_REF} /src/placement
|
||||
RUN git -C /src/placement fetch --unshallow
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/placement
|
||||
EOF
|
||||
|
||||
FROM openstack-python-runtime
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
@@ -1,17 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM ubuntu-cloud-archive
|
||||
ENV PATH=/var/lib/openstack/bin:$PATH
|
||||
RUN \
|
||||
apt-get update -qq && \
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
libpython3.12 \
|
||||
lsb-release \
|
||||
libpcre3 \
|
||||
python3-setuptools \
|
||||
sudo && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
@@ -1,34 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
osc-placement \
|
||||
python-barbicanclient \
|
||||
python-designateclient \
|
||||
python-glanceclient \
|
||||
python-heatclient \
|
||||
python-ironicclient \
|
||||
python-magnumclient \
|
||||
python-manilaclient \
|
||||
python-neutronclient \
|
||||
python-octaviaclient \
|
||||
python-openstackclient \
|
||||
python-swiftclient \
|
||||
tap-as-a-service
|
||||
EOF
|
||||
|
||||
FROM python-base
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
|
||||
# NOTE(mnaser): The Magnum client relies on the SHELL environment variable
|
||||
# to determine the shell to use.
|
||||
ENV SHELL=/bin/bash
|
||||
|
||||
# NOTE(mnaser): When we call this container, we mount the current directory
|
||||
# into `/opt` and then we can call `openstack` commands.
|
||||
WORKDIR /opt
|
||||
@@ -1,17 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
FROM alpine/git:v2.47.2 AS shallow-clone
|
||||
COPY --from=git / /src
|
||||
RUN --mount=type=bind,from=patches,source=/,target=/patches <<EOF sh -xe
|
||||
git -C /src apply --verbose /patches/*
|
||||
EOF
|
||||
|
||||
FROM shallow-clone AS clone
|
||||
RUN git -C /src fetch --unshallow
|
||||
|
||||
FROM scratch AS unshallow
|
||||
COPY --from=clone /src /
|
||||
|
||||
FROM scratch
|
||||
COPY --from=shallow-clone /src /
|
||||
@@ -1,17 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
ARG STAFFELN_GIT_REF=v2.2.3
|
||||
ADD --keep-git-dir=true https://github.com/vexxhost/staffeln.git#${STAFFELN_GIT_REF} /src/staffeln
|
||||
RUN git -C /src/staffeln fetch --unshallow
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /upper-constraints.txt \
|
||||
/src/staffeln
|
||||
EOF
|
||||
|
||||
FROM openstack-python-runtime
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
@@ -1,69 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM golang AS octavia-test-server
|
||||
# renovate: name=openstack/octavia-tempest-plugin repo=https://github.com/openstack/octavia-tempest-plugin.git branch=master
|
||||
ARG OCTAVIA_TEMPEST_PLUGIN_GIT_REF=2f3e8a379573dc8c7cb13a5395f55ba00790fe59
|
||||
ADD --keep-git-dir=true https://github.com/openstack/octavia-tempest-plugin.git#${OCTAVIA_TEMPEST_PLUGIN_GIT_REF} /src
|
||||
RUN GO111MODULE=off CGO_ENABLED=0 GOOS=linux go build \
|
||||
-a -ldflags '-s -w -extldflags -static' \
|
||||
-o /build/test_server.bin \
|
||||
/src/octavia_tempest_plugin/contrib/test_server/test_server.go
|
||||
|
||||
FROM openstack-venv-builder AS build
|
||||
# renovate: name=openstack/requirements repo=https://github.com/openstack/requirements.git branch=master
|
||||
ARG REQUIREMENTS_GIT_REF=46a7e3927152884c05f1e257c528af593d67b84d
|
||||
ADD --keep-git-dir=true https://github.com/openstack/requirements.git#${REQUIREMENTS_GIT_REF} /src/requirements
|
||||
RUN git -C /src/requirements fetch --unshallow
|
||||
# renovate: name=openstack/tempest repo=https://github.com/openstack/tempest.git branch=master
|
||||
ARG TEMPEST_GIT_REF=538f6af8da510e9286ddc762182cfa7170ad7b03
|
||||
ADD --keep-git-dir=true https://github.com/openstack/tempest.git#${TEMPEST_GIT_REF} /src/tempest
|
||||
RUN git -C /src/tempest fetch --unshallow
|
||||
# renovate: name=openstack/barbican-tempest-plugin repo=https://github.com/openstack/barbican-tempest-plugin.git branch=master
|
||||
ARG BARBICAN_TEMPEST_PLUGIN_GIT_REF=2cd185133a86242c58d721e66c2db753a369fe60
|
||||
ADD --keep-git-dir=true https://github.com/openstack/barbican-tempest-plugin.git#${BARBICAN_TEMPEST_PLUGIN_GIT_REF} /src/barbican-tempest-plugin
|
||||
RUN git -C /src/barbican-tempest-plugin fetch --unshallow
|
||||
# renovate: name=openstack/cinder-tempest-plugin repo=https://github.com/openstack/cinder-tempest-plugin.git branch=master
|
||||
ARG CINDER_TEMPEST_PLUGIN_GIT_REF=1357d5dccffc2cd6c1e8a13e84c065d5bd55e4d5
|
||||
ADD --keep-git-dir=true https://github.com/openstack/cinder-tempest-plugin.git#${CINDER_TEMPEST_PLUGIN_GIT_REF} /src/cinder-tempest-plugin
|
||||
RUN git -C /src/cinder-tempest-plugin fetch --unshallow
|
||||
# renovate: name=openstack/heat-tempest-plugin repo=https://github.com/openstack/heat-tempest-plugin.git branch=master
|
||||
ARG HEAT_TEMPEST_PLUGIN_GIT_REF=1ce78d2eba96678955e3be10096fc239b08ba809
|
||||
ADD --keep-git-dir=true https://github.com/openstack/heat-tempest-plugin.git#${HEAT_TEMPEST_PLUGIN_GIT_REF} /src/heat-tempest-plugin
|
||||
RUN git -C /src/heat-tempest-plugin fetch --unshallow
|
||||
# renovate: name=openstack/keystone-tempest-plugin repo=https://github.com/openstack/keystone-tempest-plugin.git branch=master
|
||||
ARG KEYSTONE_TEMPEST_PLUGIN_GIT_REF=bab7165ee8aef4abb796db587299c773bc105ee1
|
||||
ADD --keep-git-dir=true https://github.com/openstack/keystone-tempest-plugin.git#${KEYSTONE_TEMPEST_PLUGIN_GIT_REF} /src/keystone-tempest-plugin
|
||||
RUN git -C /src/keystone-tempest-plugin fetch --unshallow
|
||||
# renovate: name=openstack/neutron-tempest-plugin repo=https://github.com/openstack/neutron-tempest-plugin.git branch=master
|
||||
ARG NEUTRON_TEMPEST_PLUGIN_GIT_REF=9c22c14682afa1168d0e1bd1cd1efb092c28a8fe
|
||||
ADD --keep-git-dir=true https://github.com/openstack/neutron-tempest-plugin.git#${NEUTRON_TEMPEST_PLUGIN_GIT_REF} /src/neutron-tempest-plugin
|
||||
RUN git -C /src/neutron-tempest-plugin fetch --unshallow
|
||||
# renovate: name=openstack/octavia-tempest-plugin repo=https://github.com/openstack/octavia-tempest-plugin.git branch=master
|
||||
ARG OCTAVIA_TEMPEST_PLUGIN_GIT_REF=2f3e8a379573dc8c7cb13a5395f55ba00790fe59
|
||||
ADD --keep-git-dir=true https://github.com/openstack/octavia-tempest-plugin.git#${OCTAVIA_TEMPEST_PLUGIN_GIT_REF} /src/octavia-tempest-plugin
|
||||
RUN git -C /src/octavia-tempest-plugin fetch --unshallow
|
||||
ARG UV_CACHE_ID=uv-default
|
||||
RUN --mount=type=cache,id=${UV_CACHE_ID},target=/root/.cache/uv <<EOF bash -xe
|
||||
uv pip install \
|
||||
--constraint /src/requirements/upper-constraints.txt \
|
||||
/src/tempest \
|
||||
/src/barbican-tempest-plugin \
|
||||
/src/cinder-tempest-plugin \
|
||||
/src/heat-tempest-plugin \
|
||||
/src/keystone-tempest-plugin \
|
||||
/src/neutron-tempest-plugin \
|
||||
/src/octavia-tempest-plugin
|
||||
EOF
|
||||
|
||||
FROM openstack-python-runtime
|
||||
RUN <<EOF bash -xe
|
||||
apt-get update -qq
|
||||
apt-get install -qq -y --no-install-recommends \
|
||||
iputils-ping openssh-client
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
COPY --from=octavia-test-server --link /build/test_server.bin /opt/octavia-tempest-plugin/test_server.bin
|
||||
COPY --from=build --link /var/lib/openstack /var/lib/openstack
|
||||
@@ -1,9 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM ubuntu
|
||||
COPY trusted.gpg.d/ubuntu-cloud-keyring.gpg /etc/apt/trusted.gpg.d/ubuntu-cloud-keyring.gpg
|
||||
COPY <<EOF /etc/apt/sources.list.d/cloudarchive.list
|
||||
deb http://ubuntu-cloud.archive.canonical.com/ubuntu noble-updates/flamingo main
|
||||
EOF
|
||||
Binary file not shown.
@@ -1,6 +0,0 @@
|
||||
# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
|
||||
|
||||
FROM ubuntu
|
||||
LABEL org.opencontainers.image.source=https://github.com/vexxhost/atmosphere
|
||||
@@ -25,56 +25,6 @@
|
||||
regexp: '^127\.0\.1\.1'
|
||||
line: 127.0.1.1 {{ inventory_hostname }} {{ inventory_hostname_short }}
|
||||
|
||||
- name: Pull built images in CI
|
||||
when:
|
||||
- lookup('env', 'DEPOT_TOKEN') is defined and lookup('env', 'DEPOT_TOKEN') != ''
|
||||
- lookup('env', 'DEPOT_BUILD_ID') is defined and lookup('env', 'DEPOT_BUILD_ID') != ''
|
||||
block:
|
||||
- name: Install "containerd"
|
||||
ansible.builtin.include_role:
|
||||
name: vexxhost.containers.containerd
|
||||
|
||||
- name: Install "containerd"
|
||||
ansible.builtin.include_role:
|
||||
name: vexxhost.containers.containerd
|
||||
|
||||
- name: Get list of all Depot images for build
|
||||
no_log: true
|
||||
ansible.builtin.uri:
|
||||
method: POST
|
||||
url: https://api.depot.dev/depot.cli.v1.BuildService/GetPullInfo
|
||||
body_format: json
|
||||
headers:
|
||||
Authorization: "Bearer {{ lookup('env', 'DEPOT_TOKEN') }}"
|
||||
body:
|
||||
build_id: "{{ lookup('env', 'DEPOT_BUILD_ID') }}"
|
||||
register: depot_get_pull_info
|
||||
|
||||
- name: Pull all images to "containerd"
|
||||
no_log: true
|
||||
ansible.builtin.command:
|
||||
cmd: ctr -n="k8s.io" image pull -u {{ depot_get_pull_info.json.username }}:{{ depot_get_pull_info.json.password }} {{ depot_get_pull_info.json.reference }}-{{ item.targetName }}
|
||||
loop: "{{ depot_get_pull_info.json.options | selectattr('save', 'equalto', true) | selectattr('tags', 'defined') }}"
|
||||
loop_control:
|
||||
label: "{{ item.tags[0] }}"
|
||||
register: depot_pull_images
|
||||
|
||||
- name: Tag pulled images
|
||||
ansible.builtin.command:
|
||||
cmd: ctr -n="k8s.io" image tag {{ depot_get_pull_info.json.reference }}-{{ item.targetName }} {{ item.tags[0] }} {{ item.tags[0] | replace('harbor.atmosphere.dev', 'registry.atmosphere.dev') }}
|
||||
loop: "{{ depot_pull_images.results | map(attribute='item') }}"
|
||||
loop_control:
|
||||
label: "{{ item.tags[0] }}"
|
||||
|
||||
- name: Get list of all images
|
||||
ansible.builtin.command:
|
||||
cmd: ctr -n="k8s.io" image ls -q
|
||||
register: image_list
|
||||
|
||||
- name: Print list of pulled images
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ image_list.stdout_lines }}"
|
||||
|
||||
- name: Create fake devices for Ceph
|
||||
ansible.builtin.import_playbook: vexxhost.ceph.create_fake_devices
|
||||
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
From cabb48e339a1f646b4a820d41eaef5c34e678708 Mon Sep 17 00:00:00 2001
|
||||
From: Mohammed Naser <mnaser@vexxhost.com>
|
||||
Date: Fri, 21 Feb 2025 15:20:18 -0500
|
||||
Subject: [PATCH] Add MTU for all non-external ports
|
||||
|
||||
In the previous fix, it had brought the MTU lookup within the
|
||||
if branch if the vnic_type was VNIC_REMOTELY_MANAGED which
|
||||
meant that it didn't get added for anything other than that
|
||||
typer of interface.
|
||||
|
||||
Since the MTU is used further later, we want to capture it
|
||||
because it goes into the OvnPortInfo which will go into the
|
||||
external_ids which will be captured by the metadata agent
|
||||
to fix the correct MTU.
|
||||
|
||||
Closes-Bug: #2053274
|
||||
Related-Change-Id: I7ff300e9634e5e3fc68d70540392109fd8b9babc
|
||||
Change-Id: Ib4ee7e0e8b13141739f5a8600333be856afd4a4e
|
||||
---
|
||||
|
||||
diff --git a/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py b/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py
|
||||
index aa1c989..f18b558 100644
|
||||
--- a/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py
|
||||
+++ b/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py
|
||||
@@ -473,11 +473,11 @@
|
||||
# HA Chassis Group will bind the port to the highest
|
||||
# priority Chassis
|
||||
if port_type != ovn_const.LSP_TYPE_EXTERNAL:
|
||||
+ port_net = self._plugin.get_network(context, port['network_id'])
|
||||
+ mtu = str(port_net['mtu'])
|
||||
+
|
||||
if (bp_info.vnic_type == portbindings.VNIC_REMOTE_MANAGED and
|
||||
ovn_const.VIF_DETAILS_PF_MAC_ADDRESS in bp_info.bp_param):
|
||||
- port_net = self._plugin.get_network(
|
||||
- context, port['network_id'])
|
||||
- mtu = str(port_net['mtu'])
|
||||
options.update({
|
||||
ovn_const.LSP_OPTIONS_VIF_PLUG_TYPE_KEY: 'representor',
|
||||
ovn_const.LSP_OPTIONS_VIF_PLUG_MTU_REQUEST_KEY: mtu,
|
||||
@@ -1,83 +0,0 @@
|
||||
From b6f8f9237bc45780bd99e362a5eb2447ccf9a132 Mon Sep 17 00:00:00 2001
|
||||
From: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
|
||||
Date: Wed, 09 Oct 2024 12:32:36 +0300
|
||||
Subject: [PATCH] Bind internal router port for VLAN network
|
||||
|
||||
In an OVN deployment where external (baremetal) ports are connected to
|
||||
VLAN networks, we need to bind the internal router port associated with
|
||||
the network to the same ha_chassis_group of the network. This will mimic
|
||||
the way the external port of the router functions in relation to the
|
||||
upstream gateway.
|
||||
|
||||
In essence, the baremetal ports are not able to communicate with their
|
||||
default gateway if either the internal router port is unbound or if
|
||||
the vrouter does not have an external gateway set, with the external
|
||||
router port bound to the same exact chassis and with the same exact
|
||||
priorities as the ha_chassis_group of the VLAN network.
|
||||
|
||||
Closes-Bug: 1995078
|
||||
|
||||
Change-Id: Ib79294e111f111a23381c582e543591fd18948d2
|
||||
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
|
||||
---
|
||||
|
||||
diff --git a/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py b/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py
|
||||
index 082c72d..70549ae 100644
|
||||
--- a/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py
|
||||
+++ b/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py
|
||||
@@ -1742,6 +1742,14 @@
|
||||
if ipv6_ra_configs:
|
||||
columns['ipv6_ra_configs'] = ipv6_ra_configs
|
||||
|
||||
+ if port.get("device_owner", None) == "network:router_interface":
|
||||
+ network = self._plugin.get_network(context, port['network_id'])
|
||||
+ if network.get(pnet.NETWORK_TYPE) == const.TYPE_VLAN:
|
||||
+ ha_grp_id = (utils.sync_ha_chassis_group_network(
|
||||
+ context, self._nb_idl, self._sb_idl,
|
||||
+ port['id'], port['network_id'], txn)[0],)
|
||||
+ columns["ha_chassis_group"] = ha_grp_id
|
||||
+
|
||||
commands = [
|
||||
self._nb_idl.add_lrouter_port(
|
||||
name=lrouter_port_name,
|
||||
diff --git a/neutron/tests/unit/services/ovn_l3/test_plugin.py b/neutron/tests/unit/services/ovn_l3/test_plugin.py
|
||||
index c9b1e85..94271588 100644
|
||||
--- a/neutron/tests/unit/services/ovn_l3/test_plugin.py
|
||||
+++ b/neutron/tests/unit/services/ovn_l3/test_plugin.py
|
||||
@@ -13,6 +13,7 @@
|
||||
#
|
||||
|
||||
import copy
|
||||
+import uuid
|
||||
from unittest import mock
|
||||
|
||||
from neutron_lib.api.definitions import external_net
|
||||
@@ -761,8 +762,11 @@
|
||||
@mock.patch('neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.ovn_client'
|
||||
'.OVNClient._get_router_ports')
|
||||
@mock.patch('neutron.db.l3_db.L3_NAT_dbonly_mixin.add_router_interface')
|
||||
- def test_add_router_interface_vlan_network(self, ari, grps, gn):
|
||||
+ @mock.patch('neutron.common.ovn.utils.sync_ha_chassis_group_network')
|
||||
+ def test_add_router_interface_vlan_network(self, shcg, ari, grps, gn):
|
||||
router_id = 'router-id'
|
||||
+ ha_chassis_group_uuid = uuid.uuid4()
|
||||
+ shcg.return_value = (ha_chassis_group_uuid, "fake_ha_chassis_group")
|
||||
ari.return_value = self.fake_router_interface_info
|
||||
self.get_router.return_value = self.fake_router_with_ext_gw
|
||||
|
||||
@@ -787,6 +791,7 @@
|
||||
fake_router_port_assert = self.fake_router_port_assert
|
||||
fake_router_port_assert['options'] = {
|
||||
'reside-on-redirect-chassis': 'true'}
|
||||
+ fake_router_port_assert['ha_chassis_group'] = (ha_chassis_group_uuid,)
|
||||
|
||||
self.l3_inst._nb_ovn.add_lrouter_port.assert_called_once_with(
|
||||
**fake_router_port_assert)
|
||||
@@ -798,6 +803,7 @@
|
||||
'neutron-router-id', logical_ip='10.0.0.0/24',
|
||||
external_ip='192.168.1.1', type='snat')
|
||||
|
||||
+ shcg.assert_called_once()
|
||||
self.bump_rev_p.assert_called_with(
|
||||
mock.ANY, self.fake_router_port,
|
||||
ovn_const.TYPE_ROUTER_PORTS)
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
other:
|
||||
- |
|
||||
All container images now use external repositories at ``ghcr.io/vexxhost``
|
||||
instead of the Atmosphere repository. The images for OVN, Open vSwitch,
|
||||
libvirt, and all OpenStack services have dedicated repositories with
|
||||
independent versioning and release cycles. This change improves
|
||||
maintainability and removes all image build infrastructure from
|
||||
Atmosphere.
|
||||
-124
@@ -11,9 +11,6 @@
|
||||
"skip-release-notes"
|
||||
],
|
||||
"prHourlyLimit": 10,
|
||||
"prBodyDefinitions": {
|
||||
"GitHub Links": "[Compare changes](https://github.com/{{{depName}}}/compare/{{{currentDigest}}}...{{{newDigest}}})"
|
||||
},
|
||||
"packageRules": [
|
||||
{
|
||||
"enabled": false,
|
||||
@@ -21,10 +18,6 @@
|
||||
"*"
|
||||
]
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"matchDatasources": ["git-refs"]
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"matchManagers": ["cargo", "gomod"]
|
||||
@@ -34,68 +27,6 @@
|
||||
"groupName": "golang",
|
||||
"matchUpdateTypes": ["minor", "patch"]
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"matchFileNames": [
|
||||
"docker-bake.hcl"
|
||||
]
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"matchDatasources": [
|
||||
"pypi"
|
||||
],
|
||||
"matchPackageNames": [
|
||||
"magnum-cluster-api"
|
||||
]
|
||||
},
|
||||
{
|
||||
"matchDatasources": [
|
||||
"git-refs"
|
||||
],
|
||||
"matchPackageNames": [
|
||||
"https://opendev.org/openstack/**"
|
||||
],
|
||||
"prBodyColumns": [
|
||||
"Package",
|
||||
"Update",
|
||||
"Change",
|
||||
"GitHub Links"
|
||||
]
|
||||
},
|
||||
{
|
||||
"matchDatasources": [
|
||||
"git-refs"
|
||||
],
|
||||
"matchFileNames": [
|
||||
"images/tempest/Dockerfile"
|
||||
],
|
||||
"groupName": "tempest",
|
||||
"schedule": ["* * * * 1"]
|
||||
},
|
||||
{
|
||||
"matchDatasources": [
|
||||
"git-refs"
|
||||
],
|
||||
"matchPackageNames": [
|
||||
"https://github.com/openstack/**"
|
||||
],
|
||||
"matchFileNames": [
|
||||
"!images/tempest/Dockerfile"
|
||||
],
|
||||
"groupName": "openstack"
|
||||
},
|
||||
{
|
||||
"matchDatasources": [
|
||||
"git-refs"
|
||||
],
|
||||
"matchPackageNames": [
|
||||
"https://github.com/openstack/**"
|
||||
],
|
||||
"matchBaseBranches": ["main"],
|
||||
"schedule": ["* * * * 1"]
|
||||
},
|
||||
|
||||
{
|
||||
"groupName": "pxc",
|
||||
"enabled": true,
|
||||
@@ -141,61 +72,6 @@
|
||||
],
|
||||
"datasourceTemplate": "docker"
|
||||
},
|
||||
{
|
||||
"customType": "regex",
|
||||
"fileMatch": [
|
||||
"docker-bake.hcl"
|
||||
],
|
||||
"matchStrings": [
|
||||
"\"docker-image://(?<depName>.+?):(?<currentValue>.+?)\""
|
||||
],
|
||||
"datasourceTemplate": "docker"
|
||||
},
|
||||
{
|
||||
"customType": "regex",
|
||||
"fileMatch": [
|
||||
"docker-bake.hcl"
|
||||
],
|
||||
"matchStrings": [
|
||||
"\"git\" = \"(?<packageName>(.*\/(?<depName>.+\/.+)).git)#(?<currentDigest>.+)\" # renovate: branch=(?<currentValue>.+)"
|
||||
],
|
||||
"datasourceTemplate": "git-refs"
|
||||
},
|
||||
{
|
||||
"customType": "regex",
|
||||
"fileMatch": [
|
||||
"Dockerfile"
|
||||
],
|
||||
"matchStrings": [
|
||||
"# renovate: name=(?<depName>.+?) repo=(?<packageName>.+?) branch=(?<currentValue>.+?)\nARG .+?_GIT_REF=(?<currentDigest>.+?)\n"
|
||||
],
|
||||
"datasourceTemplate": "git-refs"
|
||||
},
|
||||
{
|
||||
"customType": "regex",
|
||||
"fileMatch": [
|
||||
"images/magnum/Dockerfile"
|
||||
],
|
||||
"matchStrings": [
|
||||
"magnum-cluster-api==(?<currentValue>.*?)\\s"
|
||||
],
|
||||
"datasourceTemplate": "pypi",
|
||||
"depNameTemplate": "magnum-cluster-api",
|
||||
"versioningTemplate": "semver"
|
||||
},
|
||||
{
|
||||
"customType": "regex",
|
||||
"fileMatch": [
|
||||
"images/neutron/Dockerfile"
|
||||
],
|
||||
"matchStrings": [
|
||||
"POLICY_SERVER_GIT_REF=(?<currentDigest>.*?)\\n"
|
||||
],
|
||||
"datasourceTemplate": "git-refs",
|
||||
"depNameTemplate": "neutron-policy-server",
|
||||
"packageNameTemplate": "https://review.vexxhost.dev/neutron-policy-server",
|
||||
"currentValueTemplate": "main"
|
||||
},
|
||||
{
|
||||
"customType": "jsonata",
|
||||
"fileFormat": "yaml",
|
||||
|
||||
+123
-123
@@ -16,10 +16,10 @@ atmosphere_release: main
|
||||
|
||||
_atmosphere_images:
|
||||
alertmanager: "{{ atmosphere_image_prefix }}quay.io/prometheus/alertmanager:v0.27.0"
|
||||
barbican_api: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/barbican:{{ atmosphere_release }}"
|
||||
barbican_db_sync: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/barbican:{{ atmosphere_release }}"
|
||||
bootstrap: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
ceph_config_helper: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/libvirtd:{{ atmosphere_release }}"
|
||||
barbican_api: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/barbican:main@sha256:eab0ec0be8f8e5b3534131c494943ed5fc7379dc166db8b7b7c8ac802359330b"
|
||||
barbican_db_sync: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/barbican:main@sha256:eab0ec0be8f8e5b3534131c494943ed5fc7379dc166db8b7b7c8ac802359330b"
|
||||
bootstrap: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
ceph_config_helper: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/libvirtd:main@sha256:3d8ac580f9a3235c9fdd27cda89717a651e34c9b029ae884d8b3fdbcc7bde2a8"
|
||||
ceph: "{{ atmosphere_image_prefix }}quay.io/ceph/ceph:v18.2.7"
|
||||
cert_manager_cainjector: "{{ atmosphere_image_prefix }}quay.io/jetstack/cert-manager-cainjector:v1.12.17"
|
||||
cert_manager_cli: "{{ atmosphere_image_prefix }}quay.io/jetstack/cert-manager-ctl:v1.12.17"
|
||||
@@ -28,14 +28,14 @@ _atmosphere_images:
|
||||
cert_manager_acmesolver: "{{ atmosphere_image_prefix }}quay.io/jetstack/cert-manager-acmesolver:v1.12.17"
|
||||
cilium_node: "{{ atmosphere_image_prefix }}quay.io/cilium/cilium:v1.14.8"
|
||||
cilium_operator: "{{ atmosphere_image_prefix }}quay.io/cilium/operator-generic:v1.14.8"
|
||||
cinder_api: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/cinder:{{ atmosphere_release }}"
|
||||
cinder_backup_storage_init: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/cinder:{{ atmosphere_release }}"
|
||||
cinder_backup: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/cinder:{{ atmosphere_release }}"
|
||||
cinder_db_sync: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/cinder:{{ atmosphere_release }}"
|
||||
cinder_scheduler: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/cinder:{{ atmosphere_release }}"
|
||||
cinder_storage_init: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/cinder:{{ atmosphere_release }}"
|
||||
cinder_volume_usage_audit: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/cinder:{{ atmosphere_release }}"
|
||||
cinder_volume: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/cinder:{{ atmosphere_release }}"
|
||||
cinder_api: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/cinder:main@sha256:1dd4175c7824e756a0fc556f4bad3deeda30180537ed381592ea9a37cd51cb22"
|
||||
cinder_backup_storage_init: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/cinder:main@sha256:1dd4175c7824e756a0fc556f4bad3deeda30180537ed381592ea9a37cd51cb22"
|
||||
cinder_backup: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/cinder:main@sha256:1dd4175c7824e756a0fc556f4bad3deeda30180537ed381592ea9a37cd51cb22"
|
||||
cinder_db_sync: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/cinder:main@sha256:1dd4175c7824e756a0fc556f4bad3deeda30180537ed381592ea9a37cd51cb22"
|
||||
cinder_scheduler: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/cinder:main@sha256:1dd4175c7824e756a0fc556f4bad3deeda30180537ed381592ea9a37cd51cb22"
|
||||
cinder_storage_init: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/cinder:main@sha256:1dd4175c7824e756a0fc556f4bad3deeda30180537ed381592ea9a37cd51cb22"
|
||||
cinder_volume_usage_audit: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/cinder:main@sha256:1dd4175c7824e756a0fc556f4bad3deeda30180537ed381592ea9a37cd51cb22"
|
||||
cinder_volume: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/cinder:main@sha256:1dd4175c7824e756a0fc556f4bad3deeda30180537ed381592ea9a37cd51cb22"
|
||||
cluster_api_controller: "{{ atmosphere_image_prefix }}registry.k8s.io/cluster-api/cluster-api-controller:v1.10.5"
|
||||
cluster_api_kubeadm_bootstrap_controller: "{{ atmosphere_image_prefix }}registry.k8s.io/cluster-api/kubeadm-bootstrap-controller:v1.10.5"
|
||||
cluster_api_kubeadm_control_plane_controller: "{{ atmosphere_image_prefix }}registry.k8s.io/cluster-api/kubeadm-control-plane-controller:v1.10.5"
|
||||
@@ -46,36 +46,36 @@ _atmosphere_images:
|
||||
csi_rbd_provisioner: "{{ atmosphere_image_prefix }}registry.k8s.io/sig-storage/csi-provisioner:v4.0.0"
|
||||
csi_rbd_resizer: "{{ atmosphere_image_prefix }}registry.k8s.io/sig-storage/csi-resizer:v1.10.0"
|
||||
csi_rbd_snapshotter: "{{ atmosphere_image_prefix }}registry.k8s.io/sig-storage/csi-snapshotter:v7.0.0"
|
||||
db_drop: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
db_init: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
db_drop: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
db_init: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
dep_check: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/kubernetes-entrypoint:edge"
|
||||
designate_api: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/designate:{{ atmosphere_release }}"
|
||||
designate_central: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/designate:{{ atmosphere_release }}"
|
||||
designate_db_sync: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/designate:{{ atmosphere_release }}"
|
||||
designate_mdns: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/designate:{{ atmosphere_release }}"
|
||||
designate_producer: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/designate:{{ atmosphere_release }}"
|
||||
designate_sink: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/designate:{{ atmosphere_release }}"
|
||||
designate_worker: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/designate:{{ atmosphere_release }}"
|
||||
glance_api: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/glance:{{ atmosphere_release }}"
|
||||
glance_db_sync: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/glance:{{ atmosphere_release }}"
|
||||
glance_metadefs_load: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/glance:{{ atmosphere_release }}"
|
||||
glance_registry: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/glance:{{ atmosphere_release }}"
|
||||
glance_storage_init: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/glance:{{ atmosphere_release }}"
|
||||
designate_api: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/designate:main@sha256:08f191cc2c03c0859849efe52f0a9a3757c1707235dae6943978bdf92f9d0b33"
|
||||
designate_central: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/designate:main@sha256:08f191cc2c03c0859849efe52f0a9a3757c1707235dae6943978bdf92f9d0b33"
|
||||
designate_db_sync: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/designate:main@sha256:08f191cc2c03c0859849efe52f0a9a3757c1707235dae6943978bdf92f9d0b33"
|
||||
designate_mdns: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/designate:main@sha256:08f191cc2c03c0859849efe52f0a9a3757c1707235dae6943978bdf92f9d0b33"
|
||||
designate_producer: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/designate:main@sha256:08f191cc2c03c0859849efe52f0a9a3757c1707235dae6943978bdf92f9d0b33"
|
||||
designate_sink: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/designate:main@sha256:08f191cc2c03c0859849efe52f0a9a3757c1707235dae6943978bdf92f9d0b33"
|
||||
designate_worker: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/designate:main@sha256:08f191cc2c03c0859849efe52f0a9a3757c1707235dae6943978bdf92f9d0b33"
|
||||
glance_api: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/glance:main@sha256:b9c065d575cf30d0316d3f1f3cdbde9c153faecc37ed467d62a44049084669ed"
|
||||
glance_db_sync: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/glance:main@sha256:b9c065d575cf30d0316d3f1f3cdbde9c153faecc37ed467d62a44049084669ed"
|
||||
glance_metadefs_load: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/glance:main@sha256:b9c065d575cf30d0316d3f1f3cdbde9c153faecc37ed467d62a44049084669ed"
|
||||
glance_registry: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/glance:main@sha256:b9c065d575cf30d0316d3f1f3cdbde9c153faecc37ed467d62a44049084669ed"
|
||||
glance_storage_init: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/glance:main@sha256:b9c065d575cf30d0316d3f1f3cdbde9c153faecc37ed467d62a44049084669ed"
|
||||
grafana_sidecar: "{{ atmosphere_image_prefix }}quay.io/kiwigrid/k8s-sidecar:1.26.1"
|
||||
grafana: "{{ atmosphere_image_prefix }}docker.io/grafana/grafana:11.0.0"
|
||||
goldpinger: "{{ atmosphere_image_prefix }}docker.io/bloomberg/goldpinger:3.10.1"
|
||||
frr: "{{ atmosphere_image_prefix }}quay.io/frrouting/frr:9.1.0"
|
||||
frr_k8s: "{{ atmosphere_image_prefix }}quay.io/metallb/frr-k8s:v0.0.17"
|
||||
haproxy: "{{ atmosphere_image_prefix }}docker.io/library/haproxy:2.5"
|
||||
heat_api: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
heat_cfn: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
heat_cloudwatch: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
heat_db_sync: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
heat_engine_cleaner: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
heat_engine: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
heat_purge_deleted: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
horizon_db_sync: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/horizon:{{ atmosphere_release }}"
|
||||
horizon: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/horizon:{{ atmosphere_release }}"
|
||||
heat_api: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
heat_cfn: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
heat_cloudwatch: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
heat_db_sync: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
heat_engine_cleaner: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
heat_engine: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
heat_purge_deleted: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
horizon_db_sync: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/horizon:main@sha256:32695969a7d19d0ccb4ccbccd516b776af4875534f3a6804ce51080ff923c351"
|
||||
horizon: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/horizon:main@sha256:32695969a7d19d0ccb4ccbccd516b776af4875534f3a6804ce51080ff923c351"
|
||||
ibm_block_csi_addons_replicator: "{{ atmosphere_image_prefix }}quay.io/ibmcsiblock/csi-block-volumereplication-operator:v0.9.0"
|
||||
ibm_block_csi_attacher: "{{ atmosphere_image_prefix }}registry.k8s.io/sig-storage/csi-attacher:v4.2.0"
|
||||
ibm_block_csi_driver_controller: "{{ atmosphere_image_prefix }}quay.io/ibmcsiblock/ibm-block-csi-driver-controller:1.11.2"
|
||||
@@ -90,28 +90,28 @@ _atmosphere_images:
|
||||
ingress_nginx_controller: "{{ atmosphere_image_prefix }}registry.k8s.io/ingress-nginx/controller:v1.12.1"
|
||||
ingress_nginx_default_backend: "{{ atmosphere_image_prefix }}registry.k8s.io/defaultbackend-amd64:1.5"
|
||||
ingress_nginx_kube_webhook_certgen: "{{ atmosphere_image_prefix }}registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.5.2"
|
||||
ironic_api: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/ironic:{{ atmosphere_release }}"
|
||||
ironic_conductor: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/ironic:{{ atmosphere_release }}"
|
||||
ironic_db_sync: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/ironic:{{ atmosphere_release }}"
|
||||
ironic_manage_cleaning_network: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
ironic_api: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/ironic:main@sha256:3cf3aa6e1fef6204e9dfc4e0df5f7cc781d4b555549bb1b768b6149725407ea5"
|
||||
ironic_conductor: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/ironic:main@sha256:3cf3aa6e1fef6204e9dfc4e0df5f7cc781d4b555549bb1b768b6149725407ea5"
|
||||
ironic_db_sync: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/ironic:main@sha256:3cf3aa6e1fef6204e9dfc4e0df5f7cc781d4b555549bb1b768b6149725407ea5"
|
||||
ironic_manage_cleaning_network: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
ironic_pxe_http: "{{ atmosphere_image_prefix }}docker.io/library/nginx:1.25"
|
||||
ironic_pxe_init: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/ironic:{{ atmosphere_release }}"
|
||||
ironic_pxe: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/ironic:{{ atmosphere_release }}"
|
||||
ironic_retrive_cleaning_network: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
ironic_retrive_swift_config: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
keepalived: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/keepalived:{{ atmosphere_release }}"
|
||||
ironic_pxe_init: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/ironic:main@sha256:3cf3aa6e1fef6204e9dfc4e0df5f7cc781d4b555549bb1b768b6149725407ea5"
|
||||
ironic_pxe: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/ironic:main@sha256:3cf3aa6e1fef6204e9dfc4e0df5f7cc781d4b555549bb1b768b6149725407ea5"
|
||||
ironic_retrive_cleaning_network: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
ironic_retrive_swift_config: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
keepalived: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/keepalived:latest@sha256:b794c04706ec6914fc3635e23c9d6a95351dec4c0d320eb83ae5a781b791e30d"
|
||||
keycloak: "{{ atmosphere_image_prefix }}quay.io/keycloak/keycloak:24.0.5-0"
|
||||
keystone_api: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/keystone:{{ atmosphere_release }}"
|
||||
keystone_credential_cleanup: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
keystone_credential_rotate: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/keystone:{{ atmosphere_release }}"
|
||||
keystone_credential_setup: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/keystone:{{ atmosphere_release }}"
|
||||
keystone_db_sync: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/keystone:{{ atmosphere_release }}"
|
||||
keystone_domain_manage: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
keystone_fernet_rotate: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/keystone:{{ atmosphere_release }}"
|
||||
keystone_fernet_setup: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/keystone:{{ atmosphere_release }}"
|
||||
ks_endpoints: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
ks_service: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
ks_user: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
keystone_api: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/keystone:main@sha256:fac75244aaff6feb7fcd7a4928e0db0f1bf438fd3b87486e7cc5ebc1eeab5296"
|
||||
keystone_credential_cleanup: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
keystone_credential_rotate: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/keystone:main@sha256:fac75244aaff6feb7fcd7a4928e0db0f1bf438fd3b87486e7cc5ebc1eeab5296"
|
||||
keystone_credential_setup: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/keystone:main@sha256:fac75244aaff6feb7fcd7a4928e0db0f1bf438fd3b87486e7cc5ebc1eeab5296"
|
||||
keystone_db_sync: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/keystone:main@sha256:fac75244aaff6feb7fcd7a4928e0db0f1bf438fd3b87486e7cc5ebc1eeab5296"
|
||||
keystone_domain_manage: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
keystone_fernet_rotate: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/keystone:main@sha256:fac75244aaff6feb7fcd7a4928e0db0f1bf438fd3b87486e7cc5ebc1eeab5296"
|
||||
keystone_fernet_setup: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/keystone:main@sha256:fac75244aaff6feb7fcd7a4928e0db0f1bf438fd3b87486e7cc5ebc1eeab5296"
|
||||
ks_endpoints: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
ks_service: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
ks_user: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
kube_apiserver: "{{ atmosphere_image_prefix }}registry.k8s.io/kube-apiserver:v{{ atmosphere_kubernetes_version }}"
|
||||
kube_controller_manager: "{{ atmosphere_image_prefix }}registry.k8s.io/kube-controller-manager:v{{ atmosphere_kubernetes_version }}"
|
||||
kube_coredns: "{{ atmosphere_image_prefix }}registry.k8s.io/coredns/coredns:v1.8.4"
|
||||
@@ -122,89 +122,89 @@ _atmosphere_images:
|
||||
kube_state_metrics: "{{ atmosphere_image_prefix }}registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.12.0"
|
||||
kube_vip: "{{ atmosphere_image_prefix }}ghcr.io/kube-vip/kube-vip:v0.6.4"
|
||||
kubectl: "{{ atmosphere_image_prefix }}docker.io/rancher/kubectl:v1.34.1"
|
||||
libvirt: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/libvirtd:{{ atmosphere_release }}"
|
||||
libvirt: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/libvirtd:main@sha256:3d8ac580f9a3235c9fdd27cda89717a651e34c9b029ae884d8b3fdbcc7bde2a8"
|
||||
libvirt_tls_sidecar: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/libvirt-tls-sidecar:latest"
|
||||
libvirt_exporter: "{{ atmosphere_image_prefix }}ghcr.io/inovex/prometheus-libvirt-exporter:2.2.0"
|
||||
local_path_provisioner_helper: "{{ atmosphere_image_prefix }}ghcr.io/containerd/busybox:1.36"
|
||||
local_path_provisioner: "{{ atmosphere_image_prefix }}docker.io/rancher/local-path-provisioner:v0.0.24"
|
||||
loki_gateway: "{{ atmosphere_image_prefix }}docker.io/nginxinc/nginx-unprivileged:1.24-alpine"
|
||||
loki: "{{ atmosphere_image_prefix }}docker.io/grafana/loki:3.0.0"
|
||||
magnum_api: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/magnum:{{ atmosphere_release }}"
|
||||
magnum_cluster_api_proxy: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/magnum:{{ atmosphere_release }}"
|
||||
magnum_conductor: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/magnum:{{ atmosphere_release }}"
|
||||
magnum_db_sync: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/magnum:{{ atmosphere_release }}"
|
||||
magnum_api: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/magnum:main@sha256:2bd93536972831a793ed93f288938844f67adcbde3d9274fe0fea2ca671b7624"
|
||||
magnum_cluster_api_proxy: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/magnum:main@sha256:2bd93536972831a793ed93f288938844f67adcbde3d9274fe0fea2ca671b7624"
|
||||
magnum_conductor: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/magnum:main@sha256:2bd93536972831a793ed93f288938844f67adcbde3d9274fe0fea2ca671b7624"
|
||||
magnum_db_sync: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/magnum:main@sha256:2bd93536972831a793ed93f288938844f67adcbde3d9274fe0fea2ca671b7624"
|
||||
magnum_registry: "{{ atmosphere_image_prefix }}quay.io/vexxhost/magnum-cluster-api-registry:latest"
|
||||
manila_api: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/manila:{{ atmosphere_release }}"
|
||||
manila_data: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/manila:{{ atmosphere_release }}"
|
||||
manila_db_sync: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/manila:{{ atmosphere_release }}"
|
||||
manila_scheduler: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/manila:{{ atmosphere_release }}"
|
||||
manila_share: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/manila:{{ atmosphere_release }}"
|
||||
manila_api: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/manila:main@sha256:1284e997e2e859a2ce84db23989b2167c2043000aa2ca1bd5f4190f51f84dbcd"
|
||||
manila_data: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/manila:main@sha256:1284e997e2e859a2ce84db23989b2167c2043000aa2ca1bd5f4190f51f84dbcd"
|
||||
manila_db_sync: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/manila:main@sha256:1284e997e2e859a2ce84db23989b2167c2043000aa2ca1bd5f4190f51f84dbcd"
|
||||
manila_scheduler: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/manila:main@sha256:1284e997e2e859a2ce84db23989b2167c2043000aa2ca1bd5f4190f51f84dbcd"
|
||||
manila_share: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/manila:main@sha256:1284e997e2e859a2ce84db23989b2167c2043000aa2ca1bd5f4190f51f84dbcd"
|
||||
memcached: "{{ atmosphere_image_prefix }}docker.io/library/memcached:1.6.26"
|
||||
netoffload: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/netoffload:{{ atmosphere_release }}"
|
||||
neutron_bagpipe_bgp: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_bgp_dragent: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
netoffload: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/netoffload:main@sha256:cad35bee17396beaff4f4f95c19c3a68d1476b812dbf5c0497c7c12a17c00124"
|
||||
neutron_bagpipe_bgp: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_bgp_dragent: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_coredns: "{{ atmosphere_image_prefix }}docker.io/coredns/coredns:1.11.1"
|
||||
neutron_db_sync: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_dhcp: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_ironic_agent_init: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_ironic_agent: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_l2gw: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_l3: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_linuxbridge_agent: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_metadata: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_netns_cleanup_cron: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_openvswitch_agent: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_ovn_metadata: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_ovn_vpn: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_server: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_rpc_server: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_sriov_agent_init: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_sriov_agent: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_policy_server: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
neutron_db_sync: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_dhcp: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_ironic_agent_init: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_ironic_agent: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_l2gw: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_l3: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_linuxbridge_agent: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_metadata: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_netns_cleanup_cron: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_openvswitch_agent: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_ovn_metadata: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_ovn_vpn: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_server: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_rpc_server: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_sriov_agent_init: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_sriov_agent: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
neutron_policy_server: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
node_feature_discovery: "{{ atmosphere_image_prefix }}registry.k8s.io/nfd/node-feature-discovery:v0.15.4"
|
||||
nova_api: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/nova:{{ atmosphere_release }}"
|
||||
nova_archive_deleted_rows: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/nova:{{ atmosphere_release }}"
|
||||
nova_cell_setup_init: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
nova_cell_setup: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/nova:{{ atmosphere_release }}"
|
||||
nova_compute_ironic: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/nova:{{ atmosphere_release }}"
|
||||
nova_compute_ssh: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/nova-ssh:{{ atmosphere_release }}"
|
||||
nova_compute: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/nova:{{ atmosphere_release }}"
|
||||
nova_conductor: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/nova:{{ atmosphere_release }}"
|
||||
nova_consoleauth: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/nova:{{ atmosphere_release }}"
|
||||
nova_db_sync: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/nova:{{ atmosphere_release }}"
|
||||
nova_novncproxy_assets: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/nova:{{ atmosphere_release }}"
|
||||
nova_novncproxy: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/nova:{{ atmosphere_release }}"
|
||||
nova_placement: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/nova:{{ atmosphere_release }}"
|
||||
nova_scheduler: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/nova:{{ atmosphere_release }}"
|
||||
nova_service_cleaner: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
nova_spiceproxy_assets: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/nova:{{ atmosphere_release }}"
|
||||
nova_spiceproxy: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/nova:{{ atmosphere_release }}"
|
||||
nova_storage_init: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
nova_api: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/nova:main@sha256:c289d782faebcd2d1c4055ded69110dacb38ea7d2ae59712bbecb452dd448442"
|
||||
nova_archive_deleted_rows: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/nova:main@sha256:c289d782faebcd2d1c4055ded69110dacb38ea7d2ae59712bbecb452dd448442"
|
||||
nova_cell_setup_init: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
nova_cell_setup: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/nova:main@sha256:c289d782faebcd2d1c4055ded69110dacb38ea7d2ae59712bbecb452dd448442"
|
||||
nova_compute_ironic: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/nova:main@sha256:c289d782faebcd2d1c4055ded69110dacb38ea7d2ae59712bbecb452dd448442"
|
||||
nova_compute_ssh: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/nova-ssh:main@sha256:b5063b69ce4c8cbccc92c911c10849fe9481c8d0bdb6db0c2372a149144e534c"
|
||||
nova_compute: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/nova:main@sha256:c289d782faebcd2d1c4055ded69110dacb38ea7d2ae59712bbecb452dd448442"
|
||||
nova_conductor: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/nova:main@sha256:c289d782faebcd2d1c4055ded69110dacb38ea7d2ae59712bbecb452dd448442"
|
||||
nova_consoleauth: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/nova:main@sha256:c289d782faebcd2d1c4055ded69110dacb38ea7d2ae59712bbecb452dd448442"
|
||||
nova_db_sync: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/nova:main@sha256:c289d782faebcd2d1c4055ded69110dacb38ea7d2ae59712bbecb452dd448442"
|
||||
nova_novncproxy_assets: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/nova:main@sha256:c289d782faebcd2d1c4055ded69110dacb38ea7d2ae59712bbecb452dd448442"
|
||||
nova_novncproxy: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/nova:main@sha256:c289d782faebcd2d1c4055ded69110dacb38ea7d2ae59712bbecb452dd448442"
|
||||
nova_placement: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/nova:main@sha256:c289d782faebcd2d1c4055ded69110dacb38ea7d2ae59712bbecb452dd448442"
|
||||
nova_scheduler: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/nova:main@sha256:c289d782faebcd2d1c4055ded69110dacb38ea7d2ae59712bbecb452dd448442"
|
||||
nova_service_cleaner: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
nova_spiceproxy_assets: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/nova:main@sha256:c289d782faebcd2d1c4055ded69110dacb38ea7d2ae59712bbecb452dd448442"
|
||||
nova_spiceproxy: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/nova:main@sha256:c289d782faebcd2d1c4055ded69110dacb38ea7d2ae59712bbecb452dd448442"
|
||||
nova_storage_init: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
oauth2_proxy: "{{ atmosphere_image_prefix }}quay.io/oauth2-proxy/oauth2-proxy:v7.6.0"
|
||||
octavia_api: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/octavia:{{ atmosphere_release }}"
|
||||
octavia_db_sync: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/octavia:{{ atmosphere_release }}"
|
||||
octavia_health_manager_init: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/heat:{{ atmosphere_release }}"
|
||||
octavia_health_manager: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/octavia:{{ atmosphere_release }}"
|
||||
octavia_housekeeping: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/octavia:{{ atmosphere_release }}"
|
||||
octavia_worker: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/octavia:{{ atmosphere_release }}"
|
||||
openstack_cli: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/python-openstackclient:{{ atmosphere_release }}"
|
||||
octavia_api: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/octavia:main@sha256:ff2299723ba4b9903d52d2ef625f36c8099a796fdf460f33612173870bdaa293"
|
||||
octavia_db_sync: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/octavia:main@sha256:ff2299723ba4b9903d52d2ef625f36c8099a796fdf460f33612173870bdaa293"
|
||||
octavia_health_manager_init: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c"
|
||||
octavia_health_manager: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/octavia:main@sha256:ff2299723ba4b9903d52d2ef625f36c8099a796fdf460f33612173870bdaa293"
|
||||
octavia_housekeeping: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/octavia:main@sha256:ff2299723ba4b9903d52d2ef625f36c8099a796fdf460f33612173870bdaa293"
|
||||
octavia_worker: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/octavia:main@sha256:ff2299723ba4b9903d52d2ef625f36c8099a796fdf460f33612173870bdaa293"
|
||||
openstack_cli: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/python-openstackclient:main@sha256:09737a2e00a2546bc96ecf610481c673d7c8f808fb80f921ef50a053545ecadc"
|
||||
openstack_resource_controller: "{{ atmosphere_image_prefix }}quay.io/orc/openstack-resource-controller:v2.2.0"
|
||||
openvswitch_db_server: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/openvswitch:v3.3.6-6"
|
||||
openvswitch_vswitchd: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/openvswitch:v3.3.6-6"
|
||||
ovn_bgp_agent: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/ovn-bgp-agent:{{ atmosphere_release }}"
|
||||
ovn_controller: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/ovn-host:{{ atmosphere_release }}"
|
||||
ovn_controller_kubectl: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/ovn-host:{{ atmosphere_release }}"
|
||||
ovn_logging_parser: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/neutron:{{ atmosphere_release }}"
|
||||
ovn_northd: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/ovn-central:{{ atmosphere_release }}"
|
||||
ovn_ovsdb_nb: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/ovn-central:{{ atmosphere_release }}"
|
||||
ovn_ovsdb_sb: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/ovn-central:{{ atmosphere_release }}"
|
||||
ovn_bgp_agent: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/ovn-bgp-agent:main@sha256:98f80380aec29ea1cedd9a923edb411706fb7528bfe13daae6dd086e40997d55"
|
||||
ovn_controller: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/ovn:v24.03.7-3@sha256:deb1966eff94d8da072a3647db63546722094deb3ef34b6b464609bcba61887a"
|
||||
ovn_controller_kubectl: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/ovn:v24.03.7-3@sha256:deb1966eff94d8da072a3647db63546722094deb3ef34b6b464609bcba61887a"
|
||||
ovn_logging_parser: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e"
|
||||
ovn_northd: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/ovn:v24.03.7-3@sha256:deb1966eff94d8da072a3647db63546722094deb3ef34b6b464609bcba61887a"
|
||||
ovn_ovsdb_nb: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/ovn:v24.03.7-3@sha256:deb1966eff94d8da072a3647db63546722094deb3ef34b6b464609bcba61887a"
|
||||
ovn_ovsdb_sb: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/ovn:v24.03.7-3@sha256:deb1966eff94d8da072a3647db63546722094deb3ef34b6b464609bcba61887a"
|
||||
pause: "{{ atmosphere_image_prefix }}registry.k8s.io/pause:3.9"
|
||||
percona_xtradb_cluster_haproxy: "{{ atmosphere_image_prefix }}docker.io/percona/haproxy:2.8.15"
|
||||
percona_xtradb_cluster_operator: "{{ atmosphere_image_prefix }}docker.io/percona/percona-xtradb-cluster-operator:1.18.0"
|
||||
percona_xtradb_cluster: "{{ atmosphere_image_prefix }}docker.io/percona/percona-xtradb-cluster:8.0.42-33.1"
|
||||
percona_xtradb_cluster_backup: "{{ atmosphere_image_prefix }}docker.io/percona/percona-xtrabackup:8.0.35-33.1"
|
||||
placement_db_sync: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/placement:{{ atmosphere_release }}"
|
||||
placement: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/placement:{{ atmosphere_release }}"
|
||||
placement_db_sync: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/placement:main@sha256:ae9d401c35c837d9c7dc3b0dbbe1b183545949eefb9c3b594ba08084c2cf85ca"
|
||||
placement: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/placement:main@sha256:ae9d401c35c837d9c7dc3b0dbbe1b183545949eefb9c3b594ba08084c2cf85ca"
|
||||
pod_tls_sidecar: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/pod-tls-sidecar:latest"
|
||||
prometheus_config_reloader: "{{ atmosphere_image_prefix }}quay.io/prometheus-operator/prometheus-config-reloader:v0.73.0"
|
||||
prometheus_ipmi_exporter: "{{ atmosphere_image_prefix }}us-docker.pkg.dev/vexxhost-infra/openstack/ipmi-exporter:1.4.0"
|
||||
@@ -225,10 +225,10 @@ _atmosphere_images:
|
||||
redis_exporter: "{{ atmosphere_image_prefix }}docker.io/bitnamilegacy/redis-exporter:1.67.0-debian-12-r9"
|
||||
rook_ceph: "{{ atmosphere_image_prefix }}docker.io/rook/ceph:v1.15.9"
|
||||
secretgen_controller: "{{ atmosphere_image_prefix }}ghcr.io/carvel-dev/secretgen-controller@sha256:59ec05ce5847bfd70c8e04f08b5195e918c8f6fbb947ffc91b456494a2958fd5"
|
||||
staffeln_db_sync: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/staffeln:{{ atmosphere_release }}"
|
||||
staffeln_conductor: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/staffeln:{{ atmosphere_release }}"
|
||||
staffeln_api: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/staffeln:{{ atmosphere_release }}"
|
||||
tempest_run_tests: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/tempest:{{ atmosphere_release }}"
|
||||
staffeln_db_sync: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/staffeln:main@sha256:07d2b543e9df7b07a042180edd7eb2a49dfb199ff31b32ee578e46d9be2f3c4f"
|
||||
staffeln_conductor: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/staffeln:main@sha256:07d2b543e9df7b07a042180edd7eb2a49dfb199ff31b32ee578e46d9be2f3c4f"
|
||||
staffeln_api: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/staffeln:main@sha256:07d2b543e9df7b07a042180edd7eb2a49dfb199ff31b32ee578e46d9be2f3c4f"
|
||||
tempest_run_tests: "{{ atmosphere_image_prefix }}ghcr.io/vexxhost/tempest:main@sha256:193660aa727108b5687df12b037ae869d2b2c057bfeb3a5d59dda35c95b122aa"
|
||||
valkey: "{{ atmosphere_image_prefix }}docker.io/bitnamilegacy/valkey:8.0.2-debian-12-r4"
|
||||
valkey_sentinel: "{{ atmosphere_image_prefix }}docker.io/bitnamilegacy/valkey-sentinel:8.0.2-debian-12-r4"
|
||||
vector: "{{ atmosphere_image_prefix }}docker.io/timberio/vector:0.38.0-debian"
|
||||
|
||||
Reference in new issue
Block a user