6 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
f0b09dd4e0 General tidy for module ready for release.
Refresh charm to drop release usage in ops-sunbeam.

Drop surplus template fragments.

Refresh unit tests.

Tidy requirements.txt.

Switch to black + other linters.

Tidy docstrings across operator.

Change-Id: Ied1e6a797645f58a84fe4aad20080ba585f54d19
2022-11-04 09:00:19 +00:00
James Page
b4516cbc82 Adapt to presentation of IP addresses
Not all clients can use hostnames for OVS DB URL's so changes
in this area have been reverted/adapted.  The OVN relay can so
ensure it uses the new context properties for hostname based
URL's.

Depends-On: Iefe8ad601b305e3fdab7548e1d3357493491d3e9
Change-Id: I5a03590946099b50651570f411f0c6cc3a13f115
2022-10-24 13:24:02 +01:00
James Page
c2cc84e360 Make charm accessible and introspectable
By default, expose this charm as a LoadBalancer service to allow
external access from outside of K8S which is its principle use
case.

Add action to allow introspection of the deployed service for
the URL to connect to the Southbound DB relay.

Change-Id: Ie234ca70d9090be463b5c971a8f01302958c91f5
2022-10-11 14:28:47 +01:00
James Page
dddaa0d47f Enable use of port 6642 through service.
Use the K8S ServicePatcher to enable access to this service
via port 6642 (SouthboundDB).

Change-Id: Ia6dab89e6800a8a1c3173302721fb860831bbe3c
2022-10-07 15:40:22 +01:00
Hemanth Nakkina
16b697155d Sync global tox, requirement files
Following changes are done as part of this patch:
* Sync global tox, requirements.txt, test-requirements
from release-tools project
* Resolve flake errors
* Restructure unit tests directory
2022-07-27 12:53:49 +05:30