Docker Community Forums

Share and learn in the Docker community.

EFS support disabled in cloudstor:aws for region "eu-central-1" (Frankfurt)

swarm
dockercloud

(Pitpitpro) #1

Hi

Im’ using a Swarm deployed via DockerCloud into AWS at region “eu-central-1” (Frankfurt).
According to Amazon EFS is supported in this region .

But when EC2s are provisioned, EFS support is disabled in cloudstor plugin on every instance :

``:

> docker plugin inspect cloudstor:aws
        #...
        "Name": "cloudstor:aws",
        "PluginReference": "docker.io/docker4x/cloudstor:17.12.0-ce-aws1",
        "Settings": {
            "Args": [],
            "Devices": [],
            "Env": [
                "CLOUD_PLATFORM=AWS",
                "AZURE_STORAGE_ACCOUNT=",
                "AZURE_STORAGE_ACCOUNT_KEY=",
                "AZURE_STORAGE_ENDPOINT=",
                "EFS_ID_REGULAR=",
                "EFS_ID_MAXIO=",
                "EFS_SUPPORTED=0",
                "AWS_REGION=eu-central-1"
                #...

Therefore, I can’ mount any EFS volumes in container with cloudstor:aws

How can I change setting EFS_SUPPORTED locally on each instance ? What happen if a new EC2 instance is provisioned by autoscalling ?

Thank you


Versions :

Docker version 17.12.0-ce, build c97c6d6
docker4x/l4controller-aws:17.12.0-ce-aws1
docker4x/meta-aws:17.12.0-ce-aws1
docker4x/guide-aws:17.12.0-ce-aws1
docker4x/shell-aws:17.12.0-ce-aws1

(Pitpitpro) #2

Alright, replying to myself for history.

I had to update the Cloudformation template:

  • In AWS console, go to Cloudformation, select your stack template then click on button Actions > Create Change Set For Current Stack
  • Set parameter EnableCloudStorEfs (Create EFS prerequsities for CloudStor?) to yes
  • Then execute the change set (Take care, It terminates every EC2 instances and relaunch new ones).

Then when I ssh to an instance to show the result:

> docker plugin inspect cloudstor:aws
        #....
        "Settings": {
            "Args": [],
            "Devices": [],
            "Env": [
                "CLOUD_PLATFORM=AWS",
                "AZURE_STORAGE_ACCOUNT=",
                "AZURE_STORAGE_ACCOUNT_KEY=",
                "AZURE_STORAGE_ENDPOINT=",
                "EFS_ID_REGULAR=fs-55a85f0c",
                "EFS_ID_MAXIO=fs-52a85f0b",
                "EFS_SUPPORTED=1",
                "AWS_REGION=eu-central-1",
                #...