Skip to content

[release/1.3 backport] snapshots/devmapper: fix rollback#4495

Merged
AkihiroSuda merged 1 commit intocontainerd:release/1.3from
kzys:backport-1.3-4437
Aug 24, 2020
Merged

[release/1.3 backport] snapshots/devmapper: fix rollback#4495
AkihiroSuda merged 1 commit intocontainerd:release/1.3from
kzys:backport-1.3-4437

Conversation

@kzys
Copy link
Copy Markdown
Member

@kzys kzys commented Aug 24, 2020

Backport of #4437. I will create another backport PR for 1.4 later.


The rollback mechanism is implemented by calling deleteDevice() and
RemoveDevice(). But RemoveDevice() is internally calling
deleteDevice() as well.

Since a device will be deleted by first deleteDevice(),
RemoveDevice() always will see ENODATA. The specific error must be
ignored to remove the device's metadata correctly.

Signed-off-by: Kazuyoshi Kato [email protected]

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 24, 2020

Build succeeded.

The rollback mechanism is implemented by calling deleteDevice() and
RemoveDevice(). But RemoveDevice() is internally calling
deleteDevice() as well.

Since a device will be deleted by first deleteDevice(),
RemoveDevice() always will see ENODATA. The specific error must be
ignored to remove the device's metadata correctly.

Signed-off-by: Kazuyoshi Kato <[email protected]>
@kzys kzys force-pushed the backport-1.3-4437 branch from c4bcd4a to fd6c915 Compare August 24, 2020 18:06
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 24, 2020

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

@AkihiroSuda AkihiroSuda merged commit f99bb2c into containerd:release/1.3 Aug 24, 2020
kzys pushed a commit to kzys/firecracker-containerd that referenced this pull request Aug 25, 2020
kzys pushed a commit to kzys/firecracker-containerd that referenced this pull request Aug 25, 2020
kzys pushed a commit to kzys/firecracker-containerd that referenced this pull request Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants