Magnum pod-delete didn't remove record in DB
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Fix Released
|
High
|
Andrew Melton |
Bug Description
If a pod is in Magnum DB but not exist remotely. The pod delete command succeeded but it didn't delete the record at DB. Below is the details:
# this success
$ magnum pod-delete --id 5b694989-
# but the pod still there
$ magnum pod-list
+------
| uuid | name |
+------
| 5b694989-
+------
# this is the log of conductor
DEBUG magnum.
DEBUG oslo_concurrenc
DEBUG oslo_concurrenc
DEBUG oslo_concurrenc
# I manually run the command
$ kubectl delete pod mariadb -s http://
F0119 22:25:18.947963 23864 delete.go:60] pod "mariadb" not found
Changed in magnum: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in magnum: | |
status: | Fix Committed → Fix Released |
This is happening because when the delete call to the CLI fails, the delete is short circuited and the database delete never happens.