Skip to content

[24.0 backport] daemon: lock in snapshotter setting at daemon init#45616

Merged
thaJeztah merged 1 commit intomoby:24.0from
thaJeztah:24.0_backport_lock_in_snapshotter_setting
May 25, 2023
Merged

[24.0 backport] daemon: lock in snapshotter setting at daemon init#45616
thaJeztah merged 1 commit intomoby:24.0from
thaJeztah:24.0_backport_lock_in_snapshotter_setting

Conversation

@thaJeztah
Copy link
Member

Feature flags are one of the configuration items which can be reloaded without restarting the daemon. Whether the daemon uses the containerd snapshotter service or the legacy graph drivers is controlled by a feature flag. However, much of the code which checks the snapshotter feature flag assumes that the flag cannot change at runtime. Make it so that the snapshotter setting can only be changed by restarting the daemon, even if the flag state changes after a live configuration reload.

(cherry picked from commit 9b9c524)

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Feature flags are one of the configuration items which can be reloaded
without restarting the daemon. Whether the daemon uses the containerd
snapshotter service or the legacy graph drivers is controlled by a
feature flag. However, much of the code which checks the snapshotter
feature flag assumes that the flag cannot change at runtime. Make it so
that the snapshotter setting can only be changed by restarting the
daemon, even if the flag state changes after a live configuration
reload.

Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit 9b9c524)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added area/daemon Core Engine kind/bugfix PR's that fix bugs containerd-integration Issues and PRs related to containerd integration labels May 25, 2023
@thaJeztah thaJeztah added this to the 24.0.2 milestone May 25, 2023
@thaJeztah thaJeztah merged commit 2472277 into moby:24.0 May 25, 2023
@thaJeztah thaJeztah deleted the 24.0_backport_lock_in_snapshotter_setting branch May 25, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/daemon Core Engine containerd-integration Issues and PRs related to containerd integration kind/bugfix PR's that fix bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants