Comments (12)
@badele That normal, the plugin does have to resolve nodename of volume (node-1, node-2, node-...) but those names are only resolved by docker inside the same network.
I can recommend you to replace nodename by there respectives IP at volume creation. gluster volume create dockerstore replica 3 IP-node-1:/data/glusterfs/store/dockerstore IP-node-2:/data/glusterfs/store/dockerstore IP-node-3:/data/glusterfs/store/dockerstore
(Note: you can keep nodename for peer probe)
This is how gluster works when you mount it, the client will retrieve the configuration (node-1:/data/glusterfs/store/dockerstore node-2:/data/glusterfs/store/dockerstore ...) but gluster can't outside the docker network (on host or in plugin container) resolve those names. A other solution is to add node-X container ip to host file /etc/hosts to resolve those names.
If you want, I setup the same type of configuration for integration testing. Just clone the repo and do
make test-integration
(code here : https://github.com/sapk/docker-volume-gluster/tree/master/gluster/integration)
from docker-volume-gluster.
It's work fine for me, @sapk Thanks for your help :)
from docker-volume-gluster.
I complete my previous message with the sample code (only work if we use host containers IPs)
Edit: I use @sapk tips for getting IPs
from docker-volume-gluster.
@badele I can recommend you to use docker inspect --format {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} containerName
to get the container IP more reliably.
from docker-volume-gluster.
Does the host have fuse intalled ?
from docker-volume-gluster.
[rancher@rancher ~]$ ls /dev/fuse
/dev/fuse
I have an rclone container that is able to use /dev/fuse to mount a cloud storage drive.
from docker-volume-gluster.
Can you debug the plugin to read the gluster client logs https://docs.docker.com/engine/extend/#debugging-plugins ?
In most case, it should be the host that doesn't resolve one of the name of the gluster hosts.
from docker-volume-gluster.
Hi,
I have a same issue,
I try test you plugin with this docker recipe
Note: the glusterfs cluster it seem work with this recipe
I use a archlinux host, and it seem not log for the docker plugin or i dont't know activate the docker plugin debug/verbose mode (I have actived with docker plugin set sapk/plugin-gluster DEBUG=1
command).
Thank for you help
from docker-volume-gluster.
What an idiot ! i have forgot of replace the hostname by ip for volume creation :)
I think you're right, i will test this this evening
Thank for you help and good job for you project
from docker-volume-gluster.
I did the same ^^ :
We always learn from our mistake ;-)from docker-volume-gluster.
from docker-volume-gluster.
If the host can resolve the domains of gluster server it is good.
In the case of @badele it is the container name that he use for gluster server name in volume but those only resolve inside the corresponding docker network.
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.