Updates for caracal testing support

These updates, on the master branch, are to support testing the caracal
packages and support of the charms for caracal.  They do NOT lock the charms
down, and don't change the testing branches to stable branches.

Change-Id: Id665caf3df7b4db45f540526f36c94629b0bea26
This commit is contained in:
Alex Kavanagh
2024-02-09 18:15:47 +00:00
parent 3dd47bc24b
commit 4c9d28aee8
10 changed files with 73 additions and 132 deletions

View File

@@ -52,67 +52,3 @@ bases:
- name: ubuntu - name: ubuntu
channel: "22.04" channel: "22.04"
architectures: [arm64] architectures: [arm64]
- build-on:
- name: ubuntu
channel: "23.04"
architectures: [amd64]
run-on:
- name: ubuntu
channel: "23.04"
architectures: [amd64]
- build-on:
- name: ubuntu
channel: "23.04"
architectures: [s390x]
run-on:
- name: ubuntu
channel: "23.04"
architectures: [s390x]
- build-on:
- name: ubuntu
channel: "23.04"
architectures: [ppc64el]
run-on:
- name: ubuntu
channel: "23.04"
architectures: [ppc64el]
- build-on:
- name: ubuntu
channel: "23.04"
architectures: [arm64]
run-on:
- name: ubuntu
channel: "23.04"
architectures: [arm64]
- build-on:
- name: ubuntu
channel: "23.10"
architectures: [amd64]
run-on:
- name: ubuntu
channel: "23.10"
architectures: [amd64]
- build-on:
- name: ubuntu
channel: "23.10"
architectures: [s390x]
run-on:
- name: ubuntu
channel: "23.10"
architectures: [s390x]
- build-on:
- name: ubuntu
channel: "23.10"
architectures: [ppc64el]
run-on:
- name: ubuntu
channel: "23.10"
architectures: [ppc64el]
- build-on:
- name: ubuntu
channel: "23.10"
architectures: [arm64]
run-on:
- name: ubuntu
channel: "23.10"
architectures: [arm64]

View File

@@ -6,4 +6,4 @@
needs_charm_build: true needs_charm_build: true
charm_build_name: cinder-backup-swift-proxy charm_build_name: cinder-backup-swift-proxy
build_type: charmcraft build_type: charmcraft
charmcraft_channel: 2.x/edge charmcraft_channel: 2.x/stable

View File

@@ -9,8 +9,6 @@ tags:
- misc - misc
series: series:
- jammy - jammy
- lunar
- mantic
subordinate: true subordinate: true
provides: provides:
backup-backend: backup-backend:

View File

@@ -76,7 +76,7 @@ applications:
- '6' - '6'
- '7' - '7'
- '8' - '8'
channel: latest/edge channel: reef/edge
ceph-osd: ceph-osd:
charm: ch:ceph-osd charm: ch:ceph-osd
@@ -90,7 +90,7 @@ applications:
- '9' - '9'
- '10' - '10'
- '11' - '11'
channel: latest/edge channel: reef/edge
cinder: cinder:
charm: ch:cinder charm: ch:cinder
@@ -101,12 +101,12 @@ applications:
glance-api-version: 2 glance-api-version: 2
to: to:
- '12' - '12'
channel: latest/edge channel: 2024.1/edge
cinder-ceph: cinder-ceph:
charm: ch:cinder-ceph charm: ch:cinder-ceph
num_units: 0 num_units: 0
channel: latest/edge channel: 2024.1/edge
cinder-backup-swift-proxy: cinder-backup-swift-proxy:
charm: ../../../cinder-backup-swift-proxy_ubuntu-22.04-amd64.charm charm: ../../../cinder-backup-swift-proxy_ubuntu-22.04-amd64.charm
@@ -126,7 +126,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '13' - '13'
channel: latest/edge channel: 2024.1/edge
keystone: keystone:
charm: ch:keystone charm: ch:keystone
@@ -135,7 +135,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '14' - '14'
channel: latest/edge channel: 2024.1/edge
nova-cloud-controller: nova-cloud-controller:
charm: ch:nova-cloud-controller charm: ch:nova-cloud-controller
@@ -144,7 +144,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '15' - '15'
channel: latest/edge channel: 2024.1/edge
rabbitmq-server: rabbitmq-server:
charm: ch:rabbitmq-server charm: ch:rabbitmq-server
@@ -160,7 +160,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '17' - '17'
channel: latest/edge channel: 2024.1/edge
placement: placement:
charm: ch:placement charm: ch:placement
@@ -170,7 +170,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '18' - '18'
channel: latest/edge channel: 2024.1/edge
# external swift # external swift
swift-keystone-mysql-router: swift-keystone-mysql-router:
@@ -197,7 +197,7 @@ applications:
preferred-api-version: 3 preferred-api-version: 3
to: to:
- '19' - '19'
channel: latest/edge channel: 2024.1/edge
swift-proxy: swift-proxy:
@@ -209,7 +209,7 @@ applications:
replicas: 1 replicas: 1
to: to:
- '20' - '20'
channel: latest/edge channel: 2024.1/edge
swift-storage: swift-storage:
charm: ch:swift-storage charm: ch:swift-storage
@@ -221,7 +221,7 @@ applications:
block-devices: 'cinder,10G' block-devices: 'cinder,10G'
to: to:
- '21' - '21'
channel: latest/edge channel: 2024.1/edge
relations: relations:

