offering a relation that does not exist breaks the model

Bug #1954830 reported by Peter Jose De Sousa
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Jordan Barrett

Bug Description

Hi,

If I deploy a LMA model and offer a relation which does not exist (prometheus:http) juju errors with the following message as expected:

ERROR cannot update application offer "prometheus": getting relation endpoint for relation "http" and application "prometheus": application "prometheus" has no "http" relation

The bug arises in that after this message appears any subsequent calls to juju result the same message, for example when running juju status:

➜ autoscaling juju status
ERROR could not fetch application offers: getting relation endpoint for relation "http" and application "prometheus": application "prometheus" has no "http" relation

Example bundle that exhibits this issue:

https://private-fileshare.canonical.com/~pjds/lp-1954830/lma-bundle.yaml

Script to break juju:

https://private-fileshare.canonical.com/~pjds/lp-1954830/offer.sh

[Workaround]

None at the time of writing,

Thanks,

Peter

description: updated
Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.9.23
importance: Undecided → High
status: New → Triaged
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
Revision history for this message
Jordan Barrett (barrettj12) wrote :
Changed in juju:
milestone: none → 2.9.44
Changed in juju:
assignee: nobody → Jordan Barrett (barrettj12)
milestone: 2.9.44 → 2.9.43
status: Triaged → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
Revision history for this message
Alan Baghumian (alanbach) wrote :

I got myself into this situation and it was ugly. It also overloads the controller due to the infinite loop.

Thanks to nightly Juju backups I was able to dig myself out of this situation and then upgraded the controller and the subsequent models!

Backup your Juju!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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