Unable to remove offers when 2 endpoints are offered with the same application
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth |
Bug Description
I offered 2 endpoints from the prometheus application. Then, I tried to remove them, and it was failing. I tried to remove the application prometheus, with --force, and it is failing. I tried to remove the whole model with --force and it still hangs forever with the application and offers from prometheus not wanting to delete.
canonicalcr@
Offer User Relation id Status Endpoint Interface Role Ingress subnets
prometheus-jobs -
prometheus-target -
canonicalcr@
ERROR option provided but not defined: --no-wait
canonicalcr@
WARNING! This command will remove offers: admin/lma.
This includes all relations to those offers.
Continue [y/N]? y
canonicalcr@
canonicalcr@
Offer User Relation id Status Endpoint Interface Role Ingress subnets
prometheus-jobs -
prometheus-target -
canonicalcr@
10:19:10 INFO juju.cmd supercommand.go:83 running juju [2.7.6 gc go1.10.4]
10:19:10 DEBUG juju.cmd supercommand.go:84 args: []string{
10:19:10 INFO juju.juju api.go:67 connecting to API addresses: [10.1.232.13:17070 10.1.232.14:17070 10.1.232.15:17070]
10:19:10 DEBUG juju.api apiclient.go:1092 successfully dialed "wss://
10:19:10 INFO juju.api apiclient.go:624 connection established to "wss://
10:19:10 DEBUG juju.api monitor.go:35 RPC connection died
ERROR cannot delete application offer "prometheus-jobs": state changing too quickly; try again soon
10:19:10 DEBUG cmd supercommand.go:519 error stack:
/build/
canonicalcr@
removing application prometheus failed: another user was updating application; please try again
canonicalcr@
removing application prometheus failed: another user was updating application; please try again
canonicalcr@
removing application prometheus failed: another user was updating application; please try again
canonicalcr@
canonicalcr@
canonicalcr@
canonicalcr@
canonicalcr@
canonicalcr@
removing application prometheus failed: another user was updating application; please try again
canonicalcr@
10:21:26 INFO juju.cmd supercommand.go:83 running juju [2.7.6 gc go1.10.4]
10:21:26 DEBUG juju.cmd supercommand.go:84 args: []string{
10:21:26 INFO juju.juju api.go:67 connecting to API addresses: [10.1.232.13:17070 10.1.232.14:17070 10.1.232.15:17070]
10:21:26 DEBUG juju.api apiclient.go:1092 successfully dialed "wss://
10:21:26 INFO juju.api apiclient.go:624 connection established to "wss://
10:21:26 INFO juju.juju api.go:302 API endpoints changed from [10.1.232.15:17070 10.1.232.14:17070 10.1.232.13:17070] to [10.1.232.15:17070 10.1.232.13:17070 10.1.232.14:17070]
10:21:26 INFO cmd removeapplicati
10:21:26 DEBUG juju.api monitor.go:35 RPC connection died
10:21:27 INFO cmd supercommand.go:525 command finished
canonicalcr@
Offer User Relation id Status Endpoint Interface Role Ingress subnets
prometheus-jobs -
prometheus-target -
canonicalcr@
ERROR cannot delete application offer "prometheus-jobs": state changing too quickly; try again soon
canonicalcr@
10:21:47 INFO juju.cmd supercommand.go:83 running juju [2.7.6 gc go1.10.4]
10:21:47 DEBUG juju.cmd supercommand.go:84 args: []string{
10:21:47 INFO juju.juju api.go:67 connecting to API addresses: [10.1.232.14:17070 10.1.232.13:17070 10.1.232.15:17070]
10:21:47 DEBUG juju.api apiclient.go:1092 successfully dialed "wss://
10:21:47 INFO juju.api apiclient.go:624 connection established to "wss://
10:21:47 DEBUG juju.api monitor.go:35 RPC connection died
ERROR cannot delete application offer "prometheus-jobs": state changing too quickly; try again soon
10:21:47 DEBUG cmd supercommand.go:519 error stack:
/build/
canonicalcr@
removing application prometheus
canonicalcr@
Model Controller Cloud/Region Version SLA Timestamp Notes
lma foundation_vsphere vsphere/
App Version Status Scale Charm Store Rev OS Notes
prometheus waiting 0 prometheus2 jujucharms 14 ubuntu
canonicalcr@
Model Controller Cloud/Region Version SLA Timestamp Notes
lma foundation_vsphere vsphere/
App Version Status Scale Charm Store Rev OS Notes
prometheus waiting 0 prometheus2 jujucharms 14 ubuntu
canonicalcr@
removing application prometheus failed: another user was updating application; please try again
canonicalcr@
10:38:36 INFO juju.cmd supercommand.go:83 running juju [2.7.6 gc go1.10.4]
10:38:36 DEBUG juju.cmd supercommand.go:84 args: []string{
10:38:36 INFO juju.juju api.go:67 connecting to API addresses: [10.1.232.15:17070 10.1.232.13:17070 10.1.232.14:17070]
10:38:36 DEBUG juju.api apiclient.go:1092 successfully dialed "wss://
10:38:36 INFO juju.api apiclient.go:624 connection established to "wss://
10:38:36 INFO juju.juju api.go:302 API endpoints changed from [10.1.232.14:17070 10.1.232.15:17070 10.1.232.13:17070] to [10.1.232.14:17070 10.1.232.13:17070 10.1.232.15:17070]
10:38:36 INFO cmd removeapplicati
10:38:36 DEBUG juju.api monitor.go:35 RPC connection died
10:38:36 INFO cmd supercommand.go:525 command finished
juju destroy-model lma --force --no-wait does not work. Please advise on what to do?
tags: | added: cpe-onsite |
Changed in juju: | |
milestone: | 2.8-beta1 → 2.8-rc1 |
tags: | added: cross-model |
Changed in juju: | |
milestone: | 2.8-rc1 → none |
Changed in juju: | |
status: | New → Triaged |
tags: | added: destroy-model remove-application |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Without more information like a model dump, it's difficult to advise exactly how to proceed.
If you really do want to simply destroy the model, it may be that you need to manually delete the application offers using the mongo client and this should unblock the application removal and hence model deletion.