Cross model relations break export-bundle and deploy action

Bug #1952793 reported by Steven Parker
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
High
Unassigned

Bug Description

Here is a model with offers for cross model relations.

Exporting the bundle results in remote-hash references that are not directly deployable.

This breaks the ability to quickly export-bundle and redeploy the bundle with an overlay or to easily redeploy a failed node.

--

juju export-bundle
series: focal
saas:
  remote-17339a12214341b98de08e15707402d7: {}
applications:
  prometheus:
    charm: cs:prometheus2
    channel: stable
    revision: 25
    resources:
      core: 0
      prometheus: 0
    num_units: 1
    to:
    - "0"
machines:
  "0":
    constraints: tags=hyper-compute spaces=oam-space
relations:
- - prometheus:target
  - remote-17339a12214341b98de08e15707402d7:kube-api-endpoint
- - prometheus:manual-jobs
  - remote-17339a12214341b98de08e15707402d7:prometheus
--- # overlay.yaml
applications:
  prometheus:
    offers:
      prometheus-jobs:
        endpoints:
        - manual-jobs
        acl:
          admin: admin
      prometheus-target:
        endpoints:
        - target
        acl:
          admin: admin

Attempting to directly deploy this bundle without hand editting results in deploy failing.

juju deploy ./bundle.yaml
Located charm "prometheus2" in charm-store, revision 25
Executing changes:

consume offer remote-d5344dbccd4145b28f815963700038ec at
ERROR cannot deploy bundle: application offer URL is missing model

Tags: cross-model
Steven Parker (sbparke)
description: updated
Revision history for this message
Ian Booth (wallyworld) wrote :

This is occurring on the offering model because juju creates (hidden) placeholders for the consuming apps that are related. Exporting and redeploying should ignore these, since they will be recreated as needed when the client side connects. Redeploying over the top of the same model *should* be ok as well, but would need some validation to ensure all corner cases are covered.

Changed in juju:
milestone: none → 2.9.23
importance: Undecided → High
status: New → Triaged
tags: added: cross-model
Changed in juju:
milestone: 2.9.23 → 2.9.24
Changed in juju:
milestone: 2.9.24 → 2.9.25
Changed in juju:
milestone: 2.9.25 → 2.9.26
Changed in juju:
milestone: 2.9.26 → 2.9.27
Changed in juju:
milestone: 2.9.27 → 2.9.28
Changed in juju:
milestone: 2.9.28 → 2.9.29
Changed in juju:
milestone: 2.9.29 → 2.9.30
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.9.30 → 2.9-next
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.9-next → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.