yp-engineering / rbd-docker-plugin

Ceph RBD docker volume driver plugin.
MIT License
102 stars 70 forks source link

/usr/bin/docker-current: Error response from daemon: VolumeDriver.Mount: Unable to get Exclusive Lock. #49

Open fffffreedom opened 6 years ago

fffffreedom commented 6 years ago

hi when i run: docker run --rm --volume-driver=rbd --volume foo:/mnt -it busybox /bin/sh sometimes error happens: /usr/bin/docker-current: Error response from daemon: VolumeDriver.Mount: Unable to get Exclusive Lock.

log

2018/01/17 10:54:22 api.go:174: Entering go-plugins-helpers hostVirtualPath
2018/01/17 10:54:22 driver.go:507: INFO: API Path request(foo) => /var/lib/docker-volumes/rbd/rbd/foo
2018/01/17 10:54:22 api.go:160: Entering go-plugins-helpers mountPath
2018/01/17 10:54:22 driver.go:309: INFO: API Mount(&{foo@1024 940ca729c9d6b64e659aa864cd4d2d5fa10187c7652d1520adee041cb39fe530})
2018/01/17 10:54:22 driver.go:325: ERROR: locking RBD Image(foo): exit status 2
2018/01/17 10:54:22 api.go:202: Entering go-plugins-helpers unmountPath
2018/01/17 10:54:22 driver.go:525: INFO: API Unmount(&{foo@1024 940ca729c9d6b64e659aa864cd4d2d5fa10187c7652d1520adee041cb39fe530})
2018/01/17 10:54:22 driver.go:545: WARN: Volume is not in known mounts: ignoring request to unmount: rbd/foo
teralype commented 5 years ago

Any progress on this?

ricokareem commented 5 years ago

this software is out-of-date and might no longer be maintained. you can try the primary maintainer's fork and see if that resolves the problem.