Add Antelope support

* Add new antelope bundles
* Drop focal and kinetic bundles
* Drop jammy-yoga bundle
* Use generic job templates in osci.yaml
* Update build-on and run-on bases
* Amend path to built charm
* Add .zuul.yaml
* Add .gitreview file
* passenv OS_* and TEST_* env variables
* Update allowlist_externals

Change-Id: Ib2b1713198cc0daaff81cf7738e4623c5d965a46
This commit is contained in:
Felipe Reyes 2023-03-07 11:51:48 -03:00
parent 3ea81617e5
commit cd0a9b6d2d
15 changed files with 38 additions and 604 deletions

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.opendev.org
port=29418
project=openstack/charm-ironic-dashboard.git

4
.zuul.yaml Normal file
View File

@ -0,0 +1,4 @@
- project:
templates:
- openstack-python3-charm-jobs
- openstack-cover-jobs

View File

@ -2,21 +2,13 @@ type: "charm"
bases: bases:
- build-on: - build-on:
- name: "ubuntu" - name: "ubuntu"
channel: "20.04" channel: "22.04"
architectures: architectures:
- amd64 - amd64
run-on: run-on:
- name: "ubuntu" - name: "ubuntu"
channel: "20.04" channel: "22.04"
architectures: [amd64, s390x, ppc64el, arm64]
- name: "ubuntu"
channel: "23.04"
architectures: [amd64, s390x, ppc64el, arm64] architectures: [amd64, s390x, ppc64el, arm64]
#bases:
# - build-on:
# - name: ubuntu
# channel: "22.04"
# architectures:
# - amd64
# run-on:
# - name: ubuntu
# channel: "22.04"
# architectures: [amd64, s390x, ppc64el, arm64]

View File

@ -1,10 +1,9 @@
- project: - project:
templates: templates:
- charm-unit-jobs-py38 - charm-unit-jobs
- charm-unit-jobs-py310 - charm-functional-jobs
- charm-xena-functional-jobs
- charm-yoga-functional-jobs
vars: vars:
needs_charm_build: true needs_charm_build: true
charm_build_name: ironic-dashboard charm_build_name: ironic-dashboard
build_type: charmcraft build_type: charmcraft
charmcraft_channel: 2.1/stable

18
pip.sh
View File

@ -1,18 +0,0 @@
#!/usr/bin/env bash
#
# This file is managed centrally by release-tools and should not be modified
# within individual charm repos. See the 'global' dir contents for available
# choices of tox.ini for OpenStack Charms:
# https://github.com/openstack-charmers/release-tools
#
# setuptools 58.0 dropped the support for use_2to3=true which is needed to
# install blessings (an indirect dependency of charm-tools).
#
# More details on the beahvior of tox and virtualenv creation can be found at
# https://github.com/tox-dev/tox/issues/448
#
# This script is wrapper to force the use of the pinned versions early in the
# process when the virtualenv was created and upgraded before installing the
# depedencies declared in the target.
pip install 'pip<20.3' 'setuptools<50.0.0'
pip "$@"

View File

@ -1,110 +0,0 @@
variables:
openstack-origin: &openstack-origin cloud:focal-ussuri
local_overlay_enabled: False
series: focal
comment:
- 'machines section to decide order of deployment. database sooner = faster'
machines:
'0':
constraints: mem=3072M
'1':
constraints: mem=3072M
'2':
constraints: mem=3072M
'3':
'4':
'5':
'6':
applications:
keystone-mysql-router:
charm: ch:mysql-router
channel: latest/edge
openstack-dashboard-mysql-router:
charm: ch:mysql-router
channel: latest/edge
ironic-api-mysql-router:
charm: ch:mysql-router
channel: latest/edge
mysql-innodb-cluster:
charm: ch:mysql-innodb-cluster
num_units: 3
options:
max-connections: 1000
innodb-buffer-pool-size: 256M
to:
- '0'
- '1'
- '2'
channel: latest/edge
rabbitmq-server:
charm: ch:rabbitmq-server
num_units: 1
to:
- '3'
channel: latest/edge
keystone:
charm: ch:keystone
num_units: 1
options:
openstack-origin: *openstack-origin
to:
- '4'
channel: latest/edge
ironic-api:
charm: ch:ironic-api
num_units: 1
options:
openstack-origin: *openstack-origin
to:
- '5'
channel: latest/edge
openstack-dashboard:
charm: ch:openstack-dashboard
num_units: 1
options:
openstack-origin: *openstack-origin
to:
- '6'
channel: latest/edge
ironic-dashboard:
charm: ../../../ironic-dashboard.charm
relations:
- - 'keystone:shared-db'
- 'keystone-mysql-router:shared-db'
- - 'keystone-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'
- - 'ironic-api:shared-db'
- 'ironic-api-mysql-router:shared-db'
- - 'ironic-api-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'
- - 'ironic-api:identity-service'
- 'keystone:identity-service'
- - 'ironic-api:amqp'
- 'rabbitmq-server:amqp'
- - 'openstack-dashboard:shared-db'
- 'openstack-dashboard-mysql-router:shared-db'
- - 'openstack-dashboard-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'
- - 'openstack-dashboard:identity-service'
- 'keystone:identity-service'
- - 'openstack-dashboard:dashboard-plugin'
- 'ironic-dashboard:dashboard'

View File

@ -1,110 +0,0 @@
variables:
openstack-origin: &openstack-origin cloud:focal-victoria
local_overlay_enabled: False
series: focal
comment:
- 'machines section to decide order of deployment. database sooner = faster'
machines:
'0':
constraints: mem=3072M
'1':
constraints: mem=3072M
'2':
constraints: mem=3072M
'3':
'4':
'5':
'6':
applications:
keystone-mysql-router:
charm: ch:mysql-router
channel: latest/edge
openstack-dashboard-mysql-router:
charm: ch:mysql-router
channel: latest/edge
ironic-api-mysql-router:
charm: ch:mysql-router
channel: latest/edge
mysql-innodb-cluster:
charm: ch:mysql-innodb-cluster
num_units: 3
options:
max-connections: 1000
innodb-buffer-pool-size: 256M
to:
- '0'
- '1'
- '2'
channel: latest/edge
rabbitmq-server:
charm: ch:rabbitmq-server
num_units: 1
to:
- '3'
channel: latest/edge
keystone:
charm: ch:keystone
num_units: 1
options:
openstack-origin: *openstack-origin
to:
- '4'
channel: latest/edge
ironic-api:
charm: ch:ironic-api
num_units: 1
options:
openstack-origin: *openstack-origin
to:
- '5'
channel: latest/edge
openstack-dashboard:
charm: ch:openstack-dashboard
num_units: 1
options:
openstack-origin: *openstack-origin
to:
- '6'
channel: latest/edge
ironic-dashboard:
charm: ../../../ironic-dashboard.charm
relations:
- - 'keystone:shared-db'
- 'keystone-mysql-router:shared-db'
- - 'keystone-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'
- - 'ironic-api:shared-db'
- 'ironic-api-mysql-router:shared-db'
- - 'ironic-api-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'
- - 'ironic-api:identity-service'
- 'keystone:identity-service'
- - 'ironic-api:amqp'
- 'rabbitmq-server:amqp'
- - 'openstack-dashboard:shared-db'
- 'openstack-dashboard-mysql-router:shared-db'
- - 'openstack-dashboard-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'
- - 'openstack-dashboard:identity-service'
- 'keystone:identity-service'
- - 'openstack-dashboard:dashboard-plugin'
- 'ironic-dashboard:dashboard'

View File

@ -1,110 +0,0 @@
variables:
openstack-origin: &openstack-origin cloud:focal-wallaby
local_overlay_enabled: False
series: focal
comment:
- 'machines section to decide order of deployment. database sooner = faster'
machines:
'0':
constraints: mem=3072M
'1':
constraints: mem=3072M
'2':
constraints: mem=3072M
'3':
'4':
'5':
'6':
applications:
keystone-mysql-router:
charm: ch:mysql-router
channel: latest/edge
openstack-dashboard-mysql-router:
charm: ch:mysql-router
channel: latest/edge
ironic-api-mysql-router:
charm: ch:mysql-router
channel: latest/edge
mysql-innodb-cluster:
charm: ch:mysql-innodb-cluster
num_units: 3
options:
max-connections: 1000
innodb-buffer-pool-size: 256M
to:
- '0'
- '1'
- '2'
channel: latest/edge
rabbitmq-server:
charm: ch:rabbitmq-server
num_units: 1
to:
- '3'
channel: latest/edge
keystone:
charm: ch:keystone
num_units: 1
options:
openstack-origin: *openstack-origin
to:
- '4'
channel: latest/edge
ironic-api:
charm: ch:ironic-api
num_units: 1
options:
openstack-origin: *openstack-origin
to:
- '5'
channel: latest/edge
openstack-dashboard:
charm: ch:openstack-dashboard
num_units: 1
options:
openstack-origin: *openstack-origin
to:
- '6'
channel: latest/edge
ironic-dashboard:
charm: ../../../ironic-dashboard.charm
relations:
- - 'keystone:shared-db'
- 'keystone-mysql-router:shared-db'
- - 'keystone-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'
- - 'ironic-api:shared-db'
- 'ironic-api-mysql-router:shared-db'
- - 'ironic-api-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'
- - 'ironic-api:identity-service'
- 'keystone:identity-service'
- - 'ironic-api:amqp'
- 'rabbitmq-server:amqp'
- - 'openstack-dashboard:shared-db'
- 'openstack-dashboard-mysql-router:shared-db'
- - 'openstack-dashboard-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'
- - 'openstack-dashboard:identity-service'
- 'keystone:identity-service'
- - 'openstack-dashboard:dashboard-plugin'
- 'ironic-dashboard:dashboard'

