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

CSI: set plugin socket path on restore #12149

Merged
merged 2 commits into from
Mar 1, 2022

Conversation

tgross
Copy link
Member

@tgross tgross commented Feb 28, 2022

The Prestart hook for task runner hooks doesn't get called when we
restore a task, because the task is already running. The Postrun hook
for CSI plugin supervisors needs the socket path to have been
populated so that the client has a valid path.


This got missed in testing #12078, I suspect because I was testing a lot with node plugins running as system jobs which quickly get replaced if you're not paying close attention. In any case, that PR hasn't shipped in a release yet, so there's no changelog. It'll need to be backported with that changeset.

The Prestart hook for task runner hooks doesn't get called when we
restore a task, because the task is already running. The Postrun hook
for CSI plugin supervisors needs the socket path to have been
populated so that the client has a valid path.
@tgross tgross changed the title csi: set plugin socket path on restore CSI: set plugin socket path on restore Feb 28, 2022
@tgross tgross marked this pull request as ready for review February 28, 2022 20:50
Copy link
Member

@shoenig shoenig left a comment

Choose a reason for hiding this comment

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

LGTM

@tgross tgross merged commit 907c795 into main Mar 1, 2022
@tgross tgross deleted the csi-client-restart-socket-hook-path branch March 1, 2022 15:22
@lgfa29 lgfa29 added backport/1.1.x backport to 1.1.x release line backport/1.2.x backport to 1.1.x release line labels Apr 19, 2022
lgfa29 pushed a commit that referenced this pull request Apr 19, 2022
The Prestart hook for task runner hooks doesn't get called when we
restore a task, because the task is already running. The Postrun hook
for CSI plugin supervisors needs the socket path to have been
populated so that the client has a valid path.
lgfa29 pushed a commit that referenced this pull request Apr 19, 2022
The Prestart hook for task runner hooks doesn't get called when we
restore a task, because the task is already running. The Postrun hook
for CSI plugin supervisors needs the socket path to have been
populated so that the client has a valid path.
lgfa29 added a commit that referenced this pull request Apr 19, 2022
lgfa29 pushed a commit that referenced this pull request Apr 19, 2022
The Prestart hook for task runner hooks doesn't get called when we
restore a task, because the task is already running. The Postrun hook
for CSI plugin supervisors needs the socket path to have been
populated so that the client has a valid path.
lgfa29 added a commit that referenced this pull request Apr 19, 2022
lgfa29 pushed a commit that referenced this pull request Apr 19, 2022
The Prestart hook for task runner hooks doesn't get called when we
restore a task, because the task is already running. The Postrun hook
for CSI plugin supervisors needs the socket path to have been
populated so that the client has a valid path.
lgfa29 added a commit that referenced this pull request Apr 20, 2022
The Prestart hook for task runner hooks doesn't get called when we
restore a task, because the task is already running. The Postrun hook
for CSI plugin supervisors needs the socket path to have been
populated so that the client has a valid path.

Co-authored-by: Tim Gross <tgross@hashicorp.com>
lgfa29 added a commit that referenced this pull request Apr 20, 2022
The Prestart hook for task runner hooks doesn't get called when we
restore a task, because the task is already running. The Postrun hook
for CSI plugin supervisors needs the socket path to have been
populated so that the client has a valid path.

Co-authored-by: Tim Gross <tgross@hashicorp.com>
@shoenig shoenig mentioned this pull request Jun 2, 2022
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/1.1.x backport to 1.1.x release line backport/1.2.x backport to 1.1.x release line theme/storage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants