Skip to content

[22.06] Fix live-restore w/ restart policies + volume refs#44237

Merged
thaJeztah merged 1 commit into
moby:22.06from
cpuguy83:22.06_fix_restore_volumerefs
Oct 3, 2022
Merged

[22.06] Fix live-restore w/ restart policies + volume refs#44237
thaJeztah merged 1 commit into
moby:22.06from
cpuguy83:22.06_fix_restore_volumerefs

Conversation

@cpuguy83

@cpuguy83 cpuguy83 commented Oct 3, 2022

Copy link
Copy Markdown
Member

Before this change restarting the daemon in live-restore with running containers + a restart policy meant that volume refs were not restored. This specifically happens when the container is still running and there is a restart policy that would make sure the container was running again on restart.

The bug allows volumes to be removed even though containers are referencing them. 😱

Signed-off-by: Brian Goff [email protected]
(cherry picked from commit 4c0e097)
Signed-off-by: Brian Goff [email protected]

Before this change restarting the daemon in live-restore with running
containers + a restart policy meant that volume refs were not restored.
This specifically happens when the container is still running *and*
there is a restart policy that would make sure the container was running
again on restart.

The bug allows volumes to be removed even though containers are
referencing them. 😱

Signed-off-by: Brian Goff <[email protected]>
(cherry picked from commit 4c0e097)
Signed-off-by: Brian Goff <[email protected]>

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah added this to the 22.06.0 milestone Oct 3, 2022
@thaJeztah
thaJeztah merged commit dbcd0e7 into moby:22.06 Oct 3, 2022
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.

2 participants