Removing multiple applications leaves orphan applications

Bug #1829302 reported by Kenneth Koski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Ian Booth

Bug Description

I have a bundle with ~20 applications in it. When I remove all of them at once, sometimes some of the applications get left behind as orphans. `juju status` will show an empty model, but `kubectl get pods` will show pods left behind:

```
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
kubeflow cdkkf cdkkf 2.6.1 unsupported 17:22:28-05:00

Model "admin/kubeflow" is empty.
```

```
$ kubectl get pods
NAMESPACE NAME READY STATUS RESTARTS AGE
kubeflow mariadb-0 1/1 Running 0 3m34s
kubeflow minio-b985c7975-z5cfc 1/1 Running 0 3m22s
kubeflow pipelines-api-864c768d5c-6mrp2 1/1 Running 0 3m10s
kubeflow pipelines-dashboard-794848d6d7-592mb 1/1 Running 0 3m11s
kubeflow pipelines-persistence-f977d4ff8-qds46 1/1 Running 0 3m4s
kubeflow pipelines-scheduledworkflow-86676b966c-hrfft 1/1 Running 0 2m57s
kubeflow tensorboard-65755bcb4d-dh2nm 1/1 Running 0 4m5s
kubeflow tf-job-dashboard-8f55f4964-x5jnc 1/1 Running 0 3m57s
kubeflow tf-job-operator-774b98d9cc-p5rdh 1/1 Running 0 3m50s
```

The corresponding deployments and statefulsets are left behind as well, and removing them with kubectl cleans them up appropriately.

Revision history for this message
Yang Kelvin Liu (kelvin.liu) wrote :

Thanks for creating this bug, Kenneth.
Did you use `remove-application` to remove those applications one by one?

Revision history for this message
Kenneth Koski (knkski) wrote :

Thanks for the response. Yeah, I remove the applications individually with that command. If it matters, I have some code that loops over the applications in the bundle and calls that command without any waiting in between:

https://github.com/knkski/rust-libjuju/blob/master/plugins/src/juju_bundle.rs#L229

Tim Penhey (thumper)
tags: added: k8s remove-application
Changed in juju:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Ian Booth (wallyworld)
Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.7-beta1
Changed in juju:
milestone: 2.7-beta1 → 2.7-rc1
Changed in juju:
milestone: 2.7-rc1 → none
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: High → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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