Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program to remove a previous SPDK Installation. #1247

Open
pykello opened this issue Feb 13, 2024 · 0 comments
Open

Program to remove a previous SPDK Installation. #1247

pykello opened this issue Feb 13, 2024 · 0 comments
Assignees
Labels

Comments

@pykello
Copy link
Contributor

pykello commented Feb 13, 2024

After we call Prog::Storage::RemoveSpdk(spdk_installation), it should:

  • Error out if this is the only Spdk installation with positive allocation_weight on the host.
  • Set spdk_installation.allocation_weight to 0 so we don't allocate Vms to that Spdk anymore.
  • Maybe weight for 30 seconds to avoid concurrency issues in the next step. That is, a Vm::Nexus might have seen the previous allocation_weight, but hasn't created the volumes yet.
  • Wait until all VmStorageVolumes with that Spdk have been removed.
  • Disable & stop the Spdk service in the host.
  • Remove all the services & paths specific to that Spdk installation. See rhizome/host/lib/spdk_setup.rb.
  • Remove the database records.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants