resource cleanups fail if resource is already gone (preventing migration)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Christian Muirhead |
Bug Description
`juju migrate` fails with
$ juju --version
2.2.2-xenial-amd64
$ which juju
/snap/bin/juju
$ juju migrate view-nonprod creativedrive --debug
18:00:54 INFO juju.cmd supercommand.go:63 running juju [2.2.2 gc go1.8]
18:00:54 DEBUG juju.cmd supercommand.go:64 args: []string{
18:00:54 INFO juju.juju api.go:67 connecting to API addresses: [13.59.133.96:17070 172.100.0.24:17070]
18:00:54 DEBUG juju.api apiclient.go:863 successfully dialed "wss://
18:00:54 INFO juju.api apiclient.go:617 connection established to "wss://
18:00:54 DEBUG juju.api monitor.go:35 RPC connection died
18:00:54 INFO juju.juju api.go:67 connecting to API addresses: [34.201.
18:00:54 DEBUG juju.api apiclient.go:863 successfully dialed "wss://
18:00:54 INFO juju.api apiclient.go:617 connection established to "wss://
ERROR source prechecks failed: cleanup needed
18:00:54 DEBUG cmd supercommand.go:459 error stack:
source prechecks failed: cleanup needed
github.
summary: |
- `juju migrate` fails + resource cleanups fail if resource is already gone (preventing + migration) |
Changed in juju: | |
status: | In Progress → Fix Released |
importance: | Undecided → High |
status: | Fix Released → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Hi James, could you get us logs from the source controller? juju debug-log -m controller --replay
It sounds like there are deferred cleanup actions hanging around (these are generally created when units/machines/ relations are removed) that should have been handled and deleted. So maybe the worker that handle them is hitting an error.