Skip to content
This repository has been archived by the owner on Jan 23, 2020. It is now read-only.

Cannot write data to Cloudstor / NFS / EFS volumes in 18.09.2 Template #196

Open
paullj1 opened this issue Jul 12, 2019 · 5 comments
Open

Comments

@paullj1
Copy link

paullj1 commented Jul 12, 2019

Expected behavior

  • Should be able to write data to a Cloudstor volume mounted inside a container

Actual behavior

  • Any attempt to write data (perhaps only binary data?) to the Cloudstor volume hangs the container indefinitely

Information

Steps to reproduce the behavior

  1. Create a brand new stack using the latest stable template
  2. SSH to any of the manager instances
  3. Create a Cloudstor volume
  4. Start a container with that Cloudstor volume mapped somewhere inside
  5. Run: echo 'test' > /path/to/vol/test_file (this should work)
  6. Run: cat /path/to/vol/test_file (this should work)
  7. Run: dd if=/dev/urandom of=/path/to/vol/test_file2 bs=1M count=10 (this will hang indefinitely)
@paullj1 paullj1 changed the title Cannot mount Cloudstor / NFS / EFS volumes in 18.09.2 Template Cannot write data to Cloudstor / NFS / EFS volumes in 18.09.2 Template Jul 12, 2019
@paullj1
Copy link
Author

paullj1 commented Jul 12, 2019

@stevekerrison

@stevekerrison
Copy link

I emailed Docker support last week asking if these 'for AWS' projects had been abandoned, or what their status was. I feel, given that 19.03 engine is out now, this is particularly timely, as for the 18.09.2 release, Docker for AWS was updated some 13 days later. I haven't had a reply of any kind yet, so have just probed the ticket again.

@IJOL
Copy link

IJOL commented Dec 31, 2019

Feeling the same pain, just after reading this, I wonder me trying to do it myself ( botstraping a regular swarm in aws ) .. using regular ubuntu instances is not the real way to go, i add that docker engine itself is very hung, i did

~ $ docker volume create --driver cloudstor:aws --opt size=20 --opt backing=shared moodle_code
moodle_code
~ $ docker volume ls
DRIVER VOLUME NAME
cloudstor:aws moodle_code
local sshkey
~ $ docker volume create --driver cloudstor:aws --opt size=20 --opt backing=relocatable --opt ebstype=gp2 p
ortainer_portainer_data
portainer_portainer_data
~ $ docker volume ls
DRIVER VOLUME NAME
cloudstor:aws moodle_code
cloudstor:aws portainer_portainer_data
local sshkey
~ $ docker volume inspect moodle_code
[
{
"CreatedAt": "0001-01-01T00:00:00Z",
"Driver": "cloudstor:aws",
"Labels": {},
"Mountpoint": "/mnt/efs/reg/moodle_code",
"Name": "moodle_code",
"Options": {
"backing": "shared",
"size": "20"
},
"Scope": "local"
}
]

I know of the bogun size option in the first volume, it was not there the first time i triied so not a problems itself, after tryin to generate a simple ubuntu docker run using the volume and tryin to upload something in it makes the whoe system hung foreever doing a volume ls for example

@IJOL
Copy link

IJOL commented Dec 31, 2019

Just to let know to everyone thats ends here using the template in https://editions-us-east-1.s3.amazonaws.com/aws/stable/18.03.0/Docker.tmpl you will get a swarm cluster where efs volumes work ok

@paullj1
Copy link
Author

paullj1 commented Dec 31, 2019

Indeed, but the 18.03 Docker engine has critical CVEs published against it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants