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: Icee2b7a7f37e6ec1f0371ea3ee1e235fa1ce10ac
This commit is contained in:
Alex Kavanagh 2024-02-09 18:15:48 +00:00
parent 4cb98debf5
commit bbce8b1289
10 changed files with 77 additions and 76 deletions

View File

@ -6,9 +6,8 @@ parts:
build-packages: build-packages:
- tox - tox
- git - git
source: src/
build-packages:
- python3-dev - python3-dev
source: src/
build-snaps: build-snaps:
- charm - charm
build-environment: build-environment:
@ -23,9 +22,3 @@ bases:
- name: ubuntu - name: ubuntu
channel: "22.04" channel: "22.04"
architectures: [amd64, arm64, ppc64el, s390x] architectures: [amd64, arm64, ppc64el, s390x]
- name: ubuntu
channel: "23.04"
architectures: [amd64, arm64, ppc64el, s390x]
- name: ubuntu
channel: "23.10"
architectures: [amd64, arm64, ppc64el, s390x]

View File

@ -1,6 +1,6 @@
- project: - project:
templates: templates:
- charm-unit-jobs - charm-unit-jobs-py310
- charm-functional-jobs - charm-functional-jobs
vars: vars:
needs_charm_build: true needs_charm_build: true

View File

@ -11,8 +11,6 @@ tags:
- openstack - openstack
series: series:
- jammy - jammy
- lunar
- mantic
subordinate: false subordinate: false
requires: requires:
shared-db: shared-db:

View File

@ -42,7 +42,7 @@ applications:
keystone: keystone:
charm: ch:keystone charm: ch:keystone
channel: latest/edge channel: 2024.1/edge
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
@ -68,7 +68,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
network-manager: Neutron network-manager: Neutron
debug: true debug: true
channel: latest/edge channel: 2024.1/edge
neutron-api: neutron-api:
charm: ch:neutron-api charm: ch:neutron-api
@ -78,21 +78,21 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
flat-network-providers: physnet1 flat-network-providers: physnet1
neutron-security-groups: true neutron-security-groups: true
channel: latest/edge channel: 2024.1/edge
glance: glance:
charm: ch:glance charm: ch:glance
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
channel: latest/edge channel: 2024.1/edge
placement: placement:
charm: ch:placement charm: ch:placement
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
channel: latest/edge channel: 2024.1/edge
nova-compute: nova-compute:
charm: ch:nova-compute charm: ch:nova-compute
@ -106,7 +106,7 @@ applications:
debug: true debug: true
config-flags: "compute_monitors=cpu.virt_driver" config-flags: "compute_monitors=cpu.virt_driver"
libvirt-image-backend: "rbd" libvirt-image-backend: "rbd"
channel: latest/edge channel: 2024.1/edge
vault: vault:
charm: ch:vault charm: ch:vault
@ -126,11 +126,11 @@ applications:
neutron-api-plugin-ovn: neutron-api-plugin-ovn:
charm: ch:neutron-api-plugin-ovn charm: ch:neutron-api-plugin-ovn
channel: latest/edge channel: 2024.1/edge
ceilometer: ceilometer:
charm: ch:ceilometer charm: ch:ceilometer
channel: latest/edge channel: 2024.1/edge
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
@ -140,11 +140,11 @@ applications:
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
channel: latest/edge channel: 2024.1/edge
ceilometer-agent: ceilometer-agent:
charm: ch:ceilometer-agent charm: ch:ceilometer-agent
channel: latest/edge channel: 2024.1/edge
memcached: memcached:
charm: ch:memcached charm: ch:memcached
@ -158,7 +158,7 @@ applications:
osd-devices: '20G' osd-devices: '20G'
options: options:
source: *openstack-origin source: *openstack-origin
channel: latest/edge channel: reef/edge
ceph-mon: ceph-mon:
charm: ch:ceph-mon charm: ch:ceph-mon
@ -166,7 +166,7 @@ applications:
options: options:
source: *openstack-origin source: *openstack-origin
monitor-count: '3' monitor-count: '3'
channel: latest/edge channel: reef/edge
relations: relations:
- - 'keystone:shared-db' - - 'keystone:shared-db'

View File

