charm-ovn-central:stable/22.09

Last commit made on 2024-04-25
Get this branch:
git clone -b stable/22.09 https://git.launchpad.net/charm-ovn-central

Branch merges

Branch information

Name:
stable/22.09
Repository:
lp:charm-ovn-central

Recent commits

202684c... by Edward Hope-Morley

Use SSL compatible service status check

Override the layer_ovn method used to check if services
are running so that we can use SSL connections instead
of netcat since the latter causes problems with
ovsdb-server due to connections not being closed
properly.

Closes-Bug: #1920770
Change-Id: I6b2c09c643c6fddfb48dc15d6272e58303fae265
(cherry picked from commit fafa6d418afe04d9b79326a621091d9d6c5f74f4)
(cherry picked from commit 05722e0fbc9474c98c373a589c4f86116cdd9b23)
(cherry picked from commit 0a7904fba22b196a9f2484f4d55bc6f98b5a71fb)

3b100ab... by Edward Hope-Morley

Add ovn cert nrpe check

Certs are root readable so we use a cron job to perform
the check and save state for an nrpe check to read and
send back to nagios.

Closes-Bug: #1979539
Change-Id: I7c7cd238ddf3fd9f92bfa5879d19d78c091cf2ac
(cherry picked from commit e3502b2c9c5f65ee8c0f3ed1aff8ef66c94de2f1)

775e791... by Martin Kalcok

Don't mask OVN service during charm upgrade.

Closes-Bug: #2007847
Change-Id: Icdd8502fa4c176ffc8cc8a0446dd150048d78dd1
(cherry picked from commit db9216084f321a644453a164e8820d4bb1f245d6)

7cdee96... by Frode Nordahl

tox.ini: Fixup

Remove pins.

Properly format passenv list.

Drop the outer tox.ini func-target hack.

Drop the incepted tox in src/test-requirements.txt.

Drop pip.sh script.

Fix undeterministic check in test_configure_deferred_restarts

The test checks output of a class property that provides a list
in undetermined order.

Mocking class properties is non-trivial so let's just sort the
result and expected list.

Closes-Bug: #2001893
Change-Id: I25dec5d1853a5aeb686df353d7c661f4a6eb5b69
(cherry picked from commit bbb1584893161f3a252817b178e7529048b1d51c)

e0cd465... by Dmitrii Shcherbakov

Enable strict confinement for the OVN exporter

Now that the use of system-files interface has been approved and the
prometheus-ovn-exporter snap with the relevant plugs has been released
to the store, devmode usage can be disabled and additional connections
can be made.

Change-Id: Ie90719e564f0e7b5b2b209c724267057e5538af9
(cherry picked from commit a94b51c43dd5b1e88d03bda77aed0b72c59cdb22)

938b91b... by Alex Kavanagh

Updates for stable/22.09 branch creation

- Set default branch for git review/gerrit.
- Switch tests to stable.
- Switch to using stable charm-helpers branch.
- Switch to using stable charm.openstack branch.
- Switch to using stable zaza, zaza-openstack-tests
  branch
- (reactive charms) Add build.lock file

Change-Id: I923c0e9134c8d746a24db139189c0aeb05635828

822f0d5... by Dmitrii Shcherbakov

Connect ovn-exporter snap interfaces

https://forum.snapcraft.io/t/allow-use-of-system-files-interface-and-auto-connection-for-prometheus-ovs-exporter-and-prometheus-ovn-exporter/32179

Therefore, we do it in the charm using the infrastructure present in the
snap layer.

The system-files entries in layer-yaml are commented out pending a
review by policy-reviewers at forum.snapcraft.io.

Change-Id: I42a640f6d73c68d2b02dbad8397c8f2a55ca44f0
Signed-off-by: Dmitrii Shcherbakov <email address hidden>

28d3bc6... by Dmitrii Shcherbakov

Add prometheus-scrape interface

* Add prometheus-scrape interface

* Install the prometheus-ovn-exporter snap if the relevant option is
  set appropriately (to a valid channel rather than an empty string);
* Provide the endpoint details to the prometheus-k8s-operator
  scrape_interface compatible relation (app and unit data);
* Remove the snap or ignore steps to install it if the option is set to
  an empty string;
* Clear the relation data for individual jobs if the snap is removed.

Change-Id: Ic50ed032f91de36528cb0a93bfd9d52c9bee6e63

565c142... by Frode Nordahl

Fix description of ovn-source configuration option

The current description erronously refers to 'focal-ovn-22.03' as
a valid value, while the correct value is 'cloud:focal-ovn-22.03'.

Closes-Bug: #1992592
Change-Id: Ia391dac80787ed5f271274abccca2c19b6d845c4

e8a319a... by Frode Nordahl

Use charmcraft reactive plugin for build

Charmcraft 2.1 provides the required functionality to build the
charm using the reactive plugin.

Add missing `kinetic` series in src/metadata.yaml.

Drop the `build-rective` target, old charm-tools environment
variables and redundant pins in tox.ini.

Fixup the bases configuration and make associated changes to test
bundles.

Change-Id: I46c9b035408d13474ddbf375434a6ec190653c22