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

CON-1395: Avoid FailedPreStopHook warning on hpe-csi-node termination #194

Merged
merged 3 commits into from
Nov 4, 2020

Conversation

rkumpf
Copy link
Collaborator

@rkumpf rkumpf commented Nov 2, 2020

The csi-node-driver-registrar container in the hpe-csi-node daemonset defines
a pre-stop hook that runs a command in the container. However, the container
does not include a shell command, so the hook execution fails with this error:
"exec: "/bin/sh": stat /bin/sh: no such file or directory". Avoid the error
by removing the hook.

Comment on lines -39 to -42
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "rm -rf /registration/csi.hpe.com /registration/csi.hpe.com-reg.sock"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the downside of not removing this socket?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is a zero-byte file, but the inode won't be reclaimed when the HPE CSI driver isn't used.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we update the node-driver-registrar image?

kubernetes-csi/node-driver-registrar#61

It seems we are quite dated on ours.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Indeed, the latest image does the cleanup automatically.

The csi-node-driver-registrar container in the hpe-csi-node daemonset defines
a pre-stop hook that runs a command in the container.  However, the container
does not include a shell command, so the hook execution fails with this error:
"exec: \"/bin/sh\": stat /bin/sh: no such file or directory".  Avoid the error
by removing the hook.

Signed-off-by: Roger Kumpf <[email protected]>
@rkumpf rkumpf merged commit 0e84f68 into hpe-storage:master Nov 4, 2020
@rkumpf rkumpf deleted the con1395 branch November 4, 2020 00:34
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.

2 participants