Skip to content

mark device faulty after parent fails to suspend#5111

Merged
crosbymichael merged 1 commit intocontainerd:masterfrom
ctrlaltdel121:master
Mar 8, 2021
Merged

mark device faulty after parent fails to suspend#5111
crosbymichael merged 1 commit intocontainerd:masterfrom
ctrlaltdel121:master

Conversation

@ctrlaltdel121
Copy link
Copy Markdown
Contributor

When an error is returned here, unlike the other error returns in the function, nothing is done to mark the added device as faulty or remove it.

I have observed this causing future snapshot creations to continue to attempt to use the same ID (from the sequence) to create new devices and get blocked because the device already exists because it was not rolled back here.

Hopefully fixes #5110

@k8s-ci-robot
Copy link
Copy Markdown

Hi @ctrlaltdel121. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Mar 2, 2021

Build succeeded.

@mxpv
Copy link
Copy Markdown
Member

mxpv commented Mar 2, 2021

Could you please sign off your commits (try git commit -s) in order to pass CI checks?
https://github.com/containerd/project/blob/master/CONTRIBUTING.md#sign-your-work

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Mar 3, 2021

Build succeeded.

Comment thread snapshots/devmapper/pool_device.go Outdated
When an error is returned here, unlike the other error returns in the function, nothing is done to mark the added device as faulty or remove it.
I have observed this causing future snapshot creations to continue to attempt to use the same ID (from the sequence) to create new devices
and get blocked because the device already exists because it was not rolled back here.

Hopefully fixes containerd#5110

Signed-off-by: Jeremy Williams <[email protected]>
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Mar 3, 2021

Build succeeded.

Copy link
Copy Markdown
Member

@mxpv mxpv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on green

@crosbymichael crosbymichael merged commit 7738246 into containerd:master Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Devmapper snapshotter not cleaning up after failed parent suspend

4 participants