1469 Commits

Author SHA1 Message Date
Hemanth Nakkina
df70e376ff
Add zuuljobs
* Add sunbeam project template to run pep8, py3 tests
* Add zuul.d/zuul.yaml to run pep8, py3, cover tests
* Update charmcraft and requirements for each charm
* Add global tox.ini to invoke fmt, pep8, py3, cover,
  build
* Add gitreview file
* Fix py3 test failures in ciner-ceph-k8s, glance-k8s,
  openstack-exporter
* Add jobs for charm builds using files option so that
  job is invoked if files within the component are
  modified. Add charm builds to both check and gate
  pipeline.
* Make function tests as part of global. Split the function
  tests into core, ceph, caas, misc mainly to accomodate
  function tests to run on 8GB. Add function tests as
  part of check pipeline.
* Add zuul job to publish charms in promote pipeline
  Add charmhub token as secret that can be used to
  publish charms.
  Note: Charmhub token is generated with ttl of 90 days.
* Run tox formatting
* Make .gitignore, .jujuignore, .stestr.conf global and
  remove the files from all charms.
* Make libs and templates global. Split libs to internal
  and external so that internal libs can adhere to
  sunbeam formatting styles.
* Add script to copy common files necessary libs, config
  templates, stestr conf, jujuignore during py3 tests
  and charm builds.
* Tests for keystone-ldap-k8s are commented due to
  intermittent bug LP#2045206

Change-Id: I804ca64182c109d16bd820ac00f129aa6dcf4496
2023-11-30 15:32:39 +05:30
Liam Young
d3c43c4d9f
Add README.md 2023-11-07 06:16:55 +00:00
Hemanth Nakkina
4a473da7fe
Deploy heat-api-cfn container as part of heat charm
Currently the heat charm instance runs heat-api and
heat-engine services or heat-api-cfn or heat-engine
services. Change heat charm to deploy heat-api,
heat-api-cfn, heat-engine containers.

Change the ingress relation to use traefik-route
interface instead of ingress interface so that the
traefik configuration for heat-api and heat-api-cfn
serive can be written by charm.
Add heat-api-cfn pebble container handler and update
service endpoints accordingly.
Remove heat-config interface and corresponding handlers.