View File

@@ -76,7 +76,7 @@ applications:
- '6' - '6'
- '7' - '7'
- '8' - '8'
channel: latest/edge channel: reef/edge
ceph-osd: ceph-osd:
charm: ch:ceph-osd charm: ch:ceph-osd
@@ -90,7 +90,7 @@ applications:
- '9' - '9'
- '10' - '10'
- '11' - '11'
channel: latest/edge channel: reef/edge
cinder: cinder:
charm: ch:cinder charm: ch:cinder
@@ -101,12 +101,12 @@ applications:
glance-api-version: 2 glance-api-version: 2
to: to:
- '12' - '12'
channel: latest/edge channel: 2024.1/edge
cinder-ceph: cinder-ceph:
charm: ch:cinder-ceph charm: ch:cinder-ceph
num_units: 0 num_units: 0
channel: latest/edge channel: 2024.1/edge
cinder-backup-swift-proxy: cinder-backup-swift-proxy:
charm: ../../../cinder-backup-swift-proxy_ubuntu-22.04-amd64.charm charm: ../../../cinder-backup-swift-proxy_ubuntu-22.04-amd64.charm
@@ -126,7 +126,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '13' - '13'
channel: latest/edge channel: 2024.1/edge
keystone: keystone:
charm: ch:keystone charm: ch:keystone
@@ -135,7 +135,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '14' - '14'
channel: latest/edge channel: 2024.1/edge
nova-cloud-controller: nova-cloud-controller:
charm: ch:nova-cloud-controller charm: ch:nova-cloud-controller
@@ -144,7 +144,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '15' - '15'
channel: latest/edge channel: 2024.1/edge
rabbitmq-server: rabbitmq-server:
charm: ch:rabbitmq-server charm: ch:rabbitmq-server
@@ -160,7 +160,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '17' - '17'
channel: latest/edge channel: 2024.1/edge
placement: placement:
charm: ch:placement charm: ch:placement
@@ -170,7 +170,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '18' - '18'
channel: latest/edge channel: 2024.1/edge
# external swift # external swift
swift-keystone-mysql-router: swift-keystone-mysql-router:
@@ -197,7 +197,7 @@ applications:
preferred-api-version: 3 preferred-api-version: 3
to: to:
- '19' - '19'
channel: latest/edge channel: 2024.1/edge
swift-proxy: swift-proxy:
@@ -209,7 +209,7 @@ applications:
replicas: 1 replicas: 1
to: to:
- '20' - '20'
channel: latest/edge channel: 2024.1/edge
swift-storage: swift-storage:
charm: ch:swift-storage charm: ch:swift-storage
@@ -221,7 +221,7 @@ applications:
block-devices: 'cinder,10G' block-devices: 'cinder,10G'
to: to:
- '21' - '21'
channel: latest/edge channel: 2024.1/edge
relations: relations:

View File

