-
Notifications
You must be signed in to change notification settings - Fork 21
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
Xenserver mount not working #2
Comments
Hi @miesiu, thank you for the report. Currently, this CSI driver works only with KVM and has not yet been tested with Xenserver. With KVM, I've found no direct link between CloudStack volume That's why this CSI driver identifies the disk device by its device ID (as found in However, CloudStack seems to define a direct link (in here):
I'll try to get access to a CloudStack + XenServer environment, but could you please tell me if the "link" in the table above really works? In the following scenario:
Will I get:
|
Hey @olivierlemasle Thank you for your response. I can confirm that the above scenario will work this way, remember deviceID = 3 is reserved for cd-rom. Let me know if I can help you somehow. |
Thank you @miesiu. Then I'll try to use the deviceId to search the device with the mapping above. When it's ready, will you be ok to test if it works well in a CloudStack+Xenserver environment? I see that you started experimenting yourself. Did you get any success? I'll by happy to review a pull request if you want to contribute it. |
@olivierlemasle, unfortunately without success, I have no experience in this field. I will run tests just let me know. |
Hi @miesiu @olivierlemasle we are just working on VMware support for the CSI and CS+VMware also doesn't provide |
Hi @joschi36, I'm also experimenting with VMware support, and I did not yet find how to match the devices with the CloudStack volumes. For example (with CloudStack 4.14 and VMware):
I specified the deviceId to test the case where the deviceIds are not increasing. As the CSI driver may attach multiple volumes to the same VM at "the same time", it is not possible to rely on this order... I have no Then, when the volumes are recognized,
It shows that the device names ( And unlike with KVM, I do not find anything in
Also, the SCSI device numbers follow the order of the volume attachments, which do not match the device ids known by CloudStack. Do you have any idea? |
cc @schlapzz |
@olivierlemasle
So for VMWare we're trying to match the deviceID by matching the path There is maybe also a "bug" with the Unpublish Functions. According to the CSI Specification we need to undo everything we do in the Controller/Node Publish functions. This includes IMO also the cleaning of the SCSI Bus (counterpart to scan and add SCSI devices) For example:
Otherwise the controller is complaining about an already in use volume when you try to format the mounted volume. |
@schlapzz Thank you for your answer. However, this works only because both CloudStack and VMware increment the Also, thank you for your comment on the Unpublish functions; you're right. |
@olivierlemasle |
when trying to mount the disk I get the following message, is there any solution?
MountVolume.MountDevice failed for volume "pvc-19c4c40c-6c7e-450a-a99a-277cc11479fd" : rpc error: code = Internal desc = Cannot find device path for volume e1ff8220-1e76-455f-bfef-ef6b5ba2e014: Failed to find device for the volumeID: "e1ff8220-1e76-455f-bfef-ef6b5ba2e014" within the alloted time
Warning FailedMount 49s (x8 over 16m) kubelet Unable to attach or mount volumes: unmounted volumes=[example-volume], unattached volumes=[example-volume kube-api-access-g8mbx]: timed out waiting for the condition
The text was updated successfully, but these errors were encountered: