A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vmware/docker-volume-vsphere/issues/1724 below:

Volume unmount failed after docker restart · Issue #1724 · vmware-archive/vsphere-storage-for-docker · GitHub

This repository was archived by the owner on Nov 9, 2020. It is now read-only.

This repository was archived by the owner on Nov 9, 2020. It is now read-only.

Volume unmount failed after docker restart #1724

Description

Setup: Datastore name had spaces e.g. DS name: 'shared Vmfs - (10)'

Test steps:

1. Created a volume.
2. Ran a container with volume mounted.
3. While container is running, killed the docker.
4. Unmounting failed after docker restart.

Logs have been attached at the end.

Test steps and their output are as follows:

  1. Created a volume on a datastore "shared Vmfs - (10)"
root@sc-rdops-vm02-dhcp-52-237:~# docker volume create -d vsphere --name 'TestXXXX@shared   Vmfs   - (10)'
TestXXXX@shared   Vmfs   - (10)
root@sc-rdops-vm02-dhcp-52-237:~#
root@sc-rdops-vm02-dhcp-52-237:~# docker volume ls
DRIVER              VOLUME NAME
vsphere:latest      RefcountTest_volume_957663@shared   Vmfs   - (10)
vsphere:latest      TestXXXX@shared   Vmfs   - (10)
  1. Ran a container with volume mounted
root@sc-rdops-vm02-dhcp-52-237:~# docker run -d -v 'TestXXXX@shared   Vmfs   - (10)':/vol1 busybox tail -F /dev/null
f7bc85e60014a14be0f2de553eda6f09ac530285becb632f9ebe1de5278a122f
  1. While container is running, killed the docker (It restarts automatically)
root@sc-rdops-vm02-dhcp-52-237:~# pkill -9 dockerd
root@sc-rdops-vm02-dhcp-52-237:~#
  1. Unmounting failed after docker restart
2017-08-08 15:56:14.514381213 -0700 PDT [WARNING] Received signal signal=terminated
2017-08-08 15:56:16.63074616 -0700 PDT [INFO] No config file found. Using defaults.
2017-08-08 15:56:16.632034196 -0700 PDT [INFO] Starting plugin driver=vsphere log_level=info config="/etc/docker-volume-vsphere.conf"
2017-08-08 15:56:16.632187238 -0700 PDT [INFO] Getting volume data from unix:///var/run/docker.sock
2017-08-08 15:56:18.632695576 -0700 PDT [INFO] Can't connect to unix:///var/run/docker.sock due to (An error occurred trying to connect: context deadline exceeded), skipping discovery
2017-08-08 15:56:18.632764519 -0700 PDT [INFO] Refcounting failed: (An error occurred trying to connect: context deadline exceeded).
2017-08-08 15:56:18.632788627 -0700 PDT [INFO] Docker VMDK plugin started port=1019 mock_esx=false version="vSphere Volume Driver v0.5"
2017-08-08 15:56:18.632879206 -0700 PDT [INFO] Scheduling again after 2 seconds
2017-08-08 15:56:18.633147514 -0700 PDT [INFO] Going into ServeUnix - Listening on Unix socket address="/run/docker/plugins/vsphere.sock"
2017-08-08 15:56:20.633177747 -0700 PDT [INFO] Getting volume data from unix:///var/run/docker.sock
2017-08-08 15:56:22.633733809 -0700 PDT [INFO] Can't connect to unix:///var/run/docker.sock due to (An error occurred trying to connect: context deadline exceeded), skipping discovery
2017-08-08 15:56:22.633786469 -0700 PDT [INFO] Refcounting failed: (An error occurred trying to connect: context deadline exceeded). Attempts left: 20
2017-08-08 15:56:22.633795139 -0700 PDT [INFO] Scheduling again after 4 seconds
2017-08-08 15:56:26.633985126 -0700 PDT [INFO] Getting volume data from unix:///var/run/docker.sock
2017-08-08 15:56:28.634387757 -0700 PDT [INFO] Can't connect to unix:///var/run/docker.sock due to (An error occurred trying to connect: context deadline exceeded), skipping discovery
2017-08-08 15:56:28.634436682 -0700 PDT [INFO] Refcounting failed: (An error occurred trying to connect: context deadline exceeded). Attempts left: 19
2017-08-08 15:56:28.634445627 -0700 PDT [INFO] Scheduling again after 8 seconds
2017-08-08 15:56:36.634655096 -0700 PDT [INFO] Getting volume data from unix:///var/run/docker.sock
2017-08-08 15:56:36.668870752 -0700 PDT [INFO] Found 0 running or paused containers
2017-08-08 15:56:36.669123622 -0700 PDT [INFO] Initiating recovery unmount. name="RefcountTest_volume_957663@shared\\040\\040\\040Vmfs\\040\\040\\040-\\040(10)" refcnt=0 mounted=true dev="/dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0"
2017-08-08 15:56:36.669155516 -0700 PDT [ERROR] Failed to unmount volume. Now trying to detach... mountpoint="/mnt/vmdk/RefcountTest_volume_957663@shared\\040\\040\\040Vmfs\\040\\040\\040-\\040(10)" error="Unmount device at /mnt/vmdk/RefcountTest_volume_957663@shared\\040\\040\\040Vmfs\\040\\040\\040-\\040(10) failed: no such file or directory"
2017-08-08 15:56:36.806468513 -0700 PDT [WARNING] Failed to unmount - manual recovery may be needed
2017-08-08 15:56:36.806743488 -0700 PDT [INFO] Initiating recovery unmount. name="TestXXXX@shared\\040\\040\\040Vmfs\\040\\040\\040-\\040(10)" refcnt=0 mounted=true dev="/dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:1:0"
2017-08-08 15:56:36.806818766 -0700 PDT [ERROR] Failed to unmount volume. Now trying to detach... mountpoint="/mnt/vmdk/TestXXXX@shared\\040\\040\\040Vmfs\\040\\040\\040-\\040(10)" error="Unmount device at /mnt/vmdk/TestXXXX@shared\\040\\040\\040Vmfs\\040\\040\\040-\\040(10) failed: no such file or directory"
2017-08-08 15:56:36.926483704 -0700 PDT [WARNING] Failed to unmount - manual recovery may be needed
2017-08-08 15:56:36.926551407 -0700 PDT [INFO] Discovered 2 volumes in use.
2017-08-08 15:56:36.926563152 -0700 PDT [INFO] Volume name=RefcountTest_volume_957663@shared\040\040\040Vmfs\040\040\040-\040(10) count=0 mounted=true device='/dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0'
2017-08-08 15:56:36.92657014 -0700 PDT [INFO] Volume name=TestXXXX@shared\040\040\040Vmfs\040\040\040-\040(10) count=0 mounted=true device='/dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:1:0'

Logs:
docker.txt
docker-volume-vsphere.txt
vmdk_ops.1.txt
vmdk_ops.txt


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4