@@ -1,9 +1,9 @@
variables: variables:
openstack-origin: &openstack-origin distro openstack-origin: &openstack-origin cloud:jammy-caracal
local_overlay_enabled: False local_overlay_enabled: False
series: mantic series: jammy
comment: comment:
- 'machines section to decide order of deployment. database sooner = faster' - 'machines section to decide order of deployment. database sooner = faster'
@@ -76,7 +76,7 @@ applications:
- '6' - '6'
- '7' - '7'
- '8' - '8'
channel: latest/edge channel: reef/edge
ceph-osd: ceph-osd:
charm: ch:ceph-osd charm: ch:ceph-osd
@@ -90,7 +90,7 @@ applications:
- '9' - '9'
- '10' - '10'
- '11' - '11'
channel: latest/edge channel: reef/edge
cinder: cinder:
charm: ch:cinder charm: ch:cinder
@@ -101,15 +101,15 @@ applications:
glance-api-version: 2 glance-api-version: 2
to: to:
- '12' - '12'
channel: latest/edge channel: 2024.1/edge
cinder-ceph: cinder-ceph:
charm: ch:cinder-ceph charm: ch:cinder-ceph
num_units: 0 num_units: 0
channel: latest/edge channel: 2024.1/edge
cinder-backup-swift-proxy: cinder-backup-swift-proxy:
charm: ../../../cinder-backup-swift-proxy_ubuntu-23.10-amd64.charm charm: ../../../cinder-backup-swift-proxy_ubuntu-22.04-amd64.charm
num_units: 0 num_units: 0
options: options:
auth-version: 3 auth-version: 3
@@ -126,7 +126,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '13' - '13'
channel: latest/edge channel: 2024.1/edge
keystone: keystone:
charm: ch:keystone charm: ch:keystone
@@ -135,7 +135,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '14' - '14'
channel: latest/edge channel: 2024.1/edge
nova-cloud-controller: nova-cloud-controller:
charm: ch:nova-cloud-controller charm: ch:nova-cloud-controller
@@ -144,7 +144,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '15' - '15'
channel: latest/edge channel: 2024.1/edge
rabbitmq-server: rabbitmq-server:
charm: ch:rabbitmq-server charm: ch:rabbitmq-server
@@ -160,7 +160,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '17' - '17'
channel: latest/edge channel: 2024.1/edge
placement: placement:
charm: ch:placement charm: ch:placement
@@ -170,7 +170,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '18' - '18'
channel: latest/edge channel: 2024.1/edge
# external swift # external swift
swift-keystone-mysql-router: swift-keystone-mysql-router:
@@ -197,7 +197,7 @@ applications:
preferred-api-version: 3 preferred-api-version: 3
to: to:
- '19' - '19'
channel: latest/edge channel: 2024.1/edge
swift-proxy: swift-proxy:
@@ -209,7 +209,7 @@ applications:
replicas: 1 replicas: 1
to: to:
- '20' - '20'
channel: latest/edge channel: 2024.1/edge
swift-storage: swift-storage:
charm: ch:swift-storage charm: ch:swift-storage
@@ -221,7 +221,7 @@ applications:
block-devices: 'cinder,10G' block-devices: 'cinder,10G'
to: to:
- '21' - '21'
channel: latest/edge channel: 2024.1/edge
relations: relations:

View File

@@ -3,7 +3,7 @@ variables:
local_overlay_enabled: False local_overlay_enabled: False
series: lunar series: noble
comment: comment:
- 'machines section to decide order of deployment. database sooner = faster' - 'machines section to decide order of deployment. database sooner = faster'
@@ -76,7 +76,7 @@ applications:
- '6' - '6'
- '7' - '7'
- '8' - '8'
channel: latest/edge channel: reef/edge
ceph-osd: ceph-osd:
charm: ch:ceph-osd charm: ch:ceph-osd
@@ -90,7 +90,7 @@ applications:
- '9' - '9'
- '10' - '10'
- '11' - '11'
channel: latest/edge channel: reef/edge
cinder: cinder:
charm: ch:cinder charm: ch:cinder
@@ -101,15 +101,15 @@ applications:
glance-api-version: 2 glance-api-version: 2
to: to:
- '12' - '12'
channel: latest/edge channel: 2024.1/edge
cinder-ceph: cinder-ceph:
charm: ch:cinder-ceph charm: ch:cinder-ceph
num_units: 0 num_units: 0
channel: latest/edge channel: 2024.1/edge
cinder-backup-swift-proxy: cinder-backup-swift-proxy:
charm: ../../../cinder-backup-swift-proxy_ubuntu-23.04-amd64.charm charm: ../../../cinder-backup-swift-proxy_ubuntu-22.04-amd64.charm
num_units: 0 num_units: 0
options: options:
auth-version: 3 auth-version: 3
@@ -126,7 +126,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '13' - '13'
channel: latest/edge channel: 2024.1/edge
keystone: keystone:
charm: ch:keystone charm: ch:keystone
@@ -135,7 +135,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '14' - '14'
channel: latest/edge channel: 2024.1/edge
nova-cloud-controller: nova-cloud-controller:
charm: ch:nova-cloud-controller charm: ch:nova-cloud-controller
@@ -144,7 +144,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '15' - '15'
channel: latest/edge channel: 2024.1/edge
rabbitmq-server: rabbitmq-server:
charm: ch:rabbitmq-server charm: ch:rabbitmq-server
@@ -160,7 +160,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '17' - '17'
channel: latest/edge channel: 2024.1/edge
placement: placement:
charm: ch:placement charm: ch:placement
@@ -170,7 +170,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
to: to:
- '18' - '18'
channel: latest/edge channel: 2024.1/edge
# external swift # external swift
swift-keystone-mysql-router: swift-keystone-mysql-router:
@@ -197,7 +197,7 @@ applications:
preferred-api-version: 3 preferred-api-version: 3
to: to:
- '19' - '19'
channel: latest/edge channel: 2024.1/edge
swift-proxy: swift-proxy:
@@ -209,7 +209,7 @@ applications:
replicas: 1 replicas: 1
to: to:
- '20' - '20'
channel: latest/edge channel: 2024.1/edge
swift-storage: swift-storage:
charm: ch:swift-storage charm: ch:swift-storage
@@ -221,7 +221,7 @@ applications:
block-devices: 'cinder,10G' block-devices: 'cinder,10G'
to: to:
- '21' - '21'
channel: latest/edge channel: 2024.1/edge
relations: relations:

