The application could not be removed if it is not active.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hello,
We decided to remove and redeploy an application which is stuck at waiting status.
Unfortunately, the charm could not be removed. How to remove the application which are not in active status ?
We run following commands in order after waiting reasonable period of time.
- remove-application (no effect)
- remove-application --force (no effect)
- remove-application --force no-wait (removed but left the resources in K8s namespace)
- Clean the Kubernetes environment manually
How to reproduce the issue ?
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
core microk8s-localhost microk8s/localhost 3.1.6 unsupported 10:44:09+03:00
App Version Status Scale Charm Channel Rev Address Exposed Message
sdcore-upf waiting 1/0 sdcore-upf 6 10.152.183.75 no installing agent
Unit Workload Agent Address Ports Message
sdcore-upf/0* waiting executing 10.1.146.14 (config-changed) Waiting for bessd service to run
$ juju remove-application sdcore-upf
will remove application sdcore-upf
- will remove unit sdcore-upf/0
- will detach storage config/33
- will detach storage shared-app/34
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
core microk8s-localhost microk8s/localhost 3.1.6 unsupported 10:44:09+03:00
App Version Status Scale Charm Channel Rev Address Exposed Message
sdcore-upf waiting 1/0 sdcore-upf 6 10.152.183.75 no installing agent
Unit Workload Agent Address Ports Message
sdcore-upf/0* waiting executing 10.1.146.14 (config-changed) Waiting for bessd service to run
$ juju remove-application sdcore-upf --force
will remove application sdcore-upf
- will remove unit sdcore-upf/0
- will detach storage config/33
- will detach storage shared-app/34
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
core microk8s-localhost microk8s/localhost 3.1.6 unsupported 10:44:09+03:00
App Version Status Scale Charm Channel Rev Address Exposed Message
sdcore-upf waiting 1/0 sdcore-upf 6 10.152.183.75 no installing agent
Unit Workload Agent Address Ports Message
sdcore-upf/0* waiting executing 10.1.146.14 (config-changed) Waiting for bessd service to run
$ juju remove-application sdcore-upf --force --no-wait
$ kubectl get all -A | grep -i upf
core service/
juju debug log during removal process:
unit-sdcore-upf-0: 10:56:11 INFO unit.sdcore-
unit-nrf-0: 10:56:11 INFO juju.worker.
unit-mongodb-k8s-0: 10:56:11 ERROR unit.mongodb-
unit-mongodb-k8s-0: 10:56:11 WARNING unit.mongodb-
unit-mongodb-k8s-0: 10:56:12 INFO juju.worker.
unit-sdcore-upf-0: 10:56:13 INFO unit.sdcore-
unit-sdcore-upf-0: 10:56:14 ERROR unit.sdcore-
unit-sdcore-upf-0: 10:56:14 ERROR unit.sdcore-
unit-sdcore-upf-0: 10:56:14 INFO unit.sdcore-
unit-sdcore-upf-0: 10:56:16 INFO unit.sdcore-
unit-sdcore-upf-0: 10:56:17 ERROR unit.sdcore-
unit-sdcore-upf-0: 10:56:17 ERROR unit.sdcore-
unit-sdcore-upf-0: 10:56:17 INFO unit.sdcore-
unit-sdcore-upf-0: 10:56:19 INFO unit.sdcore-
unit-sdcore-upf-0: 10:56:20 ERROR unit.sdcore-
unit-sdcore-upf-0: 10:56:20 ERROR unit.sdcore-
unit-sdcore-upf-0: 10:56:20 INFO unit.sdcore-
unit-sdcore-upf-0: 10:56:22 INFO unit.sdcore-
unit-sdcore-upf-0: 10:56:23 ERROR unit.sdcore-
unit-sdcore-upf-0: 10:56:23 ERROR unit.sdcore-
unit-sdcore-upf-0: 10:56:23 INFO unit.sdcore-
unit-sdcore-upf-0: 10:56:25 INFO unit.sdcore-
unit-sdcore-upf-0: 10:56:26 ERROR unit.sdcore-
unit-sdcore-upf-0: 10:56:26 ERROR unit.sdcore-
unit-sdcore-upf-0: 10:56:26 INFO unit.sdcore-
unit-sdcore-upf-0: 10:56:28 INFO unit.sdcore-
unit-sdcore-upf-0: 10:56:29 ERROR unit.sdcore-
unit-sdcore-upf-0: 10:56:29 ERROR unit.sdcore-
unit-sdcore-upf-0: 10:56:29 INFO unit.sdcore-
controller-0: 10:56:29 INFO juju.worker.
controller-0: 10:56:29 INFO juju.worker.
controller-0: 10:56:33 INFO juju.worker.
controller-0: 10:56:33 INFO juju.worker.
controller-0: 10:56:34 INFO juju.worker.
controller-0: 10:56:38 INFO juju.worker.
description: | updated |
description: | updated |
description: | updated |
Changed in juju: | |
status: | New → Incomplete |
Changed in juju: | |
status: | Expired → Incomplete |
status: | Incomplete → In Progress |
status: | In Progress → Confirmed |
This might be fixed by this PR /github. com/juju/ juju/pull/ 16652
https:/