Change-Id: I391f8d4ffefcebdb2423fcc1947590ca906d711a
2023-11-07 08:11:14 +02:00
Guillaume Boutry
9609359416
Merge remote-tracking branch 'ops-sunbeam/main' into rename 2023-11-06 14:27:21 +01:00
Guillaume Boutry
2faa1a22e9
Merge remote-tracking branch 'charm-ovn-relay-k8s/main' into rename 2023-11-06 13:29:22 +01:00
Guillaume Boutry
1587e5b417
Merge remote-tracking branch 'charm-ovn-central-k8s/main' into rename 2023-11-06 13:29:09 +01:00
Guillaume Boutry
3f42fc1dab
Merge remote-tracking branch 'charm-placement-k8s/main' into rename 2023-11-06 13:28:39 +01:00
Guillaume Boutry
9d85c07e92
Merge remote-tracking branch 'charm-openstack-hypervisor/main' into rename 2023-11-06 13:22:12 +01:00
Guillaume Boutry
9b602371fc
Merge remote-tracking branch 'charm-openstack-exporter-k8s/main' into rename 2023-11-06 13:22:05 +01:00
Guillaume Boutry
f91d5d2c5e
Merge remote-tracking branch 'charm-octavia-k8s/main' into rename 2023-11-06 13:21:49 +01:00
Guillaume Boutry
f0c258b82f
Merge remote-tracking branch 'charm-nova-k8s/main' into rename 2023-11-06 13:21:09 +01:00
Guillaume Boutry
af13ce724b
Merge remote-tracking branch 'charm-neutron-k8s/main' into rename 2023-11-06 13:19:31 +01:00
Guillaume Boutry
6bf39ed322
Merge remote-tracking branch 'charm-magnum-k8s/main' into rename 2023-11-06 13:19:14 +01:00
Guillaume Boutry
67c99343e7
Merge remote-tracking branch 'charm-keystone-ldap-k8s/main' into rename 2023-11-06 13:18:47 +01:00
Guillaume Boutry
20c89cc12c
Merge remote-tracking branch 'charm-keystone-k8s/main' into rename 2023-11-06 13:18:09 +01:00
Guillaume Boutry
6d27e8522d
Merge remote-tracking branch 'charm-horizon-k8s/main' into rename 2023-11-06 13:17:37 +01:00
Guillaume Boutry
c127e81596
Merge remote-tracking branch 'charm-heat-k8s/main' into rename 2023-11-06 13:17:25 +01:00
Guillaume Boutry
ad301169bf
Merge remote-tracking branch 'charm-gnocchi-k8s/main' into rename 2023-11-06 13:17:13 +01:00
Guillaume Boutry
1761d72288
Merge remote-tracking branch 'charm-glance-k8s/main' into rename 2023-11-06 13:17:04 +01:00
Guillaume Boutry
5687ba46d8
Merge remote-tracking branch 'charm-designate-k8s/main' into rename 2023-11-06 13:16:53 +01:00
Guillaume Boutry
fb80ff110c
Merge remote-tracking branch 'charm-designate-bind-k8s/main' into rename 2023-11-06 13:16:45 +01:00
Guillaume Boutry
97475ffef3
Merge remote-tracking branch 'charm-cinder-k8s/main' into rename 2023-11-06 13:16:37 +01:00
Guillaume Boutry
08a2633c4d
Merge remote-tracking branch 'charm-cinder-ceph-k8s/main' into rename 2023-11-06 13:16:24 +01:00
Guillaume Boutry
ac2d9eaa36
Merge remote-tracking branch 'charm-ceilometer-k8s/main' into rename 2023-11-06 13:05:24 +01:00
Guillaume Boutry
4e05ac7ba9
Merge remote-tracking branch 'charm-barbican-k8s/main' into rename 2023-11-06 13:05:13 +01:00
Guillaume Boutry
27285100cd
Merge remote-tracking branch 'charm-aodh-k8s/main' into rename 2023-11-06 13:05:02 +01:00
Guillaume Boutry
beaaa79083
Initialize empty 2023-11-06 13:04:27 +01:00
Hemanth Nakkina
48ec3ce89f Fix check_relation_handlers_ready
Recent changes on charm-ops-sunbeam introduces
arugments to check_relation_handlers_ready function.
Add event argument to check_relation_handlers_ready.

Change-Id: I07acbd9ddda3fba3d454bbd384fef3d68d0d8539
2023-11-03 14:21:26 +05:30
Hemanth Nakkina
56902d7206 Fix check_relation_handlers_ready
Recent changes on charm-ops-sunbeam introduces
arugments to check_relation_handlers_ready function.
Add event argument to check_relation_handlers_ready.

Change zuul project templates to
openstack-python3-charm-jobs

Change-Id: Ib2f65a8ea728bea05b20a54a6df8a047c76b24a3
2023-11-02 18:59:55 +05:30
Liam Young
fae0c9c648 Support CA for ldaps
Change-Id: I6489bd5f7975daf26f9669e17733071b6eaf4654
2023-11-02 06:49:37 +00:00
Hemanth Nakkina
c55a6b525b Fix check_relation_handlers_ready
Recent changes on charm-ops-sunbeam introduces
arugments to check_relation_handlers_ready function.
Add event argument to check_relation_handlers_ready.

Change-Id: Ibc8eee628cce00b166d25c35daeb4b6313f7fe6f
2023-11-02 08:39:27 +05:30
Hemanth Nakkina
f9a3531311 Fix check_relation_handlers_ready
Recent changes on charm-ops-sunbeam introduces
arugments to check_relation_handlers_ready function.
Add event argument to check_relation_handlers_ready.

Change-Id: If5e1bc20b9fc3afb8a7d538357b29b004415a894
2023-11-02 08:38:37 +05:30
Hemanth Nakkina
00b931b9bd Fix check_relation_handlers_ready
Recent changes on charm-ops-sunbeam introduces
arugments to check_relation_handlers_ready function.
Add event argument to check_relation_handlers_ready.

Change-Id: Ie8491dddeae83b19a515a975a923f49217eff8d2
2023-11-02 08:37:34 +05:30
Hemanth Nakkina
197b4b81c8 Fix check_relation_handlers_ready
Recent changes on charm-ops-sunbeam introduces
arugments to check_relation_handlers_ready function.
Add event argument to check_relation_handlers_ready.

Change-Id: I0ad235dd06d8ea9d62f081f23d1621a8f51b03f2
2023-11-02 08:34:13 +05:30
Zuul
6011477f08 Merge "stop services when mandatory integrations are removed" into main 2023-11-01 12:52:41 +00:00
Hemanth Nakkina
721a454853 stop services when mandatory integrations are removed
Stop all the services running in the container
when mandatory integrations are removed.
Currently the relation data is not cleared during
processing of gone away events. This is a bug in
juju reported at [1]. Due to this the relation is
still considered as ready.
Add workaround to check the event and mark the
relation to not ready if the event is gone away
event of the relation.
Catch database relation-broken event and block the
application.

[1] https://bugs.launchpad.net/juju/+bug/2024583

Change-Id: I80a0120d08b79561c13996c7a0f055824a1d5336
2023-11-01 17:45:31 +05:30
Hemanth Nakkina
028658215e Stop services for goneaway events for relations
Implement stop-services function for the charm.
For relations amqp, ovsdb-cms, reset the
corresponding snap data.
Add mandatory_relations to openstack-hypervisor
charm.

Depends-On: https://review.opendev.org/c/openstack/charm-ops-sunbeam/+/899012
Change-Id: Ie6a735d4cad281c080e47208cf87f34e50d00fd1
2023-11-01 09:06:53 +05:30
Liam Young
cc5fe344b0 Handle _private_key being None
Recent change Ieffac3732c95846d0e3ec2408a9be4d96e477603 broke the
neutron-k8s py3 tests due to self.private_key being
accessed (_request_certificates method, `if self.private_key`)
before it had been properly set causing an attempt to decode None

Change-Id: I33bbf65e1d170cbc80161c573a381db43468b413
2023-10-31 15:21:52 +00:00
Guillaume Boutry
7c088a7d49 Correct ops sunbeam origin
Change-Id: Ida161b83dea68f0fbc72c07c7a107cc0cae75b26
2023-10-31 15:33:00 +01:00
Liam Young
dd0b559d51 Add missing gnocchi ceilometer relation
Change-Id: I4d0162c4ac0740ece3c0f1107e7344905bfc0235
2023-10-31 13:45:42 +00:00
Liam Young
302f7cff5d Support user supplied CA
Change-Id: I2a9d875abe4a0501495fcce605f3012871082ae1
2023-10-30 09:19:30 +00:00
Guillaume Boutry
8e21c6d4fb Use UserIRR class to manage user
Use ops_sunbeam common class to manage user.

Change-Id: I74f9cc1b95640a02da8594c4d00250b604f9dd00
2023-10-27 08:46:07 +02:00
Liam Young
727fb7637e Move domain-config interface ownership to keystone charm
Change-Id: I78e83a9a0fe96c9f9e24fda108ef268a89a440cf
2023-10-27 06:04:18 +00:00
Guillaume Boutry
cd6fa8939d Enable CI
Change-Id: I15c61451a8999c3f527d0b86941900932652164f
2023-10-26 18:07:03 +02:00
Liam Young
fe138ccce1 Move domain-config interface ownership to keystone charm
Change-Id: I9af9ad07aa4f1363b7b170738fa327c466cb0a66
2023-10-26 12:06:40 +00:00
Guillaume Boutry
24b458eb65 Implement tests 2023-10-26 13:19:59 +02:00
Guillaume Boutry
f90906d8a8 Remove zuul config 2023-10-26 10:40:22 +02:00
Guillaume Boutry
97d0472c80 Setup admin account, observability relations 2023-10-26 09:30:49 +02:00
Guillaume Boutry
6b8bf0578d Use UserIRR class to manage user
Use ops_sunbeam common class to manage user.

Change-Id: I27121d07d317132c1655ede6a81e7d4e25546dd8
2023-10-26 08:44:45 +02:00
Zuul
b670a356cf Merge "Allow template parameters in ks-resources interface" into main 2023-10-26 02:41:37 +00:00