View File

@ -1,110 +0,0 @@
variables:
openstack-origin: &openstack-origin cloud:focal-yoga
local_overlay_enabled: False
series: focal
comment:
- 'machines section to decide order of deployment. database sooner = faster'
machines:
'0':
constraints: mem=3072M
'1':
constraints: mem=3072M
'2':
constraints: mem=3072M
'3':
'4':
'5':
'6':
applications:
keystone-mysql-router:
charm: ch:mysql-router
channel: latest/edge
openstack-dashboard-mysql-router:
charm: ch:mysql-router
channel: latest/edge
ironic-api-mysql-router:
charm: ch:mysql-router
channel: latest/edge
mysql-innodb-cluster:
charm: ch:mysql-innodb-cluster
num_units: 3
options:
max-connections: 1000
innodb-buffer-pool-size: 256M
to:
- '0'
- '1'
- '2'
channel: latest/edge
rabbitmq-server:
charm: ch:rabbitmq-server
num_units: 1
to:
- '3'
channel: latest/edge
keystone:
charm: ch:keystone
num_units: 1
options:
openstack-origin: *openstack-origin
to:
- '4'
channel: latest/edge
ironic-api:
charm: ch:ironic-api
num_units: 1
options:
openstack-origin: *openstack-origin
to:
- '5'
channel: latest/edge
openstack-dashboard:
charm: ch:openstack-dashboard
num_units: 1
options:
openstack-origin: *openstack-origin
to:
- '6'
channel: latest/edge
ironic-dashboard:
charm: ../../../ironic-dashboard.charm
relations:
- - 'keystone:shared-db'
- 'keystone-mysql-router:shared-db'
- - 'keystone-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'
- - 'ironic-api:shared-db'
- 'ironic-api-mysql-router:shared-db'
- - 'ironic-api-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'
- - 'ironic-api:identity-service'
- 'keystone:identity-service'
- - 'ironic-api:amqp'
- 'rabbitmq-server:amqp'
- - 'openstack-dashboard:shared-db'
- 'openstack-dashboard-mysql-router:shared-db'
- - 'openstack-dashboard-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'
- - 'openstack-dashboard:identity-service'
- 'keystone:identity-service'
- - 'openstack-dashboard:dashboard-plugin'
- 'ironic-dashboard:dashboard'

View File

@ -1,9 +1,9 @@
variables: variables:
openstack-origin: &openstack-origin cloud:focal-xena openstack-origin: &openstack-origin cloud:jammy-antelope
local_overlay_enabled: False local_overlay_enabled: False
series: focal series: jammy
comment: comment:
- 'machines section to decide order of deployment. database sooner = faster' - 'machines section to decide order of deployment. database sooner = faster'
@ -80,7 +80,7 @@ applications:
channel: latest/edge channel: latest/edge
ironic-dashboard: ironic-dashboard:
charm: ../../../ironic-dashboard.charm charm: ../../ironic-dashboard.charm
relations: relations:

View File

@ -80,7 +80,7 @@ applications:
channel: latest/edge channel: latest/edge
ironic-dashboard: ironic-dashboard:
charm: ../../../ironic-dashboard.charm charm: ../../ironic-dashboard.charm
relations: relations:

View File

@ -1,110 +0,0 @@
variables:
openstack-origin: &openstack-origin distro
local_overlay_enabled: False
series: kinetic
comment:
- 'machines section to decide order of deployment. database sooner = faster'
machines:
'0':
constraints: mem=3072M
'1':
constraints: mem=3072M
'2':
constraints: mem=3072M
'3':
'4':
'5':
'6':
applications:
keystone-mysql-router:
charm: ch:mysql-router
channel: latest/edge
openstack-dashboard-mysql-router:
charm: ch:mysql-router
channel: latest/edge
ironic-api-mysql-router:
charm: ch:mysql-router
channel: latest/edge
mysql-innodb-cluster:
charm: ch:mysql-innodb-cluster
num_units: 3
options:
max-connections: 1000
innodb-buffer-pool-size: 256M
to:
- '0'
- '1'
- '2'
channel: latest/edge
rabbitmq-server:
charm: ch:rabbitmq-server
num_units: 1
to:
- '3'
channel: latest/edge
keystone:
charm: ch:keystone
num_units: 1
options:
openstack-origin: *openstack-origin
to:
- '4'
channel: latest/edge
ironic-api:
charm: ch:ironic-api
num_units: 1
options:
openstack-origin: *openstack-origin
to:
- '5'
channel: latest/edge
openstack-dashboard:
charm: ch:openstack-dashboard
num_units: 1
options:
openstack-origin: *openstack-origin
to:
- '6'
channel: latest/edge
ironic-dashboard:
charm: ../../../ironic-dashboard.charm
relations:
- - 'keystone:shared-db'
- 'keystone-mysql-router:shared-db'
- - 'keystone-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'
- - 'ironic-api:shared-db'
- 'ironic-api-mysql-router:shared-db'
- - 'ironic-api-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'
- - 'ironic-api:identity-service'
- 'keystone:identity-service'
- - 'ironic-api:amqp'
- 'rabbitmq-server:amqp'
- - 'openstack-dashboard:shared-db'
- 'openstack-dashboard-mysql-router:shared-db'
- - 'openstack-dashboard-mysql-router:db-router'
- 'mysql-innodb-cluster:db-router'
- - 'openstack-dashboard:identity-service'
- 'keystone:identity-service'
- - 'openstack-dashboard:dashboard-plugin'
- 'ironic-dashboard:dashboard'

View File

@ -3,7 +3,7 @@ variables:
local_overlay_enabled: False local_overlay_enabled: False
series: jammy series: lunar
comment: comment:
- 'machines section to decide order of deployment. database sooner = faster' - 'machines section to decide order of deployment. database sooner = faster'
@ -80,7 +80,7 @@ applications:
channel: latest/edge channel: latest/edge
ironic-dashboard: ironic-dashboard:
charm: ../../../ironic-dashboard.charm charm: ../../ironic-dashboard.charm
relations: relations:

View File

@ -1,14 +1,14 @@
charm_name: ironic-dashboard charm_name: ironic-dashboard
smoke_bundles: smoke_bundles:
- focal-xena - jammy-antelope
gate_bundles: gate_bundles:
- focal-xena - jammy-zed
- impish-xena - jammy-antelope
- lunar-antelope
dev_bundles: dev_bundles:
- focal-yoga - jammy-antelope
- jammy-yoga
target_deploy_status: {} target_deploy_status: {}
@ -20,5 +20,4 @@ tests:
tests_options: tests_options:
force_deploy: force_deploy:
- impish-xena - lunar-antelope
- jammy-yoga

16
tox.ini
View File

@ -16,14 +16,19 @@ skip_missing_interpreters = False
setenv = VIRTUAL_ENV={envdir} setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0 PYTHONHASHSEED=0
TERM=linux TERM=linux
passenv = http_proxy https_proxy passenv =
install_command = http_proxy
{toxinidir}/pip.sh install {opts} {packages} https_proxy
HOME
TERM
CS_*
OS_*
TEST_*
allowlist_externals = allowlist_externals =
charmcraft charmcraft
bash bash
tox tox
rename.sh {toxinidir}/rename.sh
deps = deps =
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
@ -67,10 +72,9 @@ commands = flake8 {posargs} src unit_tests
[testenv:func-target] [testenv:func-target]
basepython = python3 basepython = python3
passenv = HOME TERM CS_* OS_* TEST_*
deps = -r{toxinidir}/test-requirements.txt deps = -r{toxinidir}/test-requirements.txt
commands = commands =
bash -c "if [ ! -f ../*.charm ]; then echo 'Charm does not exist. Run tox -e build'; exit 1; fi" bash -c "if [ ! -f ./*.charm ]; then echo 'Charm does not exist. Run tox -e build'; exit 1; fi"
functest-run-suite --keep-model --bundle {posargs} functest-run-suite --keep-model --bundle {posargs}
[testenv:cover] [testenv:cover]