Enable magnum CI

Update references and enable magnum CI.

Change-Id: I3ae48a5c75f262908d530c3efb7a289f5213a14e
This commit is contained in:
Guillaume Boutry 2023-09-25 09:27:58 +02:00
parent 697623da07
commit e8af24a66e
5 changed files with 49 additions and 46 deletions

View File

@ -0,0 +1,11 @@
- project:
templates:
- openstack-python3-charm-yoga-jobs
- openstack-cover-jobs
- microk8s-func-test
vars:
charm_build_name: magnum-k8s
juju_channel: 3.1/stable
juju_classic_mode: false
microk8s_channel: 1.26-strict/stable
microk8s_classic_mode: false

View File

@ -26,13 +26,13 @@ resources:
magnum-api-image:
type: oci-image
description: OCI image for OpenStack magnum
# ghcr.io/openstack-snaps/magnum-consolidated:2023.1
upstream-source: ghcr.io/openstack-snaps/magnum-consolidated:2023.1
# ghcr.io/canonical/magnum-consolidated:2023.1
upstream-source: ghcr.io/canonical/magnum-consolidated:2023.1
magnum-conductor-image:
type: oci-image
description: OCI image for OpenStack magnum
# ghcr.io/openstack-snaps/magnum-consolidated:2023.1
upstream-source: ghcr.io/openstack-snaps/magnum-consolidated:2023.1
# ghcr.io/canonical/magnum-consolidated:2023.1
upstream-source: ghcr.io/canonical/magnum-consolidated:2023.1
requires:
database:

View File

@ -1,17 +1,17 @@
# This file is managed centrally. If you find the need to modify this as a
# one-off, please don't. Intead, consult #openstack-charms and ask about
# requirements management in charms via bot-control. Thank you.
charm-tools>=2.4.4
coverage>=3.6
mock>=1.2
flake8>=2.2.4,<=2.4.1
pyflakes==2.1.1
stestr>=2.2.0
requests>=2.18.4
psutil
# oslo.i18n dropped py35 support
oslo.i18n<4.0.0
git+https://github.com/openstack-charmers/zaza.git#egg=zaza
# 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 *requirements.txt files for OpenStack Charms:
# https://github.com/openstack-charmers/release-tools
#
pwgen
coverage
mock
flake8
stestr
git+https://github.com/openstack-charmers/zaza.git@libjuju-3.1#egg=zaza
git+https://github.com/openstack-charmers/zaza-openstack-tests.git#egg=zaza.openstack
pytz # workaround for 14.04 pip/tox
pyudev # for ceph-* charm unit tests (not mocked?)
git+https://opendev.org/openstack/tempest.git#egg=tempest
ops
# Subunit 1.4.3+ requires extras
extras

View File

@ -16,7 +16,7 @@ applications:
options:
kubernetes-service-annotations: metallb.universe.tf/address-pool=public
# required for barbican and magnum
# required for magnum
rabbitmq:
charm: ch:rabbitmq-k8s
channel: 3.9/edge
@ -34,16 +34,14 @@ applications:
fernet-keys: 5M
credential-keys: 5M
vault:
charm: ch:vault-k8s
glance:
charm: ch:glance-k8s
channel: 2023.1/edge
scale: 1
trust: false
storage:
local-repository: 5G
barbican:
charm: ch:barbican-k8s
scale: 1
trust: false
magnum:
charm: ../../magnum-k8s.charm
scale: 1
@ -62,19 +60,14 @@ relations:
- - mysql:database
- keystone:database
- - mysql:database
- barbican:database
- - rabbitmq:amqp
- barbican:amqp
- glance:amqp
- - keystone:identity-service
- barbican:identity-service
- glance:identity-service
- - traefik:ingress
- barbican:ingress-internal
- - traefik:ingress
- barbican:ingress-public
- - vault:secrets
- barbican:secrets
- glance:ingress-public
- - mysql:database
- glance:database
- - mysql:database
- magnum:database
@ -82,6 +75,8 @@ relations:
- magnum:amqp
- - keystone:identity-service
- magnum:identity-service
- - keystone:identity-ops
- magnum:identity-ops
- - traefik:ingress
- magnum:ingress-internal
- - traefik:ingress

View File

@ -4,9 +4,9 @@ smoke_bundles:
- smoke
# There is no storage provider at the moment so cannot run tests.
configure:
- zaza.charm_tests.noop.setup.basic_setup
- zaza.openstack.charm_tests.keystone.setup.add_tempest_roles
tests:
- zaza.openstack.charm_tests.magnum.tests.magnumTempestTestK8S
- zaza.openstack.charm_tests.magnum.tests.MagnumTempestTestK8S
tests_options:
trust:
- smoke
@ -30,15 +30,12 @@ target_deploy_status:
keystone:
workload-status: active
workload-status-message-regex: '^$'
glance:
workload-status: active
workload-status-message-regex: '^$'
mysql:
workload-status: active
workload-status-message-regex: '^.*$'
barbican:
workload-status: active
workload-status-message-regex: '^$'
vault:
workload-status: active
workload-status-message-regex: '^$'
magnum:
workload-status: active
workload-status-message-regex: '^$'