@ -42,7 +42,7 @@ applications:
keystone: keystone:
charm: ch:keystone charm: ch:keystone
channel: latest/edge channel: 2024.1/edge
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
@ -68,7 +68,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
network-manager: Neutron network-manager: Neutron
debug: true debug: true
channel: latest/edge channel: 2024.1/edge
neutron-api: neutron-api:
charm: ch:neutron-api charm: ch:neutron-api
@ -78,21 +78,21 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
flat-network-providers: physnet1 flat-network-providers: physnet1
neutron-security-groups: true neutron-security-groups: true
channel: latest/edge channel: 2024.1/edge
glance: glance:
charm: ch:glance charm: ch:glance
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
channel: latest/edge channel: 2024.1/edge
placement: placement:
charm: ch:placement charm: ch:placement
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
channel: latest/edge channel: 2024.1/edge
nova-compute: nova-compute:
charm: ch:nova-compute charm: ch:nova-compute
@ -106,7 +106,7 @@ applications:
debug: true debug: true
config-flags: "compute_monitors=cpu.virt_driver" config-flags: "compute_monitors=cpu.virt_driver"
libvirt-image-backend: "rbd" libvirt-image-backend: "rbd"
channel: latest/edge channel: 2024.1/edge
vault: vault:
charm: ch:vault charm: ch:vault
@ -126,11 +126,11 @@ applications:
neutron-api-plugin-ovn: neutron-api-plugin-ovn:
charm: ch:neutron-api-plugin-ovn charm: ch:neutron-api-plugin-ovn
channel: latest/edge channel: 2024.1/edge
ceilometer: ceilometer:
charm: ch:ceilometer charm: ch:ceilometer
channel: latest/edge channel: 2024.1/edge
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
@ -140,11 +140,11 @@ applications:
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
channel: latest/edge channel: 2024.1/edge
ceilometer-agent: ceilometer-agent:
charm: ch:ceilometer-agent charm: ch:ceilometer-agent
channel: latest/edge channel: 2024.1/edge
memcached: memcached:
charm: ch:memcached charm: ch:memcached
@ -158,7 +158,7 @@ applications:
osd-devices: '20G' osd-devices: '20G'
options: options:
source: *openstack-origin source: *openstack-origin
channel: latest/edge channel: reef/edge
ceph-mon: ceph-mon:
charm: ch:ceph-mon charm: ch:ceph-mon
@ -166,7 +166,7 @@ applications:
options: options:
source: *openstack-origin source: *openstack-origin
monitor-count: '3' monitor-count: '3'
channel: latest/edge channel: reef/edge
relations: relations:
- - 'keystone:shared-db' - - 'keystone:shared-db'

View File

@ -1,7 +1,7 @@
variables: variables:
openstack-origin: &openstack-origin distro openstack-origin: &openstack-origin cloud:jammy-caracal
series: &series mantic series: &series jammy
applications: applications:
@ -42,7 +42,7 @@ applications:
keystone: keystone:
charm: ch:keystone charm: ch:keystone
channel: latest/edge channel: 2024.1/edge
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
@ -68,7 +68,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
network-manager: Neutron network-manager: Neutron
debug: true debug: true
channel: latest/edge channel: 2024.1/edge
neutron-api: neutron-api:
charm: ch:neutron-api charm: ch:neutron-api
@ -78,21 +78,21 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
flat-network-providers: physnet1 flat-network-providers: physnet1
neutron-security-groups: true neutron-security-groups: true
channel: latest/edge channel: 2024.1/edge
glance: glance:
charm: ch:glance charm: ch:glance
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
channel: latest/edge channel: 2024.1/edge
placement: placement:
charm: ch:placement charm: ch:placement
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
channel: latest/edge channel: 2024.1/edge
nova-compute: nova-compute:
charm: ch:nova-compute charm: ch:nova-compute
@ -106,7 +106,7 @@ applications:
debug: true debug: true
config-flags: "compute_monitors=cpu.virt_driver" config-flags: "compute_monitors=cpu.virt_driver"
libvirt-image-backend: "rbd" libvirt-image-backend: "rbd"
channel: latest/edge channel: 2024.1/edge
vault: vault:
charm: ch:vault charm: ch:vault
@ -126,11 +126,11 @@ applications:
neutron-api-plugin-ovn: neutron-api-plugin-ovn:
charm: ch:neutron-api-plugin-ovn charm: ch:neutron-api-plugin-ovn
channel: latest/edge channel: 2024.1/edge
ceilometer: ceilometer:
charm: ch:ceilometer charm: ch:ceilometer
channel: latest/edge channel: 2024.1/edge
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
@ -140,11 +140,11 @@ applications:
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
channel: latest/edge channel: 2024.1/edge
ceilometer-agent: ceilometer-agent:
charm: ch:ceilometer-agent charm: ch:ceilometer-agent
channel: latest/edge channel: 2024.1/edge
memcached: memcached:
charm: ch:memcached charm: ch:memcached
@ -158,7 +158,7 @@ applications:
osd-devices: '20G' osd-devices: '20G'
options: options:
source: *openstack-origin source: *openstack-origin
channel: latest/edge channel: reef/edge
ceph-mon: ceph-mon:
charm: ch:ceph-mon charm: ch:ceph-mon
@ -166,7 +166,7 @@ applications:
options: options:
source: *openstack-origin source: *openstack-origin
monitor-count: '3' monitor-count: '3'
channel: latest/edge channel: reef/edge
relations: relations:
- - 'keystone:shared-db' - - 'keystone:shared-db'

View File

@ -1,7 +1,7 @@
variables: variables:
openstack-origin: &openstack-origin distro openstack-origin: &openstack-origin distro
series: &series lunar series: &series noble
applications: applications:
@ -42,7 +42,7 @@ applications:
keystone: keystone:
charm: ch:keystone charm: ch:keystone
channel: latest/edge channel: 2024.1/edge
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
@ -68,7 +68,7 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
network-manager: Neutron network-manager: Neutron
debug: true debug: true
channel: latest/edge channel: 2024.1/edge
neutron-api: neutron-api:
charm: ch:neutron-api charm: ch:neutron-api
@ -78,21 +78,21 @@ applications:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
flat-network-providers: physnet1 flat-network-providers: physnet1
neutron-security-groups: true neutron-security-groups: true
channel: latest/edge channel: 2024.1/edge
glance: glance:
charm: ch:glance charm: ch:glance
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
channel: latest/edge channel: 2024.1/edge
placement: placement:
charm: ch:placement charm: ch:placement
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
channel: latest/edge channel: 2024.1/edge
nova-compute: nova-compute:
charm: ch:nova-compute charm: ch:nova-compute
@ -106,7 +106,7 @@ applications:
debug: true debug: true
config-flags: "compute_monitors=cpu.virt_driver" config-flags: "compute_monitors=cpu.virt_driver"
libvirt-image-backend: "rbd" libvirt-image-backend: "rbd"
channel: latest/edge channel: 2024.1/edge
vault: vault:
charm: ch:vault charm: ch:vault
@ -126,11 +126,11 @@ applications:
neutron-api-plugin-ovn: neutron-api-plugin-ovn:
charm: ch:neutron-api-plugin-ovn charm: ch:neutron-api-plugin-ovn
channel: latest/edge channel: 2024.1/edge
ceilometer: ceilometer:
charm: ch:ceilometer charm: ch:ceilometer
channel: latest/edge channel: 2024.1/edge
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
@ -140,11 +140,11 @@ applications:
num_units: 1 num_units: 1
options: options:
openstack-origin: *openstack-origin openstack-origin: *openstack-origin
channel: latest/edge channel: 2024.1/edge
ceilometer-agent: ceilometer-agent:
charm: ch:ceilometer-agent charm: ch:ceilometer-agent
channel: latest/edge channel: 2024.1/edge
memcached: memcached:
charm: ch:memcached charm: ch:memcached
@ -158,7 +158,7 @@ applications:
osd-devices: '20G' osd-devices: '20G'
options: options:
source: *openstack-origin source: *openstack-origin
channel: latest/edge channel: reef/edge
ceph-mon: ceph-mon:
charm: ch:ceph-mon charm: ch:ceph-mon
@ -166,7 +166,7 @@ applications:
options: options:
source: *openstack-origin source: *openstack-origin
monitor-count: '3' monitor-count: '3'
channel: latest/edge channel: reef/edge
relations: relations:
- - 'keystone:shared-db' - - 'keystone:shared-db'

View File

@ -2,13 +2,9 @@ charm_name: watcher
gate_bundles: gate_bundles:
- jammy-antelope - jammy-antelope
- jammy-bobcat - jammy-bobcat
- lunar-antelope - jammy-caracal
- mantic-bobcat
smoke_bundles: smoke_bundles:
- jammy-antelope - jammy-caracal
- jammy-bobcat
configure: configure:
- zaza.openstack.charm_tests.vault.setup.auto_initialize_no_validation - zaza.openstack.charm_tests.vault.setup.auto_initialize_no_validation
- zaza.openstack.charm_tests.ceilometer.setup.basic_setup - zaza.openstack.charm_tests.ceilometer.setup.basic_setup
@ -22,8 +18,8 @@ tests:
- zaza.openstack.charm_tests.watcher.tests.WatcherTests - zaza.openstack.charm_tests.watcher.tests.WatcherTests
tests_options: tests_options:
force_deploy: [] force_deploy:
- noble-caracal
target_deploy_status: target_deploy_status:
ovn-chassis: ovn-chassis:
workload-status: waiting workload-status: waiting
@ -40,3 +36,5 @@ target_deploy_status:
ceilometer: ceilometer:
workload-status: blocked workload-status: blocked
workload-status-message-prefix: "Run the ceilometer-upgrade action on the leader to initialize ceilometer and gnocchi" workload-status-message-prefix: "Run the ceilometer-upgrade action on the leader to initialize ceilometer and gnocchi"
dev_bundles:
- noble-caracal

View File

@ -19,7 +19,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

20
tox.ini
View File

@ -54,22 +54,30 @@ 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:py38] [testenv:py38]
basepython = python3.8 basepython = python3.8
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:py311] [testenv:py311]
basepython = python3.11 basepython = python3.11
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]
@ -90,7 +98,9 @@ commands = functest-run-suite --keep-model --bundle {posargs}
# 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}