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: magnum-api-image:
type: oci-image type: oci-image
description: OCI image for OpenStack magnum description: OCI image for OpenStack magnum
# ghcr.io/openstack-snaps/magnum-consolidated:2023.1 # ghcr.io/canonical/magnum-consolidated:2023.1
upstream-source: ghcr.io/openstack-snaps/magnum-consolidated:2023.1 upstream-source: ghcr.io/canonical/magnum-consolidated:2023.1
magnum-conductor-image: magnum-conductor-image:
type: oci-image type: oci-image
description: OCI image for OpenStack magnum description: OCI image for OpenStack magnum
# ghcr.io/openstack-snaps/magnum-consolidated:2023.1 # ghcr.io/canonical/magnum-consolidated:2023.1
upstream-source: ghcr.io/openstack-snaps/magnum-consolidated:2023.1 upstream-source: ghcr.io/canonical/magnum-consolidated:2023.1
requires: requires:
database: database:

View File

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

View File

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

View File

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