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
This commit is contained in:
parent
0eea19085a
commit
ba1aa6e51a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue