Skip to content
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

Backport of docker: move pause container recovery to after SetConfig into release/1.3.x #16719

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #16713 to be assessed for backporting due to the inclusion of the label backport/1.3.x.

The below text is copied from the body of the original PR.


Fixes #16709

When we added recovery of pause containers in #16352 we called the recovery function from the plugin factory function. But in our plugin setup protocol, a plugin isn't ready for use until we call SetConfig. This meant that recovering pause containers was always done with the default config. Setting up the Docker client only happens once, so setting the wrong config in the recovery function also means that all other Docker API calls will use the default config.

Move the recoveryPauseContainers call into the SetConfig. Fix the error handling so that we return any error but also don't log when the context is canceled, which happens twice during normal startup as we fingerprint the driver.

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/docker-pause-tracker-config/separately-classic-boxer branch from 4fad037 to 3060e7d Compare March 29, 2023 20:21
@hc-github-team-nomad-core hc-github-team-nomad-core merged commit 8252742 into release/1.3.x Mar 29, 2023
@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/docker-pause-tracker-config/separately-classic-boxer branch from e048f9f to fc3747b Compare March 29, 2023 20:21
@hc-github-team-nomad-core hc-github-team-nomad-core deleted the backport/docker-pause-tracker-config/separately-classic-boxer branch March 29, 2023 20:21
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.

None yet

2 participants