Cloned container retains NFS mounts

I am using Convoy-NFS with a NFS4 installed on an Ubuntu 14 instance. This is just for testing so I did not want to set up a gluster. Volume driver is convoy-nfs. Using the Rancher UI v 1.01.

Here is Scenario 1:

I create an Ubuntu container named Ubuntu1

  • Volume mount = ubuntu1:/data1
    Results: loads fine, volume mounts

I clone that container and call it Ubuntu2

  • delete the volume mount and replace with ubuntu2:/data2
    Results: Loads fine, but has two volumes mounted. ubuntu1:/data1 and ubuntu2:/data2

Here is Scenario 2:

Same as before for the first container

BUT when I clone it I set the Volume as ubuntu2:/data1.
Result: Container stuck at starting or In progress.

Why? because it is trying to mount 2 volumes to the same mount point. It has retained ubuntu1:/data1 from original and ubuntu2:/data1

It will never error out, The container can’t be deleted from the UI.
Docker stops responding. If I ssh to the instance and do a “docker -ps” it hangs.
In order to remove the container, I have to restart docker service, quickly do “docker ps -a” and docker rm

Furthermore any other instance that is trying to mount the same volume will hang as well.

I discovered all of this when I was trying to troubleshoot why my GitLab container (not the one from the catalog) will not mount its volumes. It was working fine. Then today I upgraded my underlying host and it moved to another host. Host is identical. Volumes will not mount.

Also, when I navigate to: /var/lib/rancher/convoy/convoy-nfs-8e605eef-3443-4ea8-99e2-92df9f7f0d5d/mnt on one of my hosts

I see the listing below. Even though right now, even though there are no containers running that are using any of these. Is this by design?

drwxrwxrwx 10 ubuntu ubuntu  4096 Apr 29 17:45 ./
drwxr-xr-x  4 root   root    4096 Apr 29 17:43 ../
drwx------  2 nobody nogroup 4096 Apr 29 17:55 config/
drwxrwxrwx  2 ubuntu ubuntu  4096 Apr 26 00:59 gl-etc/
drwxrwxrwx  2 ubuntu ubuntu  4096 Apr 29 17:11 gl-opt/
drwxrwxrwx 13 ubuntu ubuntu  4096 Apr 26 01:00 gl-var/
drwxr-xr-x 14 ubuntu ubuntu  4096 Apr 29 17:28 jenkins/
-rw-rw-r--  1 ubuntu ubuntu     0 Apr 22 23:19 test.txt
drwx------  2 root   root    4096 Apr 29 04:36 ubuntu1/
drwx------  2 root   root    4096 Apr 29 04:18 ubuntu2/
drwx------  2 root   root    4096 Apr 29 04:18 ubuntu3/

bump – I think this is a bug.

Sorry I missed responding to this, but could you open an issue in Github for this issue?

I am no longer using ConvoyNFS so I think this can be closed. But thanks for responding!