-
Notifications
You must be signed in to change notification settings - Fork 88
Error creating volumes #1969
Comments
Also depite that I put
Note that when I change "LogPath" in the same file - it actually works, the log path changes, but not the log level for some reason. |
Here is corresponding (well not really corresponding, but I trust they are the same except for date) part from server logs:
|
Vmx file of the machine affected:
|
Not sure if this is relevant: https://kb.vmware.com/s/article/2047927?language=en_US |
Okay, forget about me saying that it happened intermittently. I just re-build a VM from scratch and it's happening on the new VM. My suspicion that this is due to the fact that the machine has 5 network adapters, and thus the scsi slot get pushed to the secondary bus. The plugin then does not seem to be able to cope. |
@AndrewSav can you say what OS and version of OS you're using in the VM. Let me try a local repro and get back to you. |
@govint, thank you for this, the OS is Rancher OS 1.1.0. |
Ok, the ESX host service thats attaching the volumes does return the PCI slot number as is and the guest uses that to figure the device to mount. In this case the device is on a secondary PCI bus and this needs to be fixed in the ESX service as only it can figure which bridge the device is attached on and return the slot number w.r.t that. I'll post a fix by tomorrow. |
@AndrewSav, On the VM thats showing the issue can you please run ls /sys/bus/pci/slots and ls /sys/bus/pci/devices/0000:00:16.1 and post the results here. FWIW, the files under /sys/bus/pci/slots already represent devices on the secondary PCI bus, but looks like the encoding done by vSphere isn't understood when a device is located under a non zero function of the PCI bridge. In Ubuntu and Photon OS we have PCIE bridges and the PVSCSI adapter shows up on function 0. Just want to check how the PVSCSI controller is showing up in rancherOS. |
I've made the fix in the ESX service to handle PVSCSI controller on the secondary PCI buses but that also needs a change how the client plugin determines the device under the appropriate PCI device (bridge in this case). Will post a PR once the changes are complete. |
|
@AndrewSav, thanks for posting the data requested, I've made a PR of the fixes to allow figuring out the position of the device on the client. It should get reviewed and merged soon. |
Closed via #1978 |
@govint thank you. When is it available via docker hub? |
@AndrewSav It will be part of November month release .. we are shooting a release date (11/30) for vDVS 0.19. I shall update this issue when vDVS 0.19 release available for your to try out. |
@AndrewSav vDVS 0.19 release is out please try out deliverable from https://github.com/vmware/docker-volume-vsphere/releases/tag/0.19 |
@shuklanirdesh82 @govint Guys, I just tested this on the VM it used to have problems with and now it's working fine. Thank you for fixing this! |
@AndrewSav Thanks for confirming the fix, this was indeed something that absolutely needed to be addressed, in the way we detect the device on the docker host. |
Ocasionally a VM would get screwed up. All other VMs are working fine and you can create a volume from, them but from this specific VM you no longer can:
I ran
docker volume create --driver=vsphere --name=myvolume -o size=10gb
I'm getting:
Reboot does not help. Removing and re-installing the plugin does not help. I have to re-provision VM to get it working again.
Can some one help troubleshoot? From the excerpt above, I think that
1216
is wrong since there is no pci slot like this. Where does this 1216 come from?The text was updated successfully, but these errors were encountered: