Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Devstack volumes are not reliably destroyed #1113

Closed
timmc-edx opened this issue Jun 28, 2023 · 6 comments
Closed

Devstack volumes are not reliably destroyed #1113

timmc-edx opened this issue Jun 28, 2023 · 6 comments
Assignees

Comments

@timmc-edx
Copy link
Contributor

timmc-edx commented Jun 28, 2023

make dev.destroy does not seem to always destroy all of the Docker volumes. After running it, I have sometimes seen the output of docker volume ls include some volume names starting with devstack_. This might account for some oddities around mysql80.

Haven't been able to reproduce this again, though.

(Ticket previously incorrectly stated that there was no way command that deleted the volumes, but this was incorrect.)

@timmc-edx
Copy link
Contributor Author

You know what? I was wrong, it totally does do this. destroy.sh runs docker-compose down -v and that -v refers to volumes. Maybe I ran the wrong command!

But... interestingly, make dev.destroy doesn't remove all of the devstack_* volumes. Or, not always?

@rgraber
Copy link
Contributor

rgraber commented Jul 13, 2023

Possible cause: down -v may only remove volumes for running containers and leave the others in place.

@rgraber
Copy link
Contributor

rgraber commented Jul 13, 2023

Blocked pending more investigation by @timmc-edx

@timmc-edx timmc-edx changed the title Devstack lacks a way to reset entire state (volumes are not destroyed) Devstack volumes are not reliably destroyed Jul 18, 2023
@timmc-edx
Copy link
Contributor Author

Hmm, I tried running make dev.destroy while only mysql80 was running, but it correctly removed all of the other devstack_* volumes as well.

@timmc-edx
Copy link
Contributor Author

We should document "look at docker volume ls" as a last-ditch troubleshooting step and then close this.

@timmc-edx
Copy link
Contributor Author

PR to update the docs with this possibility: #1141

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants