python-subunit 1.4.3+ requires 'extras' otherwise an error
occures:
"'run --slowest' is not a stestr command."
Change-Id: I999923e7a1f85aa09c80a96fd6ca3b7cc305ae40
Commit 43b9dc90 added the grafana lib which has cosl and
pydantic dependencies. This change adds those deps to
the requirements file.
Change-Id: Ia7fb555abafcc59fea44c8eb006c8231ac03d31b
Signed-off-by: Liam Young <liam.young@canonical.com>
Implement ceilometer-service requires part of the relation.
Configure snap-openstack-hypervsor config parameters
telemetry.enable and telemetry.publisher-secret when the
relation is joined/changed.
Configure telemetry.enable to False when ceilometer-service
relation is removed.
Change-Id: I168348aba340db3ec2f63b69acef439906542e63
Currently, setting boolean config with `Snap.set` will result in setting
the snap config to a string of `true` or `false`, and the openstack
hypervisor snap will read those configs as string as well. This makes
the condition checking in openstack-hypervisor snap behaves incorrectly
[1]. This PR is to update the snap library will proper typing support.
- Update snap library
- Fix the data types used in `Snap.set()`
[1] https://github.com/openstack-snaps/snap-openstack-hypervisor/blob/main/openstack_hypervisor/hooks.py#L740
Closes-Bug: #2033272
Change-Id: I7bec4599b23500aaad9e008fce648793c104b642
In some cases, the netifaces does not properly detect the default
gateway for the node and returns an empty dict. However, there is
a default gateway actually set. This adds a fallback path to parse
the contents of the /proc/net/route table and determine which
interface to use based on which flags are set on the routes.
Closes-Bug: #2030497
Change-Id: I1cf358ad42f0cec4733e3afc9b60f5ddfade2bfe
As documented in [1] service tokens are useful to prevent issues
with long running services or with requests that take a long time
to finish where the user token can expire in the middle of an operation.
[1] https://docs.openstack.org/cinder/latest/configuration/block-storage/service-token.html
Depends-On: I15682c66d252d506e8f1c9b8de818bc19b1af973
Change-Id: I4d906132876a3efe4bd1154ad2c58a3bc635febe
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 machine.
Change-Id: I759e5436e47869d30c1f0de7ccdabed2ba6f1c49
Add osci.yaml to publish charm.
Publish the charm to 2023.1/edge track.
Change snap-channel default to 2023.1/edge.
Change-Id: Ie62fecbcd033ef65d4a73e0b5ceee769f435299a
operator_libs_linux/v1/snap could not handle revisions as strings, which
would make deployment fail when using local revisions of any snap (x1,
x2,...) on the target machine.
Change-Id: I7cc81bee023e3eeaa6eccd0d38968f3de48b86af
Add optimisations to only install snap if it is absent and to
only update snap settings if they have changed.
Depends-On: If8086efcf7df4dcbe02be7454578dbbfb2d7945a
Change-Id: Icf2e9834cca6330eec92239aa5a5b76503c7c0f1