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

Add a post-install hook to restart cvmfs csi pods #419

Merged
merged 2 commits into from
Mar 17, 2023
Merged

Conversation

afgane
Copy link
Contributor

@afgane afgane commented Mar 16, 2023

As a workaround for what's seemingly a bug in the CVMFS-CSI (see cvmfs-contrib/cvmfs-csi#70), restarting the nodeplugin pods after the chart has installed seems to fix the volume mount issue so add a post-install hook that will kill the relevant nodeplugin pods.

For the hook to work properly, must install the chart with --wait flag.

@afgane afgane added the patch label Mar 16, 2023
data:
cvmfs-fix.sh: |
sleep 10;
while [ "$(kubectl get pods -n {{ .Release.Namespace }} -l 'app=cvmfscis' -l 'component=nodeplugin' -o custom-columns=STATUS:.status.phase --no-headers)" != "Running" ]; do
Copy link
Member

Choose a reason for hiding this comment

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

Is the app label correct? Shouldn't it be cvmfscsi instead?
Also, will this work if there are multiple nodes and get pods returns multiple lines for running pods?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both good catches. Should be fixed now.

@ksuderman ksuderman merged commit 0e7283f into master Mar 17, 2023
@ksuderman ksuderman deleted the cvmfs-workaround branch March 17, 2023 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants