From ba1aa6e51aa172976c3283eac2ddb7d0f9102a1e Mon Sep 17 00:00:00 2001 From: Alex Kavanagh Date: Thu, 7 Jan 2021 21:42:09 +0000 Subject: [PATCH] Add placement as a required interface At the moment, if you only add relations for shared-db and identity-service then the charm will come out of blocked to ready. However, there is still no placement (to nova-cloud-controller) and so the cloud will not work. This patch makes the charm complain if it has no placement relation made to prompt the operator to add the relation, or indicate if it has been missed out of the bundle. Change-Id: I3d34e6ec413220e2359198583975385bc98db563 --- src/lib/charm/openstack/placement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/charm/openstack/placement.py b/src/lib/charm/openstack/placement.py index 2656296..53c0436 100644 --- a/src/lib/charm/openstack/placement.py +++ b/src/lib/charm/openstack/placement.py @@ -50,7 +50,7 @@ class PlacementCharm(charms_openstack.charm.HAOpenStackCharm): default_service = 'placement-api' services = ['apache2', 'haproxy'] - required_relations = ['shared-db', 'identity-service'] + required_relations = ['shared-db', 'identity-service', 'placement'] restart_map = { PLACEMENT_CONF: services,