-
Notifications
You must be signed in to change notification settings - Fork 214
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
Fix snapshot key error #358
Conversation
When obtaining the container information fails, the key for deleting the snapshot is incorrect. Signed-off-by: wangqiang <shivaqiang@qq.com>
@@ -57,7 +57,7 @@ func Remove(ctx context.Context, client *containerd.Client, name string) error { | |||
|
|||
} else { | |||
service := client.SnapshotService("") | |||
key := name + "snapshot" | |||
key := name + "-snapshot" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you link to where this key is used in the codebase?
Please see the contributing guide. Where is the issue that shows how to reproduce and observe this problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs more info and an issue to reproduce the problem.
The solution looks correct so I'll merge it, but we need issues to be created before PRs, and proof of the issue, plus proof of the fix. |
Feel free to test again, and see if your snapshots are being cleared up: |
After I made changes to the code and tested it, things are indeed running normally now. Previously, an error like the one below would occur and it would require manual deletion of the snapshot in order to start successfully. |
That's great, thanks for picking this up. What kinds of things are you using faasd for? Would you like to meet us at the weekly call and chat more? https://docs.openfaas.com/community/#weekly-office-hours |
When obtaining the container information fails, the key for deleting the snapshot is incorrect.
Description
Motivation and Context
How Has This Been Tested?
Types of changes
Checklist:
Commits:
git commit -s
for the Developer Certificate of Origin (DCO)Code:
Docs: