Unnecessary errors may be displayed when vdi is removed.
kazuhisya opened this issue · comments
Reproduction: 100%
[root@sheep docker-volume-sheepdog]# docker volume create -d sheepdog vol1
vol1
[root@sheep docker-volume-sheepdog]# dog vdi list
Name Id Size Used Shared Creation time VDI id Copies Tag Block Size Shift
dvp-vol1 0 10 GB 0.0 MB 0.0 MB 2017-09-19 17:14 5dd725 3 22
[root@sheep docker-volume-sheepdog]# rm /mnt/sheepdog/vol1/ -rf
[root@sheep docker-volume-sheepdog]# docker volume rm vol1
Error response from daemon: Error while removing volume vol1: remove vol1: VolumeDriver.Remove: remove /mnt/sheepdog/vol1: no such file or directory
[root@sheep docker-volume-sheepdog]# dog vdi list
Name Id Size Used Shared Creation time VDI id Copies Tag Block Size Shift
DEBU[0188] vdi exist
INFO[0188] Remove: vol1
DEBU[0188] Count %s0
DEBU[0188] Begin utils.dogVdiDelete: dvp-vol1
DEBU[0188] Result of dogVdiDelete:
DEBU[0188] remove path: /mnt/sheepdog/vol1
ERRO[0188] Failed to remove Mount directory: remove /mnt/sheepdog/vol1: no such file or directory