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

Error attaching/detaching volumes after the upgrade from 1.6 to 2.3.2 #426

Open
d3473r opened this issue Jun 30, 2023 · 4 comments
Open
Labels
bug Something isn't working

Comments

@d3473r
Copy link

d3473r commented Jun 30, 2023

Hello,

i did an upgrade from kubernetes 1.20 to 1.24 and the respective upgrade of the csi driver from 1.6.0 to 2.3.2 following the instructions from here: https://github.com/hetznercloud/csi-driver/blob/main/docs/kubernetes/README.md#from-v1-to-v2

The upgrade went smooth, all commands executed successfully, the fix-volumeattachments.sh script patched all volume attachments.

But if i scale down a deployment to 0 with an attached volume, the volume is no longer detached from the node.
I can detach it manually via the console.hetzner.cloud ui.
The same error is happening when starting a deployment, the volume is not getting attached to the node and the pod is failing to start with: MountVolume.SetUp failed for volume "pvc-xxx" : rpc error: code = Internal desc = failed to publish volume: exit status 1 mke2fs 1.46.6 (1-Feb-2023) /dev/disk/by-id/scsi-0HC_Volume_123 is mounted; will not make a filesystem here!

This workaround fixes the error: #278 (comment)
But only once, if the pod is stopped and started again the same error is occuring

Did i miss some migrations steps to upgrade from 1.6.0 to 2.3.2?

Regards

@Privatecoder
Copy link

same here

@toabi
Copy link

toabi commented Aug 22, 2023

I just upgraded my k3s cluster from v1.25.9 to v1.26.7 and during rotation of storage nodes (running rook ceph) the OSDs couldn't launch because the PVC was not unmounted properly (even after 10+ minutes).

The workaround with deleting the volumeattachment seems to fix this issue…

Update: Rotation of other nodes somehow worked without manual intervention, so this is not easy to reproduce.

Copy link

This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs.

@github-actions github-actions bot added the Stale label Nov 21, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2023
@jooola jooola removed the Stale label Dec 22, 2023
@jooola jooola reopened this Dec 22, 2023
Copy link

This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs.

@github-actions github-actions bot added the Stale label Mar 22, 2024
@apricote apricote added bug Something isn't working and removed Stale labels Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants