sunbeam-charms/charms/ceilometer-k8s/tests/bundles/smoke.yaml
Hemanth Nakkina bf2bdc90b7 Wait for gnocchi service before configuring ceilometer
Currently the ceilometer services are configured and
ceilometer dbsync is run as an action.
A new interface gnocchi_service is introduced that
updates relation data when gnocchi service is up.
Add new relation gnocchi_service in metadata.yaml
as a mandatory relation.
Update dbsync commands so that they are run as part
of configure_charm.
Remove the action ceilometer-upgrade that does the
dbsync as it is no more required.

Change-Id: Iba72250f3d31ef9dafa5b3bd16abefd43a74366a
2023-10-11 09:00:57 +05:30

98 lines
2.0 KiB
YAML

bundle: kubernetes
applications:
mysql:
charm: ch:mysql-k8s
channel: 8.0/stable
scale: 1
trust: false
# Currently traefik is required for networking things.
# If this isn't present, the units will hang at "installing agent".
traefik:
charm: ch:traefik-k8s
channel: 1.0/candidate
scale: 1
trust: true
traefik-public:
charm: ch:traefik-k8s
channel: 1.0/candidate
scale: 1
trust: true
options:
kubernetes-service-annotations: metallb.universe.tf/address-pool=public
# required for nova
rabbitmq:
charm: ch:rabbitmq-k8s
channel: 3.12/edge
scale: 1
trust: true
options:
minimum-replicas: 1
keystone:
charm: ch:keystone-k8s
channel: 2023.2/edge
scale: 1
trust: true
options:
admin-role: admin
storage:
fernet-keys: 5M
credential-keys: 5M
gnocchi:
charm: ch:gnocchi-k8s
channel: 2023.2/edge
scale: 1
trust: true
ceilometer:
charm: ../../ceilometer-k8s.charm
scale: 1
trust: true
resources:
ceilometer-central-image: ghcr.io/canonical/ceilometer-consolidated:2023.2
ceilometer-notification-image: ghcr.io/canonical/ceilometer-consolidated:2023.2
aodh:
charm: ch:aodh-k8s
channel: 2023.2/edge
scale: 1
trust: true
relations:
- - traefik:ingress
- keystone:ingress-internal
- - traefik-public:ingress
- keystone:ingress-public
- - mysql:database
- keystone:database
- - mysql:database
- aodh:database
- - rabbitmq:amqp
- aodh:amqp
- - keystone:identity-service
- aodh:identity-service
- - traefik:ingress
- aodh:ingress-internal
- - traefik-public:ingress
- aodh:ingress-public
- - mysql:database
- gnocchi:database
- - traefik:ingress
- gnocchi:ingress-internal
- - traefik-public:ingress
- gnocchi:ingress-public
- - keystone:identity-service
- gnocchi:identity-service
- - rabbitmq:amqp
- ceilometer:amqp
- - keystone:identity-credentials
- ceilometer:identity-credentials
- - gnocchi:gnocchi-service
- ceilometer:gnocchi-db