Files
sunbeam-charms/charms/ovn-relay-k8s/charmcraft.yaml
Lucian Petrut d8094c2a11 Update dependencies
"cryptography" and "pydantic" depend on "maturin",
which fails to install from source.

"cryptography" was already added to the "charm-binary-python-packages"
list, allowing prebuilt packages to be used. However, our uv.lock
files contain a slightly older version so charmcraft attempts to
install it from source and fails:

  ModuleNotFoundError: No module named 'puccinialin'

This patch will fix the build failures by:

* updating the uv.lock files (tox -e lock)
* adding pydantic to the list of binary packages

Cryptography 44.0.2 currently fails to install:
https://pastebin.canonical.com/p/Z4ZZhqWwtV/plain/

Change-Id: Ibfe555df7f72b867ad92c3bb00bb6fa576d7b0fc
2025-06-10 13:52:25 +00:00

85 lines
1.8 KiB
YAML

type: charm
name: ovn-relay-k8s
summary: Relay for Open Virtual Network for Open vSwitch
description: |
The charm that deploys OVSDB Relay service.
The OVSDB Relay handles all read-only requests and forwards
transactions that requires database modifications to ovsdb
server.
assumes:
- k8s-api
- juju >= 3.1
links:
source:
- https://opendev.org/x/charm-ovn-relay-k8s
issues:
- https://bugs.launchpad.net/charm-ovn-relay-k8s
base: ubuntu@24.04
platforms:
amd64:
actions:
get-southbound-db-url:
description: Southbound DB Connection URL for access to OVN via the relay.
containers:
ovsdb-server:
resource: ovn-sb-db-server-image
resources:
ovn-sb-db-server-image:
type: oci-image
description: OCI image for OVN Southbound Database Server
upstream-source: ghcr.io/canonical/ovn-consolidated:25.03
requires:
ovsdb-cms:
interface: ovsdb-cms
certificates:
interface: tls-certificates
logging:
interface: loki_push_api
optional: true
tracing:
interface: tracing
optional: true
limit: 1
provides:
ovsdb-cms-relay:
interface: ovsdb-cms
peers:
peers:
interface: ovn-relay-peer
parts:
update-certificates:
plugin: nil
override-build: |
apt update
apt install -y ca-certificates
update-ca-certificates
charm:
after:
- update-certificates
build-packages:
- git
- libffi-dev
- libssl-dev
- pkg-config
- rustc-1.80
- cargo-1.80
charm-binary-python-packages:
- cryptography
- jsonschema
- jinja2
- pydantic
build-snaps: [astral-uv]
override-build: |
uv export --frozen --no-hashes --format=requirements-txt -o requirements.txt
craftctl default
charm-requirements: [requirements.txt]