Comments (8)
I try to setup tests in travis to deliver new image based on glusterfs cli. That could maybe fix the error since command could failed directly but I will try to improve handling cli by keep process monitored by the driver and logging output directly via the plugin.
from docker-volume-gluster.
Alright, I try that out later today and let you know about the outcome.
from docker-volume-gluster.
How do you start container? Are you sure that it is a gluster volume that is started ?
One problem that I encounter myself (still in integration tests), the script fail to create the volume but after docker create automatically a local volume (that is empty) with the name of the volume.
Now that I use glusterfs cli directly, I could detect when background process failed but after volume is mount docker drivers have no possibility to inform docker host that the mount point is unavailable.
from docker-volume-gluster.
Its a docker stack ( with compose) and the plugin is also an container.
When I inspect the container I looks like it mounted the gluster volume. However when I inspect the volume I see that the mountpoint doesn't exist.
docker volume inspect portainer_portainer-data
[
{
"CreatedAt": "0001-01-01T00:00:00Z",
"Driver": "glusterfs:latest",
"Labels": {
"com.docker.stack.namespace": "portainer"
},
"Mountpoint": "/var/lib/docker-volumes/gluster/portainer_portainer-data",
"Name": "portainer_portainer-data",
"Options": {
"voluri": "localhost:gv-portainer"
},
"Scope": "local"
}
]
Docker Container:
"Type": "volume",
"Name": "portainer_portainer-data",
"Source": "/var/lib/docker/plugins/eb54b605aac01e577ebad9e73439f0a228a1bbcc2789a7f8dc4a69149fbce971/rootfs/var/lib/docker-volumes/gluster/portainer_portainer-data",
"Destination": "/data",
"Driver": "glusterfs:latest",
"Mode": "",
"RW": true,
"Propagation": ""
from docker-volume-gluster.
As for #18 it is mostly to try to resolve hostname of server (and bricks) before creation and various little pre-check to limit error related to configuration later at mount.
from docker-volume-gluster.
Otherwise, it seems to be using the plugin (I suppose you use a custom alias glusterfs). I will look at it near
to catch more errors. (Maybe keep process in foreground and attaching it to mount)from docker-volume-gluster.
Do you need more info to track down the issue. currently we can't use the plugin due to this issue
Config.json from
cat /var/lib/docker/plugins/eb54b605aac01e577ebad9e73439f0a228a1bbcc2789a7f8dc4a69149fbce971/config.json
{
"plugin": {
"Config": {
"Args": {
"Description": "Arguments to be passed to the plugin",
"Name": "args",
"Settable": ["value"],
"Value": []
},
"Description": "GlusterFS plugin for Docker",
"DockerVersion": "17.10.0-ce",
"Documentation": "https://docs.docker.com/engine/extend/plugins/",
"Entrypoint": ["/usr/bin/docker-volume-gluster", "daemon"],
"Env": [{ "Description": "", "Name": "DEBUG", "Settable": ["value"], "Value": "0" }],
"Interface": { "Socket": "gluster.sock", "Types": ["docker.volumedriver/1.0"] },
"IpcHost": false,
"Linux": {
"AllowAllDevices": false,
"Capabilities": ["CAP_SYS_ADMIN"],
"Devices": [{ "Description": "", "Name": "", "Path": "/dev/fuse", "Settable": null }]
},
"Mounts": null,
"Network": { "Type": "host" },
"PidHost": false,
"PropagatedMount": "/var/lib/docker-volumes/gluster",
"User": {},
"WorkDir": "",
"rootfs": {
"diff_ids": ["sha256:8a21bfe4b75043c94d7f9a9201ea73932c3e489bd7fd2881021ceedcec3b19d5"],
"type": "layers"
}
},
"Enabled": true,
"Id": "eb54b605aac01e577ebad9e73439f0a228a1bbcc2789a7f8dc4a69149fbce971",
"Name": "glusterfs:latest",
"PluginReference": "docker.io/sapk/plugin-gluster:latest",
"Settings": {
"Args": [],
"Devices": [{ "Description": "", "Name": "", "Path": "/dev/fuse", "Settable": null }],
"Env": ["DEBUG=0"],
"Mounts": []
}
},
"PropagatedMount":
"/var/lib/docker/plugins/eb54b605aac01e577ebad9e73439f0a228a1bbcc2789a7f8dc4a69149fbce971/rootfs/var/lib/docker-volumes/gluster",
"Rootfs": "/var/lib/docker/plugins/eb54b605aac01e577ebad9e73439f0a228a1bbcc2789a7f8dc4a69149fbce971/rootfs",
"Config": "sha256:a1fbb7a93f194f604d1532d75913e4b89aa8c75c8dd4896baace96a41363ec6b",
"Blobsums": ["sha256:c367876793b34af008c4e1f6d19ed7a584352092021e9ef03259c97bf94566f0"],
"SwarmServiceID": ""
}
ls -la /var/lib/docker-volumes/gluster/portainer_portainer-data/
fails as this directory doesn't exist
from docker-volume-gluster.
A new version should be released soon. It use gluster cli (plugin wasn't updated without a tag) that may return more error case at start-up when mount command would have detach it-self. I will definitively improve process handling but that could already fix your problem.
from docker-volume-gluster.
Related Issues (20)
- mount gluster volume in docker service HOT 2
- VolumeDriver.Mount: exit status 1 HOT 2
- VolumeDriver.Mount: exit status 1 HOT 12
- Feature: creation of sub directory into glusterfs volume HOT 11
- And more context to exit status 1 errors. HOT 1
- simple getting started guide HOT 7
- I am unable to remove the volume even with -f HOT 6
- VolumeDriver.Mount: exit status 107 HOT 21
- docker volume rm fails on an unmounted volume HOT 7
- Cannot "docker volume rm" volumes created with sapk/docker-volume-gluster HOT 3
- Any reason why 'old' branch is set to default? HOT 4
- Add support for glusterd2
- Create a swarm env for tests
- Add option to disable persistence
- Verify gluster version
- raspberry pi build HOT 11
- mounting sub dirs
- docker: Error response from daemon: VolumeDriver.Mount: EOF. HOT 2
- containers/create HOT 13
- Is it supposed to automatically create the specified subdir?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-volume-gluster.