-
Notifications
You must be signed in to change notification settings - Fork 11
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
CSINode does not contain driver csi.hpe.com #70
Comments
Strange. What does |
yes, this is the output apiVersion: v1
items:
- apiVersion: storage.k8s.io/v1
kind: CSINode
metadata:
annotations:
storage.alpha.kubernetes.io/migrated-plugins: kubernetes.io/aws-ebs,kubernetes.io/azure-disk,kubernetes.io/azure-file,kubernetes.io/cinder,kubernetes.io/gce-pd,kubernetes.io/portworx-volume,kubernetes.io/vsphere-volume
creationTimestamp: "2024-01-16T02:56:42Z"
name: <node>
ownerReferences:
- apiVersion: v1
kind: Node
name: <node>
uid: 601b1edc-1be8-4054-a5bb-997bdea8a730
resourceVersion: "29281389"
uid: 95088258-7fae-4085-be2e-fef6d1f0d3ed
spec:
drivers:
- name: nfs.csi.k8s.io
nodeID: <node>
topologyKeys: null
kind: List
metadata:
resourceVersion: "" |
Hmm, no node driver. What does |
All pods seem to be running with no issues. |
Are you using any kind of exotic Kubernetes distribution or host OS? What if you restart the the CSI node driver DaemonSet, will csinodes populate? |
I'm running a Vanilla Ubuntu sever, with K0S as the Kubernetes distribution. The issue though looks very similar to an issue described here:
|
K0s uses a non-standard path for the Kubelet: https://docs.k0sproject.io/v1.31.3+k0s.0/storage/#installing-3rd-party-storage-solutions You need to tell the HPE CSI Driver chart this. Install the TrueNAS CSP chart with There are most likely other challenges that might crop up, but start there. |
Excelent!
the hpe.csi.driver pod shows this
|
|
The error that bubbles up to the PVC events is the outcome of the CSI node driver is unable to find the multipath device on the node. This can be a number of things. Can you manually create a volume and manually expose the target to the node and discover the device to ensure the data path is sane? |
Are you certain you're not using DHCP addresses on the TrueNAS target? |
Is this: |
yes
|
Found the Issue! The main issue seems to be that the default authorized networks is set to whatever the CIDR of the Truenas Server is, for my use case my K8S Node is in a different VLAN which didn't match the authorized networks. After manually changing the authorized networks to the correct one everything mounted as expected, I noticed also in the installation instructions that authorized networks is added as a parameter for the storage-class. After adding it I noticed that nothing changed, looking at the logs for the CSP I noticed it was failing to validate the networks added
I submitted a PR which should solve this here: #71 |
Thanks for reporting this. Routable data networks is not something that is well tested. I'll have a look at this for the next version, which should be soon. |
After installing and configuring the truenas-csp I'm getting errors when attaching PV to pods, the error seems to be CSINode does not contain driver csi.hpe.com. I have checked for errors in the CSI driver but I'm not able to see any, the attacher does provide this error:
The CSI driver init pod provides this output:
the hpe-csi-driver pod shows the following many times:
the csi-node-driver-registrar shows the following
The node is running Ubuntu 24.04
I have verified all the required packages for iscsi, multipath, xfs and nfsv4. I have also tried enabling nodeConformance and configuration but nothing has changed, I think the issue may be related to the 0 multipath devices info log.
The text was updated successfully, but these errors were encountered: