Cross Model Relations not supported in bundles
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Unassigned |
Bug Description
Cross model relations breaks reusable bundle usage of export-bundle
When I have cross-model relations reported as the following in juju 2.5.1 'juju status --relations':
SAAS Status Store URL
filebeat-controller active maas admin/controlle
nrpe-controller active maas admin/controlle
telegraf-controller active maas admin/controlle
With local applications graylog, nagios, and prometheus, these are the cross model relations that are exported in juju export-bundle:
- - nagios:monitors
- nrpe-controller
- - graylog:beats
- filebeat-
- - prometheus:target
- telegraf-
However, upon running 'juju deploy ./bundle.yaml' with no changes, I get the errors:
ERROR cannot deploy bundle: the provided bundle has the following errors:
relation ["graylog:beats" "filebeat-
relation ["prometheus:
relation ["landscape-client" "gnocchi"] is defined more than once
If I comment out these relations, 'juju deploy ./commented-
bundles are additive, so removing items from them won't remove those items
from your deployment. That behavior is expected. However, export-bundle
should definitely not generate a bundle that 'deploy' thinks is broken.
Traditionally bundles had to be self contained and define all applications
involved. Cross model changes that and you're referring to applications
that aren't available here.
On Tue, Feb 26, 2019, 19:50 Drew Freiberger <email address hidden>
wrote:
> Public bug reported: r.filebeat- controller r.nrpe- controller r.telegraf- controller :monitors controller: logstash controller: prometheus- client controller: logstash" ] refers to controller" not defined in this bundle target" "telegraf- controller: prometheus- client" ] controller" not defined in this bundle bundle. yaml' /bugs.launchpad .net/bugs/ 1817775 /bugs.launchpad .net/juju/ +bug/1817775/ +subscriptions
>
> Cross model relations breaks reusable bundle usage of export-bundle
>
> When I have cross-model relations reported as the following in juju
> 2.5.1 'juju status --relations':
>
> SAAS Status Store URL
> filebeat-controller active maas
> admin/controlle
> nrpe-controller active maas
> admin/controlle
> telegraf-controller active maas
> admin/controlle
>
> With local applications graylog, nagios, and prometheus, these are the
> cross model relations that are exported in juju export-bundle:
>
> - - nagios:monitors
> - nrpe-controller
> - - graylog:beats
> - filebeat-
> - - prometheus:target
> - telegraf-
>
> However, upon running 'juju deploy ./bundle.yaml' with no changes, I get
> the errors:
>
>
> ERROR cannot deploy bundle: the provided bundle has the following errors:
> relation ["graylog:beats" "filebeat-
> application "filebeat-
> relation ["prometheus:
> refers to application "telegraf-
> relation ["landscape-client" "gnocchi"] is defined more than once
>
>
> If I comment out these relations, 'juju deploy ./commented-
> does not remove the cross-model relations.
>
> ** Affects: juju
> Importance: Undecided
> Status: New
>
>
> ** Tags: canonical-bootstack
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https:/
>
> Title:
> Cross Model Relations export-bundle deploy breaks with "application
> $remote_offer not defined in this bundle"
>
> To manage notifications about this bug go to:
> https:/
>