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

[question] How to remove volumes with stale allocation state? #9230

Closed
mkrueger-sabio opened this issue Oct 30, 2020 · 6 comments
Closed

[question] How to remove volumes with stale allocation state? #9230

mkrueger-sabio opened this issue Oct 30, 2020 · 6 comments
Assignees
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/storage type/bug
Milestone

Comments

@mkrueger-sabio
Copy link

I still have problems removing volumes where an allocation is associated with it but the allocation does not exist anymore.

~ ⌚ 13:55:22
$ nomad volume deregister -force test-volume
Are you sure you want to force deregister volume "test-volume"? [y/N] y
Error deregistering volume: Unexpected response code: 500 (rpc error: volume in use: test-volume)

~ ⌚ 13:55:26
$ nomad volume status test-volume           
ID                   = test-volume
Name                 = test-volume
External ID          = labs-maestro
Plugin ID            = csi.serviceware.gluster.labs2
Provider             = csi.serviceware.gluster
Version              = 0.0.10
Schedulable          = false
Controllers Healthy  = 0
Controllers Expected = 8
Nodes Healthy        = 0
Nodes Expected       = 8
Access Mode          = multi-node-multi-writer
Attachment Mode      = file-system
Mount Options        = <none>
Namespace            = default

Allocations
ID        Node ID   Task Group  Version  Desired  Status   Created     Modified
56d0ec9b  7d72f8a4  httpd       2        run      running  3mo16d ago  3mo16d ago

~ ⌚ 13:55:34
$ nomad alloc status 56d0ec9b               
No allocation(s) with prefix or id "56d0ec9b" found

How can I remove them?

@tgross
Copy link
Member

tgross commented Oct 30, 2020

I still

@mkrueger-sabio what version of Nomad are you on?

@mkrueger-sabio
Copy link
Author

v0.12.3

@tgross
Copy link
Member

tgross commented Oct 30, 2020

Ok thanks. The problem this represents should have been fixed in 0.12.2, so there must still be a bug lurking around cleaning up these cases. I'll take a look and circle back here.

@tgross
Copy link
Member

tgross commented Oct 30, 2020

WIP PR is #9239 and I'm looking to ship this in the 1.0 final.

@tgross tgross added stage/accepted Confirmed, and intend to work on. No timeline committment though. and removed stage/needs-investigation labels Oct 30, 2020
@tgross tgross added this to the 1.0 milestone Oct 30, 2020
@tgross
Copy link
Member

tgross commented Nov 18, 2020

Closed by #9239

@tgross tgross closed this as completed Nov 18, 2020
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/storage type/bug
Projects
None yet
Development

No branches or pull requests

2 participants