unable to destroy-model with offer in it

Bug #1724673 reported by Richard Harding
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Andrew Wilkins

Bug Description

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

Tags: cross-model
Revision history for this message
Richard Harding (rharding) wrote :

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

Ian Booth (wallyworld)
Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.3-beta2
Ian Booth (wallyworld)
tags: added: cross-model
Andrew Wilkins (axwalk)
Changed in juju:
status: Triaged → In Progress
assignee: nobody → Andrew Wilkins (axwalk)
Revision history for this message
Andrew Wilkins (axwalk) wrote :
Andrew Wilkins (axwalk)
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.