Page MenuHomePhabricator

CSI Cinder issues causing periodic failures on Magnum cluster
Closed, ResolvedPublic

Description

I have a magnum cluster in the procbot project. For the past year, every 2-3 months, my jobs all go into an error state. This happened again on 3/4 January 2025. Per the failure policy, new pods get scheduled for creation, but fail to get scheduled due to no nodes satisfying the constraints. Namely, the worker node seems to have a disk pressure taint:

pod scheduling has error:

"reason": "FailedScheduling",
            "message": "0/2 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, 1 node(s) had taint {node.kubernetes.io/disk-pressure: }, that the pod didn't tolerate.

worker nodes have:

"taints": [
    {
        "key": "node.kubernetes.io/disk-pressure",
        "effect": "NoSchedule",
        "timeAdded": "2025-01-04T11:53:58Z"
    }
]

Normally I'd think that means the node ran out of disk space. But my jobs don't store anything to disk, aside from the logs which I am sure are rotated. And the ephemeral-storage on the nodes also seems plenty sufficient (see dump).

As well as my job pods, many pods in the kube-system namespace also go into an error state. The csi-cinder-controllerplugin pod stood out. Its logs at the time of crash seem to be unavailable, presumably were pruned. I did get logs of the most recent csi-cinder-controllerplugin pod as of 12 January. It was spammed with:

W0113 00:45:48.956393       1 connection.go:173] Still connecting to unix:///csi/csi.sock

I am unsure what the cause of the above issue is. Usually when this happens, deleting the error state pods and rebooting the nodes via Horizon seems to (temporarily) fix the problem. I did that yesterday, but this time the instances are stuck in the error state, with error message "libvirtError". If I try to stop/start/reboot them, I get error: "You are not allowed to soft reboot instance: procbot-k8s-b-5l2c6rwuicm2-master-0" (etc).

I took a kubectl cluster-info dump yesterday before rebooting via Horizon. It's 22MB in size and seems to be too large to upload here - any ideas where I can upload? (if you have access to my Cloud VPS instance, it's the file /home/proc/dump on my bastion instance).

Event Timeline

Restricted Application added a subscriber: • Aklapper. · View Herald Transcript

The libvert error seems to be fixed by T383583

@rook any ideas on what to do about the main bit of the issue? The cluster still seems to be inoperable, with csi-cinder-controllerplugin-7b97545d9d-nskpt stuck in CrashLoopBackOff, largely spammed with

W0118 10:16:04.271250       1 connection.go:173] Still connecting to unix:///var/lib/csi/sockets/pluginproxy/csi.sock

My usual technique of restarting the nodes doesn't seem to have done it this time unfortunately. And I'm not sure why there are CSI/Cinder issues every 2-ish months in the first place.

I'm tempted to recreate the cluster, but maybe that wouldn't fix whatever the underlying issue is, and want to get some thoughts before I delete the current cluster and lose any of its logs/state which may be of value in debugging.

There were problems like this on older fcos versions of k8s deployed by magnum (T336586). Your current cluster appears to be using Fedora-CoreOS-38, was the previous cluster using the same?

Proc closed this task as Resolved.EditedFeb 13 2025, 2:17 PM
Proc claimed this task.

For context, I recreated the cluster recently after my previous message.

Your current cluster appears to be using Fedora-CoreOS-38, was the previous cluster using the same?

No, it was using magnum-fedora-coreos-34 (probably quite an old version, as that cluster was created over a year ago). It does sound like that phab issue, although the containerd patch was applied following similar issues around that time, but the issue persisted.

So far, the new cluster seems to be working without issue. Happy to mark this as resolved for now, unless something crops up!

Proc removed Proc as the assignee of this task.Feb 13 2025, 2:18 PM