The payload containers sb, nb and northd have a shared db dir. The join
wrapper skips the join command if it detects an existing ovn db. But the regex
used by the join command is not specific enough. So the sb would skip the join
if the nb db was present. This patch tightens the regex so that the join
wrappers look for their own db.
Change-Id: I20b139244664a5218c236ec28756fefd617cc668
The build time is very long because of PIP having to fetch and build
native components of the libraries. This change show a possible way to
bypass this issue. This has implication regarding the platform it's
running on. In this case, we know the charm is going to be run on a
22.04 container.
Change-Id: Ib0d57b872364b8eba6320bb36269c2fcaf7fedb7
v1 of the kubernetes_service_patch lib will patches the service
definition on `status_update` event. This helps when Juju refreshes the
patched services to their initial state.
Depends-On: https://review.opendev.org/c/openstack/charm-ops-sunbeam/+/880270
Change-Id: I1369a3ca6cabc7c34c958671e1638ca89bb256df
Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
Update the snaps to use in functional tests:
juju snap to 3.1 and microk8s snap to 1.26-strict.
Update zaza requirement to use libjuju-3.1 branch.
Change-Id: I6e251140c6426b9d58c6ca7302f395c275bbf99d
* Switch to using new `configure_charm` structure
* Stop using key self._state.bootstrapped and use property self.bootstrapped()
instead.
* Stop using deprecated use_juju_for_storage=True
Depends-On: I6b46bae1dc700f5e8b597374c660c0af9c069172
Change-Id: I7d759a7f1474a6f37c4cd597bfe733f5c0ec32ae
All we care about is whether the unit is active or not; the
message is somewhat irrelevant and has been changed in this
operator recently.
Re-enable gating for functional testing.
Change-Id: I9c3abf83421a2933f01fa99f4cc0fe29b2c57164
publish-charm failed to execute rename.sh
as it is not allowed.
Add abosulte path for rename.sh, fetch-libs.sh
in allowlist_externals.
Change-Id: I177adb1d6a5900c5433e795e98ec14f7a94d33d1
Ensure that the expected cluster size has been reached prior to
executing the join process for NB and SB ovsdb-server instances.
Ensure that OVN databases are stored on a persistent volume
to support charm upgrades.
Change-Id: I70ded229ff4c1c2f1d70bd052699bdd641489290
When the bootstrap is completed, it is
required to update bootstrap status as
well from maintenance to Active. This
patch updates the bootstrap status to active
when bootstrap is marked as True.
Change-Id: I9c547778ed211ab17732c0a9c224a3b306ffb63d
As part of the configuration method ensure that the charm is
marked as bootstrapped when the method completes.
This ensures that the deployed application units don't get
stuck in a maintenance/waiting state.
Change-Id: Iddcabbd398c5a715d74b5168d1b16594dad662a5
Rebase charm to ubuntu 22.04 to resolve build issues on 20.04
and reduce complexity of requirements management.
Change-Id: I03448dde3a8d4e9a67d4087e68863cec5a870a90
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: I75df01d000d74878e7313fa556b16eef2ca4c9ff
Not all clients can use hostnames so present IP address information
as well so clients can pick and choose depending on capability.
Depends-On: Iefe8ad601b305e3fdab7548e1d3357493491d3e9
Change-Id: Ia2cf78b16694328ed2de236a54e5193b36d9aad5
K8S pods can change IP during charm upgrades; switch to using
the fully qualified hostname for participating units for
connectivity between units. Hostnames won't change and are
dynamically managed by K8S.
Depends-On: Ief5c816ab5fbeb55aadf2b83697858f2ecb28807
Change-Id: I2410c19226484d802d95c198d4c1df8763181e09
RBAC + OVN relay is not currently supported so disable RBAC on
the OVN SB DB port until this is supported by OVN.
Drive-by fix to link config.yaml into tests directory.
Change-Id: If3de99d678d4e81ccd3db53eb8f2e4b31494e8d0
Start ovn-northd service as part of
configure_charm.
Remove get_named_pebble_handlers as
it is moved to ops_sunbeam library.
Change-Id: I01792aa0a7b7fc00e692b0074afcaab84abc6008
If the certificates relation is ready the charm can attempt to
start the pebbles handlers before they are ready. This change
causes the configure_charm to bail if any of the pebble handlers
are not ready. configure_charm calls will be called by subsequent
pebble_redy events.
Change-Id: I16dc6b2e25ef31f3619303c4424f80de4d65e626
Add healthcehck to the OVN service.
ovn-northd can be checked using ovn-ctl command
but for the ovsdb servers the ovn-ctl always
returns 0. So tcp check is added for ovn nb db
and ovn sb db.
Change-Id: I722aa0b00bed9802d85ecebd6cd45b3fc6b95903
Add project templates and variables to osci.yaml
Add rename script to change built charm name to
charm_build_name defined in osci.yaml
Change-Id: I746b8a5964bd5f8ab43616b1820981567729278c
Update upstream-source in metadata.yaml to OCI image
digest instead of image with tag. This will help in
pinning the image to a specific revision instead of a
moving pointer based on tag.
Change-Id: Ic4324dc8c908fd2d3b613fdb1d631e0fa29df3c1
Remove references in documentation to openstack-charmers
repos.
Remove github workflows.
Add .gitreview file
Add .zuul.yaml file
Update packages in requirements file to point to
opendev.org instead of github.com
Change-Id: Ib72255da7fdee624160e230ed828f8deea898b17
Following changes are done as part of this patch:
* Sync global tox, requirements.txt, test-requirements
from release-tools project
* Resolve flake errors
* Fix templates to handle optional ingress relations
* Remove run_tests script
* Restructure unit tests directory