Juju fails to destroy Azure model when resources already deleted through Azure console

Bug #1729702 reported by Casey Marshall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Heather Lanigan

Bug Description

Juju 2.2.4, Azure provider

When I destroy the resources for a model through the Azure console, Juju fails to clean up the model when I try to destroy it.

This issue was originally reported by a JAAS user. I am able to reproduce the same problem on a standalone Juju controller bootstrapped in Azure.

Steps to reproduce:

1. Bootstrap a controller in Azure
2. juju add-model deleteme
3. Deploy a bundle like canonical-kubernetes. Let it get all deployed.
4. Go into the Microsoft Azure console, and delete all resources in the resource group for that model. If the model was named 'deleteme', delete all the resources prefixed with 'juju-deleteme-model-'. You'll possibly have to do this many times, because some resources can't be deleted while others exist. Eventually though, if you just keep deleting, you'll get rid of all of them.
5. Try to `juju destroy-model deleteme -y`. The machines never clean up.

Revision history for this message
Casey Marshall (cmars) wrote :

Controller logs

Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.3-beta3
importance: Undecided → High
status: New → Triaged
Changed in juju:
assignee: nobody → Heather Lanigan (hmlanigan)
Changed in juju:
status: Triaged → In Progress
Changed in juju:
milestone: 2.3-beta3 → none
Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.3-rc1
Revision history for this message
Heather Lanigan (hmlanigan) wrote :

@cmars, I have not been able to reproduce this with juju 2.2.6 nor 2.3-beta3. Are you able? If so, are there any more details to reproduce?

Changed in juju:
status: In Progress → Incomplete
Revision history for this message
Casey Marshall (cmars) wrote :

I upgraded the same 2.2.4 controller and model shown above to 2.2.6 with `juju upgrade-juju`. Machines are still unable to delete after the upgrade. I think this will still be a problem for JAAS Azure controllers.

Revision history for this message
Heather Lanigan (hmlanigan) wrote :

Issue reproduced. Delete the resources in the group, but not the group itself.

Changed in juju:
status: Incomplete → In Progress
Revision history for this message
Heather Lanigan (hmlanigan) wrote :

https://github.com/juju/juju/pull/8064

Will follow up by checking the other providers for like situations.

Ian Booth (wallyworld)
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

Bug attachments

Remote bug watches

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