This fixes bug 733, which identified that N2VC was not properly adhering
to the Information Model regarding the vca-relationships grouping.
Change-Id: I778777446d1d4f8e8b630abfd42bd36f8479ca56
Signed-off-by: Adam Israel <adam.israel@canonical.com>
vdu:
...
- relation:
- - provides: dataVM:db
- requires: mgmtVM:app
+ vca-relations:
+ relation:
+ - provides: dataVM:db
+ requires: mgmtVM:app
This tells N2VC that the charm referred to by the dataVM vdu offers a relation named 'db', and the mgmtVM vdu has an 'app' endpoint that should be connected to a database.
if 'juju' in cfg:
juju = cfg['juju']
if 'relation' in juju:
- for rel in juju['relation']:
+ for rel in juju['vca-relations']['relation']:
try:
# get the application name for the provides
juju:
charm: proxy-ci
proxy: true
- # Relation needs to map to the vdu providing or
- # requiring, so that we can map to the deployed app.
- relation:
- - provides: dataVM:db
- requires: mgmtVM:app
+ vca-relations:
+ # Relation needs to map to the vdu providing or
+ # requiring, so that we can map to the deployed app.
+ relation:
+ - provides: dataVM:db
+ requires: mgmtVM:app
initial-config-primitive:
- seq: '1'
name: test