CI: Add grenade jobs

Change-Id: Ib5d14b0622feac87a3bcf550e6e8215802cd8332
Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
This commit is contained in:
Michal Nasiadka committed 2026-09-30 12:56:42 +02:00
1 parent 547639b13e
commit f902fbb59f
5 files changed
+186

No files matched your search

+84
View File
@@ -0,0 +1,84 @@
---
- project-template:
name: magnum-grenade-jobs
description: Magnum grenade (upgrade) jobs
check:
jobs:
- magnum-grenade
gate:
jobs:
- magnum-grenade
- job:
name: magnum-grenade
parent: grenade
required-projects:
- openstack/barbican
- openstack/grenade
- openstack/magnum
- openstack/magnum-capi-helm
- openstack/magnum-tempest-plugin
- openstack/octavia
- openstack/python-barbicanclient
- openstack/python-magnumclient
- openstack/python-octaviaclient
irrelevant-files:
- ^.*\.rst$
- ^api-ref/.*$
- ^doc/.*$
- ^specs/.*$
- ^install-guide/.*$
- ^releasenotes/.*$
- ^dockerfiles/.*$
vars:
kube_version: "v1.34.7"
kube_version_dir: "2026.04-5"
grenade_devstack_localrc:
shared:
CONTAINER_ENGINE: "crio"
CRIO_VERSION: "1.32.1"
ETCD_VERSION: "v3.6.11"
ETCD_SHA256: "8756f7a4eaf921668a83de0bf13c0f65cae9186a165696e3ae8396afe6f557ed"
FIXED_RANGE: 10.1.0.0/20
K8S_CAPI_VERSION: "v1.10.4"
K8S_CAPO_VERSION: "v0.11.3"
# CAPI mgmt cluster kubernetes version
K8S_VERSION: "1.34.7"
K8S_TOKEN: "0cvq6p.k454yiandj1tjxxv"
K8S_COPY_KUBECONFIG_PATH: "/etc/magnum/kubeconfig"
MAGNUM_GUEST_IMAGE_URL: "https://github.com/vexxhost/capo-image-elements/releases/download/{{ kube_version_dir }}/ubuntu-24.04-{{ kube_version }}.qcow2"
MAGNUM_GUEST_IMAGE_EXTRA_PROPERTIES: "--property kube_version={{ kube_version }}"
OCTAVIA_NODE: standalone
GLANCE_LIMIT_IMAGE_SIZE_TOTAL: 5000
SERVICE_TIMEOUT: 120
devstack_local_conf:
test-config:
$TEMPEST_CONFIG:
magnum:
image_id: "ubuntu-24.04-{{ kube_version }}"
labels:
octavia_provider: "ovn"
master_lb_floating_ip_enabled: "true"
devstack_plugins:
barbican: https://opendev.org/openstack/barbican
magnum: https://opendev.org/openstack/magnum
magnum-capi-helm: https://opendev.org/openstack/magnum-capi-helm
octavia: https://opendev.org/openstack/octavia
devstack_services:
# Disable swift and dependent c-bak service to support upload of .qcow2.xz image in the gate
s-account: false
s-container: false
s-object: false
s-proxy: false
c-bak: false
octavia: true
o-api: true
o-cw: true
o-da: true
o-hm: true
o-hk: true
tempest_plugins:
- magnum-tempest-plugin
tempest_test_regex: ^magnum_tempest_plugin.tests.api
tempest_exclude_regex: (test_create_list_sign_delete_clusters|test_create_cluster_with_zero_nodes)
tox_envlist: all
+1
View File
@@ -4,6 +4,7 @@
- check-requirements
- magnum-capi-helm-tests-cluster
- magnum-cluster-api
- magnum-grenade-jobs
- openstack-cover-jobs
- openstack-python3-jobs
- publish-openstack-docs-pti
+43
View File
@@ -0,0 +1,43 @@
#!/bin/bash
#
# 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.
set -o errexit
source $GRENADE_DIR/grenaderc
source $GRENADE_DIR/functions
source $TOP_DIR/openrc admin admin
source $TOP_DIR/inc/ini-config
source $TARGET_RELEASE_DIR/magnum/devstack/lib/magnum
set -o xtrace
function create {
magnum_register_image
}
function destroy {
:
}
# Dispatcher
case $1 in
"create")
create
;;
"destroy")
destroy
;;
esac
+2
View File
@@ -0,0 +1,2 @@
register_project_for_upgrade magnum
register_db_to_save magnum
+56
View File
@@ -0,0 +1,56 @@
#!/usr/bin/env bash
# ``upgrade-magnum``
echo "*********************************************************************"
echo "Begin $0"
echo "*********************************************************************"
cleanup() {
set +o errexit
echo "*********************************************************************"
echo "ERROR: Abort $0"
echo "*********************************************************************"
trap 2; kill -2 $$
}
trap cleanup SIGHUP SIGINT SIGTERM
RUN_DIR=$(cd $(dirname "$0") && pwd)
source $GRENADE_DIR/grenaderc
source $GRENADE_DIR/functions
set -o errexit
source $TARGET_DEVSTACK_DIR/stackrc
source $TARGET_RELEASE_DIR/magnum/devstack/lib/magnum
set -o xtrace
[[ -d $SAVE_DIR/etc.magnum ]] || cp -pr $MAGNUM_CONF_DIR $SAVE_DIR/etc.magnum
# install_magnum()
stack_install_service magnum
# Reinstall magnum-cluster-api from the target checkout when present
if [[ -d $DEST/magnum-cluster-api ]]; then
setup_develop $DEST/magnum-cluster-api
fi
if [[ -d $DEST/magnum-capi-helm ]]; then
setup_develop $DEST/magnum-capi-helm
fi
# Migrate the database
$MAGNUM_BIN_DIR/magnum-db-manage upgrade
# Start magnum
start_magnum
ensure_services_started magnum-api magnum-cond
set +o xtrace
echo "*********************************************************************"
echo "SUCCESS: End $0"
echo "*********************************************************************"