Commit 704369c
authored
Merge pull request juju#12178 from ycliuhw/fix/destroy-caas-controller-hangs
juju#12178
*Fix destroying caas controller/models hang issue by constructing Unit properly in cleanupUnitsForDyingApplication;*
## Checklist
- [ ] ~Requires a [pylibjuju](https://github.com/juju/python-libjuju) change~
- [ ] ~Added [integration tests](https://github.com/juju/juju/tree/develop/tests) for the PR~
- [ ] ~Added or updated [doc.go](https://discourse.jujucharms.com/t/readme-in-packages/451) related to packages changed~
- [x] Comments answer the question of why design decisions were made
## QA steps
```console
$ juju add-model t1 microk8s
$ juju deploy cs:~juju/mariadb-k8s-3
$ juju deploy cs:~juju/mediawiki-k8s-4 --config kubernetes-service-type=LoadBalancer
$ juju relate mediawiki-k8s:db mariadb-k8s:server
$ juju destroy-controller k1 --destroy-all-models --destroy-storage --debug -y
```
## Documentation changes
No
## Bug reference
https://bugs.launchpad.net/juju/+bug/19009372 files changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
558 | | - | |
| 558 | + | |
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
709 | | - | |
710 | 709 | | |
711 | 710 | | |
712 | 711 | | |
| |||
716 | 715 | | |
717 | 716 | | |
718 | 717 | | |
719 | | - | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
720 | 726 | | |
721 | 727 | | |
722 | 728 | | |
| |||
0 commit comments