# "Cloudstor" volume plugin missing

**URL:** <https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080>\
**Category:** General\
**Tags:** azure\
**Created:** [March 1, 2017, 3:46pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080 "2017-03-01T15:46:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![markvr](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@markvr](https://forums.docker.com/u/markvr)\
**Post date:** [March 1, 2017, 3:46pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/1 "2017-03-01T15:46:22Z")

</div>

I’ve just provisioned a Swarm using the beta channel, and was intending to try the “Cloudstor” as documented at [https://docs.docker.com/docker-for-azure/persistent-data-volumes/](https://docs.docker.com/docker-for-azure/persistent-data-volumes/)

However, after logging into the manager, and running: `docker plugin ls` there are no rows returned.

I’m not really sure where else to go with this, but thought I’d check on here if anyone had any ideas? Otherwise I’ll raise it as a bug with docker.

---

<div class="post-metadata">

**Author:** ![markvr](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@markvr](https://forums.docker.com/u/markvr)\
**Post date:** [March 1, 2017, 4:10pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/2 "2017-03-01T16:10:13Z")

</div>

Tried installing this manually with:  
`docker plugin install docker4x/cloudstor:azure-v1.13.1-ga-2`

But creating a service that uses it, just outputs into docker.log:  
`Failed to initialize Cloudstor: unsupported cloud platform`

---

<div class="post-metadata">

**Author:** ![markvr](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@markvr](https://forums.docker.com/u/markvr)\
**Post date:** [March 1, 2017, 4:13pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/3 "2017-03-01T16:13:15Z")

</div>

Also, I’d be interested to know how this plugin relates to the Microsoft provided one at [https://github.com/Azure/azurefile-dockervolumedriver](https://github.com/Azure/azurefile-dockervolumedriver) ? I’m assuming that Docker would prefer to use the “Cloudstor” one, but there doesn’t seem to be any documentation (or even a github page) for it, other than the brief notes on the docker-for-azure webpages.

---

<div class="post-metadata">

**Author:** ![mavenugo](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/mavenugo/32/2144_2.png) [@mavenugo](https://forums.docker.com/u/mavenugo)\
**Post date:** [March 1, 2017, 4:53pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/4 "2017-03-01T16:53:54Z")

</div>

@markvr are you trying Docker for Azure Beta ?

Cloudstor is supported only in Beta atm.

---

<div class="post-metadata">

**Author:** ![ddebroy](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@ddebroy](https://forums.docker.com/u/ddebroy)\
**Post date:** [March 1, 2017, 6:16pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/5 "2017-03-01T18:16:12Z")

</div>

@markvr Installing cloudstor manually using `docker plugin install` requires a couple of parameters that the `init` service container sets up by calling the appropriate Azure APIs. Can you provide us the logs from the `init` container: `docker logs $(docker ps -a | grep init-azure | cut -d' ' -f1)`

Cloudstor does use Azure FileStorage as the backing store but the code and packaging is slightly different from [https://github.com/Azure/azurefile-dockervolumedriver](https://github.com/Azure/azurefile-dockervolumedriver). Cloudstor is packaged as a managed plugin [[https://docs.docker.com/engine/extend/#/docker-engine-managed-plugin-system](https://docs.docker.com/engine/extend/#/docker-engine-managed-plugin-system)] while [https://github.com/Azure/azurefile-dockervolumedriver](https://github.com/Azure/azurefile-dockervolumedriver) follows the legacy plugin model. Cloudstor also hides various details from the user/admin around CIFS options, backing share etc. so that commands/scripts to create swarm services using Cloudstor backed volumes can work across all cloud platforms supported by Cloudstor without having to change anything.

---

<div class="post-metadata">

**Author:** ![markvr](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@markvr](https://forums.docker.com/u/markvr)\
**Post date:** [March 1, 2017, 8:05pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/6 "2017-03-01T20:05:45Z")

</div>

I thought I had used the beta channel, but I’ve just destroyed and recreated the resource group and it has worked this time, so I’m guessing I must have clicked the wrong button or something the first time…

I’m really keen to move our internal systems to docker on Azure, and so this is really good as it removes another barrier to entry. I was going to use the Microsoft docker volume driver, but that looks tricky to run on the “docker-for-azure” platform.

How does the name of the volume - `sharedvol1` - in the example relate to the storage that is created in Azure? At the moment it seems the storage is provided from an Azure storage account with a pretty random name, and the share name is also just a GUID. This makes it quite hard to map backend storage to frontend services - could the share name include the service name in it?

Also is it possible to create storage accounts in advance (e.g. that has a particular replication config), and specify the service to use that?

---

<div class="post-metadata">

**Author:** ![ddebroy](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@ddebroy](https://forums.docker.com/u/ddebroy)\
**Post date:** [March 1, 2017, 10:24pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/7 "2017-03-01T22:24:08Z")

</div>

@markvr I was curious if there is a specific reason you want to know how the storage accounts and file shares are getting mapped to the volumes you are creating. In our initial release, we wanted to make things as simple as possible and not have the user specify share names/storage accounts. We can add these as extra/advanced options in subsequent releases.

Today we use md5 hash of the volume names since that allows you to specify all supported docker service template based syntax as the source volume names (for example, with "."s) and not have to worry about the same also being compliant with Azure’s naming requirements for file storage (which would reject a name containing "."s).

If you are curious about the volume name to Azure Storage Account/File Storage mapping today, you can:

1. Determine the Storage Account used using the command: `docker inspect $(docker ps | grep guide-azure | cut -d' ' -f 1) | grep _INFO_STORAGE_`
2. Determine the File storage used within the above Storage Account by calculating the md5 hash of the volume name specified as `source` using the command: `echo -n sourcevol | md5sum`. For example, in case of `sharedvol1`, you will have a file share named 1413c6540b0e98bbded38d92c63357b9

---

<div class="post-metadata">

**Author:** ![ajhewett](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@ajhewett](https://forums.docker.com/u/ajhewett)\
**Post date:** [March 2, 2017, 10:44am UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/8 "2017-03-02T10:44:10Z")

</div>

I am also having problems provisioning a swarm cluster with the Cloudstor volume plugin installed. I have used the beta channel url [https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fdownload.docker.com%2Fazure%2Fedge%2FDocker.tmpl](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fdownload.docker.com%2Fazure%2Fedge%2FDocker.tmpl) but when ssh’ing into a manager node no plugins are shown with `docker plugin ls`.

Which URL did you use?  
Which data center? (I am provisioning to westeurope).

Output from `docker plugin ls` and `docker-diagnose`:

```
swarm-manager000000:~$ docker plugin ls
ID NAME DESCRIPTION ENABLED
swarm-manager000000:~$ docker-diagnose
OK hostname=swarm-manager000000 session=1488451532-KPUjWKpxH7dBx7yJLcWrtHqrLqqzlzdN
OK hostname=swarm-manager000001 session=1488451532-KPUjWKpxH7dBx7yJLcWrtHqrLqqzlzdN
OK hostname=swarm-manager000002 session=1488451532-KPUjWKpxH7dBx7yJLcWrtHqrLqqzlzdN
OK hostname=swarm-worker000000 session=1488451532-KPUjWKpxH7dBx7yJLcWrtHqrLqqzlzdN
OK hostname=swarm-worker000001 session=1488451532-KPUjWKpxH7dBx7yJLcWrtHqrLqqzlzdN
OK hostname=swarm-worker000002 session=1488451532-KPUjWKpxH7dBx7yJLcWrtHqrLqqzlzdN
Done requesting diagnostics.
Your diagnostics session ID is 1488451532-KPUjWKpxH7dBx7yJLcWrtHqrLqqzlzdN
Please provide this session ID to the maintainer debugging your issue.
swarm-manager000000:~$
```

---

<div class="post-metadata">

**Author:** ![markvr](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@markvr](https://forums.docker.com/u/markvr)\
**Post date:** [March 2, 2017, 11:09am UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/9 "2017-03-02T11:09:56Z")

</div>

@ddebroy  
I totally agree with wanting to make things as simple as possible for people to get started - that’s exactly why I started investigating docker-for-azure in the first place. Having lots of stuff done automatically behind the scenes makes me slightly nervous when planning how to move into production though. If the automation fails for any reason, it’s hard to know where to start looking. For prod systems, the deployment is only the start, most of the work is in the ongoing maintenance and updating.

This especially applies to data storage, because we need to ensure it is backed up and replicated correctly. Having the data stored somewhere in one of the many storage accounts in the resource group (which all have pretty opaque names !) makes it harder to ensure that.

The code snippets you’ve supplied help a lot - if possible for a future release I’d suggest creating storage accounts with more descriptive names (e.g. the logging account at least has the word “logs” at the end), and trying to add a sanitised version of the volume to the share name. Azure naming restrictions are a real PITA though - why they are so restrictive is beyond me. At least allow hyphens…!

It’s a shame docker4x isn’t opensource, so we can’t dig through the code as a last resort. I guess Docker have their reasons for that, but it’s a shame as it makes it harder to work out what is going on automatically behind the scenes.

---

<div class="post-metadata">

**Author:** ![markvr](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@markvr](https://forums.docker.com/u/markvr)\
**Post date:** [March 2, 2017, 11:12am UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/10 "2017-03-02T11:12:44Z")

</div>

I used uksouth and the edge template you linked to. I made a mistake the first time because I need to alter the templates to deploy into an existing VNET (we have a VPN back to our onsite DC) and hadn’t managed to save my diff between the templates correctly. Once I fixed that error it worked OK. If you check `/var/log/docker.log` there might be something useful in there.

---

<div class="post-metadata">

**Author:** ![ddebroy](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@ddebroy](https://forums.docker.com/u/ddebroy)\
**Post date:** [March 2, 2017, 10:00pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/11 "2017-03-02T22:00:27Z")

</div>

@markvr Thanks for the feedback. As you pointed out, Azure naming restrictions are quite stringent. In our next release, we will provide an ability to specify the share name as an optional parameter during volume creation so that one can easily identify the backing file storage (as long as the Azure naming restrictions are adhered to when issuing the volume/service creation commands).

Identifying the storage account hosting the file shares backing cloudstor volumes needs to happen just once per resource group creation and it will always be the storage account that has the table “swarminfo”. Will try to see if we can report this as an output.

---

<div class="post-metadata">

**Author:** ![yshay](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/yshay/32/15377_2.png) [@yshay](https://forums.docker.com/u/yshay)\
**Post date:** [March 3, 2017, 6:33pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/12 "2017-03-03T18:33:10Z")

</div>

Is it possible to install cloudstor for azure on existing “stable” version swarm?

---

<div class="post-metadata">

**Author:** ![ddebroy](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@ddebroy](https://forums.docker.com/u/ddebroy)\
**Post date:** [March 3, 2017, 9:57pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/13 "2017-03-03T21:57:26Z")

</div>

@ajhewett Thanks for sending the logs. Looks like there was a bug in the way the plugin was tagged and therefore failed to install on the latest edge. If you redeploy, you should be able to see cloudstor installed.

---

<div class="post-metadata">

**Author:** ![ddebroy](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@ddebroy](https://forums.docker.com/u/ddebroy)\
**Post date:** [March 3, 2017, 10:05pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/14 "2017-03-03T22:05:00Z")

</div>

@yshay While that is not quite supported at the moment, you can go ahead and install cloudstor with something like the below on each node of the swarm in the Azure resource group:  
`docker plugin install --alias cloudstor:azure --grant-all-permissions docker4x/cloudstor:azure-v17.03.0-ce CLOUD_PLATFORM=AZURE AZURE_STORAGE_ACCOUNT_KEY="$SA_KEY" AZURE_STORAGE_ACCOUNT="$SA_NAME"`

where SA\_NAME can be the name of one of the storage accounts already provisioned. You can set this to the output of `docker inspect $(docker ps | grep guide-azure | cut -d' ' -f 1) | grep _INFO_STORAGE_`

and SA\_KEY is the Storage Account Key for the above storage account that you can obtain from the Azure Portal/CLI.

---

<div class="post-metadata">

**Author:** ![yshay](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/yshay/32/15377_2.png) [@yshay](https://forums.docker.com/u/yshay)\
**Post date:** [March 3, 2017, 10:13pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/15 "2017-03-03T22:13:05Z")

</div>

@ddebroy, sounds simple enough, I’ll try it.  
Currently, we have an autoscale policy assigned to the worker vmss so new instances can come and go.  
Is it possible to execute the plugin installation via swarm-exec so new machines will install the addon automatically?  
Thanks for the quick response.

---

<div class="post-metadata">

**Author:** ![ddebroy](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@ddebroy](https://forums.docker.com/u/ddebroy)\
**Post date:** [March 4, 2017, 12:28am UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/16 "2017-03-04T00:28:12Z")

</div>

@yshay You should be able to use swarm-exec to invoke the plugin installation command for cloudstor discussed above on all the swarm nodes.

I am curious what policies you have set for auto-scaling and if you are using Azure’s VMSS autoscaling capability or a custom solution directly invoking Azure APIs for scaling the workers. Please note that the custom Linux distro, Moby, that we run in the nodes is not integrated with the azure agent to report metrics like CPU/Memory etc. for Azure’s native VMSS autoscaling purposes.

---

<div class="post-metadata">

**Author:** ![yshay](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/yshay/32/15377_2.png) [@yshay](https://forums.docker.com/u/yshay)\
**Post date:** [March 4, 2017, 4:01am UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/17 "2017-03-04T04:01:15Z")

</div>

Actually, we did use vmss native autoscaling (we used it with docker4zure image 1.13.1-2) and it seems to work properly against load testing and few days with low production traffic.  
We’ve tested it with policy of adding some instances when cpu\>70% in 5 min time window and removing instances when cpu\<30%.

We’ve also integrate Microsoft OMS containers solution in hope to use more fine-grained auto-scaling solution in the future as azure vmss autoscaling solution is limited to specific metrics and time windows and obviously don’t provide solution for container auto-scaling (we’re currently just setting service mode to global)

---

<div class="post-metadata">

**Author:** ![maartenvanveen](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@maartenvanveen](https://forums.docker.com/u/maartenvanveen)\
**Post date:** [March 24, 2017, 1:04pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/18 "2017-03-24T13:04:51Z")

</div>

Is there a feature set that I can consult about the (im)possibilities of the cloudstor plugin?

I noticed that one of the downsides is that I can’t set rights nor change ownership on a cloudstor volume from within a container.

I suspect this is due to the CIFS backend that is used for Azure file storage but this is merely an assumption and i might just be using a wrong approach altogether.

Can someone acknowledge this or better yet does someone have a solution or workaround.

Thanks

---

<div class="post-metadata">

**Author:** ![ddebroy](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@ddebroy](https://forums.docker.com/u/ddebroy)\
**Post date:** [March 24, 2017, 11:22pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/19 "2017-03-24T23:22:14Z")

</div>

@maartenvanveen This is indeed something not supported at the moment due to CIFS. Let’s continue this discussion @ [Changing ownership on cloudstor storage](https://forums.docker.com/t/changing-ownership-on-cloudstor-storage/30219/2)

---

<div class="post-metadata">

**Author:** ![assurehedgedoc](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@assurehedgedoc](https://forums.docker.com/u/assurehedgedoc)\
**Post date:** [July 4, 2017, 1:52pm UTC](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080/20 "2017-07-04T13:52:45Z")

</div>

On Docker for Azure 17.06, cloudstor is still not installed on creation. I used this command “docker plugin install --alias cloudstor:azure --grant-all-permissions docker4x/cloudstor:17.06.0-ce-azure1” to install it manually but I get the error “Error response from daemon: dial unix /run/docker/plugins/bb0901721330d296e19a5f33b7efb3d04e493f726f104c3e82c09890b0aba227/cloudstor.sock: connect: no such file or directory”

Any suggestions?

[Next page](https://forums.docker.com/t/cloudstor-volume-plugin-missing/29080.md?page=2)
