Docker Community Forums

Share and learn in the Docker community.

GlusterFS driver problem


(Jof300) #1

Hi,

I am trying to use this plugin (https://hub.docker.com/r/trajano/glusterfs-volume-plugin).

I did the 3rd config ( with glusterfsopts).

Here is my config :

version: '3.3'

volumes:
  app1:
    driver: glusterfs_trajano
    driver_opts:
      glusterfsopts: "--volfile-server=gfs-server --volfile-id=gfs-volume"
services:
  tomcat:
    image: tomcat
    volumes:
     - app1:/opt/app1
    ports:
     - 8080
    deploy:
      mode: replicated
      replicas: 1
      placement:
        constraints:
          - node.hostname == manager_node

Here is the error I get :

Aug 17 13:59:58 manager_node dockerd: time="2018-08-17T13:59:58.535018265+02:00" level=error msg="e1eab6746ac6f9138487f9c459b58454cb269ed5e051fd16d51af7bcba762ef8 cleanup: failed to delete container from containerd: no such container"

Aug 17 13:59:58 manager_node dockerd: time="2018-08-17T13:59:58.535100174+02:00" level=error msg="fatal task error" error="starting container failed: error while mounting volume '/srv/docker/plugins/a089b223415f311d2e3173c639bc6964c0bfdb11a06effa46badabc195c3f33f/rootfs': VolumeDriver.Mount: error mounting docker_app1: exit status 1" module=node/agent/taskmanager node.id=sddzs5pmuthej587a9146nvjy service.id=ncgkr3yd63iol2zaul4gtmh1d task.id=l93yvl85vvxnsgrp7vku7ysbp

Logging isn’t very clear… Any idea ?

Regards


(Jof300) #2

Hello,

After doing some other config test, I have another error :

Aug 17 15:57:49 swarm01 dockerd: time="2018-08-17T15:57:49.052197405+02:00" level=error msg="7bdc6d65daab441e345325c4cdb0698d60752ada95c8bb5fadbece58279f78f0 cleanup: failed to delete conta
iner from containerd: no such container"
Aug 17 15:57:49 swarm01 dockerd: time="2018-08-17T15:57:49.052282151+02:00" level=error msg="fatal task error" error="starting container failed: OCI runtime create failed: container_linux.g
o:348: starting container process caused \"process_linux.go:402: container init caused \\\"rootfs_linux.go:58: mounting \\\\\\\"/srv/docker/plugins/a089b223415f311d2e3173c639bc6964c0bfdb11a
06effa46badabc195c3f33f/propagated-mount/819e18a4f6b265933e57b8e5b29c23fa5b6516afeb67fe9f72b7f0e26f1b6e14\\\\\\\" to rootfs \\\\\\\"/srv/docker/overlay/ce1bf6988ba43dc5e9c945d9a52df3f91fa68
d0aa49945f0bdc0eb5c14953551/merged\\\\\\\" at \\\\\\\"/opt/mymount\\\\\\\" caused \\\\\\\"stat /srv/docker/plugins/a089b223415f311d2e3173c639bc6964c0bfdb11a06effa46badabc195c3f33f/propagated-mo
unt/819e18a4f6b265933e57b8e5b29c23fa5b6516afeb67fe9f72b7f0e26f1b6e14: transport endpoint is not connected\\\\\\\"\\\"\": unknown" module=node/agent/taskmanager node.id=sddzs5pmuthej587a9146
nvjy service.id=st8mz7v9ounbxhhcdbupnhdul task.id=q7iie99fkikhii91l4fz3z185

I changed the compose version (now 3.6)
Here is the config :

version: '3.6'

volumes:
  app1:
    driver: glusterfs
    name: my_volume_on_gluster_server
services:
  tomcat:
    image: tomcat
    volumes:
    - fmx:/opt
    ports:
     - 8080
    deploy:
      mode: replicated
      replicas: 1
      placement:
        constraints:
          - node.hostname == manager_node

Another usefull info is that I changed the docker graph in daemon.json.

{
  "graph": "/srv/docker",
  "storage-driver": "overlay"
}