Offer of non-globally-scoped endpoint should not be allowed

Bug #2032716 reported by Danny Cocks
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Alastair Flynn

Bug Description

An application which has an endpoint that does not have a global scope cannot participate in cross-model relations. However, it is still possible to offer this endpoint.

This problem was noticed on juju agent version 2.9.43, but has also been tested on version 3.1.5. The examples below are for 3.1.5.

For example,

juju add-model offerer
juju deploy ubuntu
juju deploy ntp
juju relate ubuntu ntp
juju offer ntp:juju-info

juju add-model consumer
juju deploy ubuntu
juju consume admin/offerer.ntp
juju integrate ubuntu:juju-info ntp:juju-info
```
(note: offering juju-info here is silly, but this actually happened with a more complicated case and this is simpler to demonstrate)

This attempts to connect the relation but fails with an error message similar to: `... local endpoint must be globally scoped for remote relations`.

Am I right in assuming that there is no reason for a non-globally-scoped relation to be offered? In which case, maybe an error can be raised at the offer stage.

Tags: cross-model
Changed in juju:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Jack Shaw (jack-shaw)
Changed in juju:
milestone: none → 3.1.7
Changed in juju:
milestone: 3.1.7 → 3.1.8
Changed in juju:
assignee: Jack Shaw (jack-shaw) → nobody
assignee: nobody → Alastair Flynn (aflynn50)
Harry Pidcock (hpidcock)
Changed in juju:
milestone: 3.1.8 → 3.3.3
Ian Booth (wallyworld)
Changed in juju:
milestone: 3.3.3 → 3.3.4
Changed in juju:
status: Triaged → In Progress
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
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.