View File

@@ -1,17 +1,16 @@
charm_name: cinder-backup-swift-proxy charm_name: cinder-backup-swift-proxy
gate_bundles: gate_bundles:
- jammy-antelope - jammy-antelope
dev_bundles:
- jammy-bobcat - jammy-bobcat
- lunar-antelope - jammy-caracal
- mantic-bobcat dev_bundles:
- noble-caracal
smoke_bundles: smoke_bundles:
- jammy-yoga - jammy-caracal
configure: configure:
- zaza.openstack.charm_tests.cinder_backup_swift_proxy.setup.configure_cinder_backup - zaza.openstack.charm_tests.cinder_backup_swift_proxy.setup.configure_cinder_backup
tests: tests:
- zaza.openstack.charm_tests.cinder_backup_swift_proxy.tests.CinderBackupSwiftTest - zaza.openstack.charm_tests.cinder_backup_swift_proxy.tests.CinderBackupSwiftTest
tests_options: tests_options:
force_deploy: force_deploy:
- lunar-antelope - noble-caracal
- mantic-bobcat

View File

@@ -25,7 +25,9 @@ passenv =
CS_* CS_*
OS_* OS_*
TEST_* TEST_*
deps = -r{toxinidir}/test-requirements.txt deps =
-c {env:TEST_CONSTRAINTS_FILE:https://raw.githubusercontent.com/openstack-charmers/zaza-openstack-tests/master/constraints/constraints-2024.1.txt}
-r{toxinidir}/test-requirements.txt
[testenv:pep8] [testenv:pep8]
basepython = python3 basepython = python3

12
tox.ini
View File

@@ -59,12 +59,16 @@ commands =
[testenv:py3] [testenv:py3]
basepython = python3 basepython = python3
deps = -r{toxinidir}/test-requirements.txt deps =
-c {env:TEST_CONSTRAINTS_FILE:https://raw.githubusercontent.com/openstack-charmers/zaza-openstack-tests/master/constraints/constraints-2024.1.txt}
-r{toxinidir}/test-requirements.txt
commands = stestr run --slowest {posargs} commands = stestr run --slowest {posargs}
[testenv:py310] [testenv:py310]
basepython = python3.10 basepython = python3.10
deps = -r{toxinidir}/test-requirements.txt deps =
-c {env:TEST_CONSTRAINTS_FILE:https://raw.githubusercontent.com/openstack-charmers/zaza-openstack-tests/master/constraints/constraints-2024.1.txt}
-r{toxinidir}/test-requirements.txt
commands = stestr run --slowest {posargs} commands = stestr run --slowest {posargs}
[testenv:pep8] [testenv:pep8]
@@ -77,7 +81,9 @@ commands = flake8 {posargs} src unit_tests
# Technique based heavily upon # Technique based heavily upon
# https://github.com/openstack/nova/blob/master/tox.ini # https://github.com/openstack/nova/blob/master/tox.ini
basepython = python3 basepython = python3
deps = -r{toxinidir}/requirements.txt deps =
-c {env:TEST_CONSTRAINTS_FILE:https://raw.githubusercontent.com/openstack-charmers/zaza-openstack-tests/master/constraints/constraints-2024.1.txt}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
setenv = setenv =
{[testenv]setenv} {[testenv]setenv}