From dd2435538348223bc0ad4590b93271b4da606461 Mon Sep 17 00:00:00 2001 From: Guillaume Boutry Date: Tue, 3 Dec 2024 17:49:42 +0100 Subject: [PATCH] [nova-k8s] Update spice-proxy-url on all relations When traefik-route relation is updated, the library did not update the right config (when targeting all relations). When a relation is present in the event, is updates the right config. Fix: LP#2090943 Change-Id: I362071cad61838fdbd8f5f0b39936696058a25ba Signed-off-by: Guillaume Boutry --- charms/nova-k8s/lib/charms/nova_k8s/v0/nova_service.py | 4 ++-- charms/nova-k8s/rebuild | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charms/nova-k8s/lib/charms/nova_k8s/v0/nova_service.py b/charms/nova-k8s/lib/charms/nova_k8s/v0/nova_service.py index 907f4b2e..c1e24271 100644 --- a/charms/nova-k8s/lib/charms/nova_k8s/v0/nova_service.py +++ b/charms/nova-k8s/lib/charms/nova_k8s/v0/nova_service.py @@ -79,7 +79,7 @@ LIBAPI = 0 # Increment this PATCH version before using `charmcraft publish-lib` or reset # to 0 if you are raising the major API version -LIBPATCH = 1 +LIBPATCH = 2 class NovaConfigRequestEvent(RelationEvent): @@ -132,7 +132,7 @@ class NovaServiceProvides(Object): ) for relation in self.framework.model.relations[self.relation_name]: relation.data[self.charm.app][ - "nova-spiceproxy-url" + "spice-proxy-url" ] = nova_spiceproxy_url else: logging.debug( diff --git a/charms/nova-k8s/rebuild b/charms/nova-k8s/rebuild index 9b2d3eb9..2f35ca43 100644 --- a/charms/nova-k8s/rebuild +++ b/charms/nova-k8s/rebuild @@ -1,3 +1,3 @@ # This file is used to trigger a build. # Change uuid to trigger a new build. -b15a0dee-c765-4e23-b950-8eb6f8afc84f +f1725b57-90f6-4564-9bf5-02673906ddbc