Default relation limit of 1 prevents adding relations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Critical
|
Achilleas Anagnostopoulos |
Bug Description
Some charms do not specify a limit for relations in metadata.yaml because there's no need to, it should be unlimited (within reason).
Since https:/
This breaks some desired behavior, e.g. for Cinder and cinder-ceph where we should be able to specify multiple relations to the cinder-ceph subordinate.
E.g.:
juju deploy cs:cinder
juju deploy cs:cinder-ceph cinder-ceph1
juju deploy cs:cinder-ceph cinder-ceph2
juju deploy cs:nova-compute
juju add-relation cinder cinder-ceph1 # works fine
juju add-relation cinder cinder-ceph2
ERROR cannot add relation "cinder:
juju add-relation nova-compute cinder-ceph1 # works fine
juju add-relation nova-compute cinder-ceph2
ERROR cannot add relation "nova-compute:
Changed in juju: | |
status: | Confirmed → In Progress |
tags: | added: upgrade-juju |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
I just checked and can confirm that the metadata for all referenced charms does not specify any relation limit. We need to check whether the metadata parsing code in the charm repo is trying to be smart by forcing a limit of 1 when it's not defined.
In the meantime, passing '--force' to the deploy command should get you up and running while we investigate this.