I had two controllers with prometheus offered. I then tried to destroy the controller and it hung for over an hour trying but unable to destroy. I ctrl-c'd the destroy to see that it says "found 1 application model not empty" but it's hung as the prometheus application states that it's waiting for a machine while the model will not kill things off.
juju status --format=yaml
model:
name: default
controller: bigbrother
cloud: google
region: us-east1
version: 2.3-beta1
model-status:
current: destroying
message: 'attempt 2 to destroy model failed (will retry): model not empty, found
1 application (model not empty)'
since: 18 Oct 2017 14:13:34-04:00
sla: unsupported
machines: {}
applications:
prometheus:
charm: cs:prometheus-5
series: xenial
os: ubuntu
charm-origin: jujucharms
charm-name: prometheus
charm-rev: 5
exposed: true
application-status:
current: waiting
message: waiting for machine
since: 18 Oct 2017 08:20:43-04:00
offers:
offerprom:
application: prometheus
charm: cs:prometheus-5
endpoints:
target:
interface: http
role: requirer
Once I removed the offer manually the application could be removed and the controller could be destroyed.
juju remove-offer default.offerprom
juju remove-application prometheus