{"action":"created","issue":{"url":"https://api.github.com/repos/docker/for-azure/issues/64","repository_url":"https://api.github.com/repos/docker/for-azure","labels_url":"https://api.github.com/repos/docker/for-azure/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/docker/for-azure/issues/64/comments","events_url":"https://api.github.com/repos/docker/for-azure/issues/64/events","html_url":"https://github.com/docker/for-azure/issues/64","id":320060964,"node_id":"MDU6SXNzdWUzMjAwNjA5NjQ=","number":64,"title":"Cloudstor plugin not enabled in newly provisioned swarm","user":{"login":"fslDev","id":19944648,"node_id":"MDQ6VXNlcjE5OTQ0NjQ4","avatar_url":"https://avatars3.githubusercontent.com/u/19944648?v=4","gravatar_id":"","url":"https://api.github.com/users/fslDev","html_url":"https://github.com/fslDev","followers_url":"https://api.github.com/users/fslDev/followers","following_url":"https://api.github.com/users/fslDev/following{/other_user}","gists_url":"https://api.github.com/users/fslDev/gists{/gist_id}","starred_url":"https://api.github.com/users/fslDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fslDev/subscriptions","organizations_url":"https://api.github.com/users/fslDev/orgs","repos_url":"https://api.github.com/users/fslDev/repos","events_url":"https://api.github.com/users/fslDev/events{/privacy}","received_events_url":"https://api.github.com/users/fslDev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-03T20:04:48Z","updated_at":"2018-07-16T14:10:22Z","closed_at":null,"author_association":"NONE","body":"### Expected behavior\r\n\r\n```\r\nswarm-manager000000:~$ docker plugin ls\r\n\r\nID                  NAME                DESCRIPTION                       ENABLED\r\n6e2f0b697f8a        cloudstor:azure     cloud storage plugin for Docker   true\r\n```\r\n\r\n### Actual behavior\r\n\r\n```\r\nswarm-manager000000:~$ docker plugin ls\r\n\r\nID                  NAME                DESCRIPTION                       ENABLED\r\n6e2f0b697f8a        cloudstor:azure     cloud storage plugin for Docker   false\r\n\r\nswarm-manager000000:~$ docker plugin enable 6e2f0b697f8a\r\n\r\nError response from daemon: dial unix /run/docker/plugins/6e2f0b697f8a38279d0d9cca2016dfda53134c04a9481f0fc7d0698676febb98/cloudstor.sock: connect: no such file or directory\r\n\r\n```\r\n\r\n### Information\r\n\r\n  - Full output of the diagnostics from \"docker-diagnose\" ran from one of the instance\r\n\r\n```\r\nswarm-manager000000:~$ docker-diagnose\r\n\r\nOK hostname=swarm-manager000000 session=1525366729-Y8ByfB4c7yD0gZaJ59FGrwu8Y24l7SAv\r\nOK hostname=swarm-manager000001 session=1525366729-Y8ByfB4c7yD0gZaJ59FGrwu8Y24l7SAv\r\nOK hostname=swarm-manager000002 session=1525366729-Y8ByfB4c7yD0gZaJ59FGrwu8Y24l7SAv\r\nOK hostname=swarm-worker000000 session=1525366729-Y8ByfB4c7yD0gZaJ59FGrwu8Y24l7SAv\r\nOK hostname=swarm-worker000001 session=1525366729-Y8ByfB4c7yD0gZaJ59FGrwu8Y24l7SAv\r\nOK hostname=swarm-worker000002 session=1525366729-Y8ByfB4c7yD0gZaJ59FGrwu8Y24l7SAv\r\nDone requesting diagnostics.\r\nYour diagnostics session ID is 1525366729-Y8ByfB4c7yD0gZaJ59FGrwu8Y24l7SAv\r\nPlease provide this session ID to the maintainer debugging your issue.\r\n```\r\n  - More info\r\n\r\n```\r\nswarm-manager000000:~$ docker logs $(docker ps -a | grep init | cut -d' ' -f 1)\r\n\r\n## snip ##\r\nConnected to leader, NODE_ID=wdgclpg8pmxxsrn36ewp6epdt , SWARM_ID=443wkxmnjzj7os7s5nmzobxlj.\r\n  Successfully joined as a Swarm Manager.\r\nInstall cloudstor ....\r\nInstall storage plugin.\r\nNo handlers could be found for logger \"msrestazure.azure_active_directory\".\r\nTraceback (most recent call last):.\r\n  File \"/usr/bin/sakey.py\", line 9, in <module>.\r\n    from azure.storage.table import TableService, Entity.\r\nImportError: No module named table.\r\n18.03.0-ce-azure1: Pulling from docker4x/cloudstor.\r\n.\r\n.[1A.[1K.[K.8bb80f59b17d: Downloading  178.1kB/17.77MB..[1B.[1A.[1K.[K.8bb80f59b17d: Downloading  2.537MB/17.77MB..[1B.[1A.[1K.[K.8bb80f59b17d: Downloading  6.371MB/17.77MB..[1B.[1A.[1K.[K.8bb80f5\r\n9b17d: Downloading  15.33MB/17.77MB..[1B.[1A.[1K.[K.8bb80f59b17d: Downloading  17.77MB/17.77MB..[1B.[1A.[1K.[K.8bb80f59b17d: Verifying Checksum ..[1B.[1A.[1K.[K.8bb80f59b17d: Download complete ..[\r\n1BDigest: sha256:84cb62d9fd8904f69d681af000fe82d7555944a566349c651ae7b65dc36900db.\r\nStatus: Downloaded newer image for docker4x/cloudstor:18.03.0-ce-azure1.\r\nError response from daemon: dial unix /run/docker/plugins/6e2f0b697f8a38279d0d9cca2016dfda53134c04a9481f0fc7d0698676febb98/cloudstor.sock: connect: no such file or directory.\r\n```\r\n\r\n### Steps to reproduce the behavior\r\n\r\n1. Go to https://docs.docker.com/docker-for-azure/\r\n1. Create a swarm (stable channel)\r\n1. SSH into the swarm\r\n1. Issue  `docker plugin ls`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker/for-azure/issues/comments/405260314","html_url":"https://github.com/docker/for-azure/issues/64#issuecomment-405260314","issue_url":"https://api.github.com/repos/docker/for-azure/issues/64","id":405260314,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTI2MDMxNA==","user":{"login":"walmon","id":5282988,"node_id":"MDQ6VXNlcjUyODI5ODg=","avatar_url":"https://avatars2.githubusercontent.com/u/5282988?v=4","gravatar_id":"","url":"https://api.github.com/users/walmon","html_url":"https://github.com/walmon","followers_url":"https://api.github.com/users/walmon/followers","following_url":"https://api.github.com/users/walmon/following{/other_user}","gists_url":"https://api.github.com/users/walmon/gists{/gist_id}","starred_url":"https://api.github.com/users/walmon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walmon/subscriptions","organizations_url":"https://api.github.com/users/walmon/orgs","repos_url":"https://api.github.com/users/walmon/repos","events_url":"https://api.github.com/users/walmon/events{/privacy}","received_events_url":"https://api.github.com/users/walmon/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T14:10:22Z","updated_at":"2018-07-16T14:10:22Z","author_association":"NONE","body":"I found a fix here: https://github.com/docker/for-azure/issues/55#issuecomment-385687421\r\n\r\n```bash\r\ndocker plugin rm cloudstor:azure || true &&\r\n    docker ps -a | \\\r\n    grep init-azure | \\\r\n    ( read ID OTHER; docker restart $ID; docker exec $ID sed -ire 's,from azure.storage.table ,from azure.cosmosdb.table ,' /usr/bin/azureleader.py; docker exec $ID sed -ire 's,from azure.storage.table ,from azure.cosmosdb.table ,' /usr/bin/sakey.py ) &&\r\n    docker logs -f $(docker ps -a | grep init-azure | awk '{print $1}')\r\n```"}}
{"actor":{"display_login":"walmon"}}