File system for created volume is N/A #1615
Comments
The last logs from both the service and the plugin show that the volume was attached to ubuntu VM2.2 for formatting and there are no more plugin logs after that. Obviously there won't be an FS on the volume as formatting hasn't completed. 2017-07-20 17:49:52.023570077 -0700 PDT [INFO] Attaching volume and creating filesystem fstype= name="Vol22@sharedVmfs-0" Before this, the plugin logs show another issue where the plugin wants to remove a volume sVmotionVol2233 thats in use by the same VM - was this intentional 2017-07-20 17:45:08.123023396 -0700 PDT [INFO] Successfully retrieved mountsmap=map[] |
@govint shouldn't we need to block the volume creation from |
@govint Yes, I was trying to remove volume sVmotionVol2233 |
@shuklanirdesh82, in this case docker volume create command hasn't complete yet, so docker has correctly reported a creation error. Why creation failed, there are no logs. |
@govint Fresh logs have been uploaded. Logs:
Admin cli volume ls:
|
@ashahi1, these new logs don't have anything beyond the FS creation step in the plugin logs, seems to be something specific to this setup. On my photon VM, same command: docker volume inspect Vol22@sharedVmfs-0 |
Making P1 as the command works and most likely is a set up specific issue. |
@govint I got the latest code from vmware:master and I could repro the issue on photon as well as ubuntu VMs. This looks to be a regression that we are seeing only on latest code on vmware:master. |
@ashahi1 if the logs are truncated then I'm not sure if it can be debugged, let me try the ToT again. |
Tried the ToT and the plugin is crashing, will debug and fix. |
Bug is in Docker and the way the request structure is initialized in the plugin. For docker create, docker sends us an empty map which is initialized in prepareCreateOptions() in the vmdk driver. For docker run, with volume create option, Docker sends a nil map, and the plugin has a bug where prepareCreateOptions() gets passed the request structure by value vs. as a pointer. So, the request struct gets initialized inside prepareCreateOptions() but the caller (Create()) doesn't see that and accessing the nil options map causes the crash. Fairly simple issue to handle in the vmdk/photon drivers. The bug in docker can also be fixed and will raise the issue there. Fixed via #1636 |
Steps:
docker: Error response from daemon: create Vol22@sharedVmfs-0: Post http://%2Frun%2Fdocker%2Fplugins%2Fa2341bfd26d15ba333e64eb30eb53e8174d87716ed1168313e9fecc779f7b759%2Fvsphere.sock/VolumeDriver.Create: http: ContentLength=42 with Body length 0.
Steps and their output are as follows:
Logs:
docker-volume-vsphere.txt
vmdk_ops.txt
The text was updated successfully, but these errors were encountered: