{"action":"created","issue":{"url":"https://api.github.com/repos/contiv/volplugin/issues/60","labels_url":"https://api.github.com/repos/contiv/volplugin/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/contiv/volplugin/issues/60/comments","events_url":"https://api.github.com/repos/contiv/volplugin/issues/60/events","html_url":"https://github.com/contiv/volplugin/issues/60","id":119573724,"number":60,"title":"requestVolumeConfig with tenant/volume or tenant/name?","user":{"login":"bnoon","id":18386,"avatar_url":"https://avatars.githubusercontent.com/u/18386?v=3","gravatar_id":"","url":"https://api.github.com/users/bnoon","html_url":"https://github.com/bnoon","followers_url":"https://api.github.com/users/bnoon/followers","following_url":"https://api.github.com/users/bnoon/following{/other_user}","gists_url":"https://api.github.com/users/bnoon/gists{/gist_id}","starred_url":"https://api.github.com/users/bnoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnoon/subscriptions","organizations_url":"https://api.github.com/users/bnoon/orgs","repos_url":"https://api.github.com/users/bnoon/repos","events_url":"https://api.github.com/users/bnoon/events{/privacy}","received_events_url":"https://api.github.com/users/bnoon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-30T20:25:00Z","updated_at":"2015-11-30T22:35:56Z","closed_at":null,"body":"I am just testing this out and I get an error when creating a volume and attempting to mount it into a container.\r\n\r\nHere are some logs from volplugin:\r\n```\r\ntime=\"2015-11-30T19:15:48Z\" level=debug msg=\"Dispatching Path with {\\\"Name\\\":\\\"tenant1/foo\\\"}\" \r\ntime=\"2015-11-30T19:15:48Z\" level=info msg=\"Returning mount path to docker for volume: \\\"tenant1/foo\\\"\" \r\ntime=\"2015-11-30T19:15:48Z\" level=warning msg=\"Returning HTTP error handling plugin negotiation: Requesting tenant configuration Status was not 200: was 404: \\\"\\\"\" \r\ntime=\"2015-11-30T19:15:48Z\" level=debug msg=\"Dispatching Mount with {\\\"Name\\\":\\\"tenant1/foo\\\"}\" \r\ntime=\"2015-11-30T19:15:48Z\" level=info msg=\"Mounting volume \\\"tenant1/foo\\\"\" \r\ntime=\"2015-11-30T19:15:48Z\" level=warning msg=\"Returning HTTP error handling plugin negotiation: Could not determine tenant configuration Status was not 200: was 404: \\\"\\\"\" \r\n```\r\n\r\nThe logs from volmaster shows that the it get the requests:\r\n```\r\ntime=\"2015-11-30T19:15:48Z\" level=debug msg=\"Dispatching /request with {\\\"volume\\\":\\\"tenant1/foo\\\",\\\"tenant\\\":\\\"tenant1\\\"}\" \r\ntime=\"2015-11-30T19:15:48Z\" level=debug msg=\"Dispatching /request with {\\\"volume\\\":\\\"foo\\\",\\\"tenant\\\":\\\"tenant1\\\"}\" \r\n```\r\nbut the `volume` is different.\r\n\r\nshould https://github.com/contiv/volplugin/blob/master/volplugin/handlers.go#L132\r\n\r\nbe `volConfig, err := requestVolumeConfig(master, uc.Tenant, uc.Name)`?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/contiv/volplugin/issues/comments/160783756","html_url":"https://github.com/contiv/volplugin/issues/60#issuecomment-160783756","issue_url":"https://api.github.com/repos/contiv/volplugin/issues/60","id":160783756,"user":{"login":"bnoon","id":18386,"avatar_url":"https://avatars.githubusercontent.com/u/18386?v=3","gravatar_id":"","url":"https://api.github.com/users/bnoon","html_url":"https://github.com/bnoon","followers_url":"https://api.github.com/users/bnoon/followers","following_url":"https://api.github.com/users/bnoon/following{/other_user}","gists_url":"https://api.github.com/users/bnoon/gists{/gist_id}","starred_url":"https://api.github.com/users/bnoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnoon/subscriptions","organizations_url":"https://api.github.com/users/bnoon/orgs","repos_url":"https://api.github.com/users/bnoon/repos","events_url":"https://api.github.com/users/bnoon/events{/privacy}","received_events_url":"https://api.github.com/users/bnoon/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T22:35:56Z","updated_at":"2015-11-30T22:35:56Z","body":"Ok. Thanks.\r\n\r\nAs an additional point, I tried to `docker volume create -d volplugin --name=tenant1/test` and got the following:\r\n\r\n```\r\nError response from daemon: Plugin Error: VolumeDriver.Create, {\"Mountpoint\":\"\",\"Err\":\"Could not determine tenant configuration Status was not 200: was 500: \\\"Creating volume Error creating filesystem on /dev/rbd1 with cmd: \\\\\\\"mkfs.ext4 -m0 %\\\\\\\". Error: exit status 1\\\"\"}\r\n```"}}