{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes-incubator/external-storage/issues/462","repository_url":"https://api.github.com/repos/kubernetes-incubator/external-storage","labels_url":"https://api.github.com/repos/kubernetes-incubator/external-storage/issues/462/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes-incubator/external-storage/issues/462/comments","events_url":"https://api.github.com/repos/kubernetes-incubator/external-storage/issues/462/events","html_url":"https://github.com/kubernetes-incubator/external-storage/issues/462","id":274352078,"number":462,"title":"[local-volume] Bootstrapper uses default path for PV local path","user":{"login":"kokhang","id":1672672,"avatar_url":"https://avatars2.githubusercontent.com/u/1672672?v=4","gravatar_id":"","url":"https://api.github.com/users/kokhang","html_url":"https://github.com/kokhang","followers_url":"https://api.github.com/users/kokhang/followers","following_url":"https://api.github.com/users/kokhang/following{/other_user}","gists_url":"https://api.github.com/users/kokhang/gists{/gist_id}","starred_url":"https://api.github.com/users/kokhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kokhang/subscriptions","organizations_url":"https://api.github.com/users/kokhang/orgs","repos_url":"https://api.github.com/users/kokhang/repos","events_url":"https://api.github.com/users/kokhang/events{/privacy}","received_events_url":"https://api.github.com/users/kokhang/received_events","type":"User","site_admin":false},"labels":[{"id":612557102,"url":"https://api.github.com/repos/kubernetes-incubator/external-storage/labels/area/local-volume","name":"area/local-volume","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":{"login":"msau42","id":24448061,"avatar_url":"https://avatars3.githubusercontent.com/u/24448061?v=4","gravatar_id":"","url":"https://api.github.com/users/msau42","html_url":"https://github.com/msau42","followers_url":"https://api.github.com/users/msau42/followers","following_url":"https://api.github.com/users/msau42/following{/other_user}","gists_url":"https://api.github.com/users/msau42/gists{/gist_id}","starred_url":"https://api.github.com/users/msau42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msau42/subscriptions","organizations_url":"https://api.github.com/users/msau42/orgs","repos_url":"https://api.github.com/users/msau42/repos","events_url":"https://api.github.com/users/msau42/events{/privacy}","received_events_url":"https://api.github.com/users/msau42/received_events","type":"User","site_admin":false},"assignees":[{"login":"msau42","id":24448061,"avatar_url":"https://avatars3.githubusercontent.com/u/24448061?v=4","gravatar_id":"","url":"https://api.github.com/users/msau42","html_url":"https://github.com/msau42","followers_url":"https://api.github.com/users/msau42/followers","following_url":"https://api.github.com/users/msau42/following{/other_user}","gists_url":"https://api.github.com/users/msau42/gists{/gist_id}","starred_url":"https://api.github.com/users/msau42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msau42/subscriptions","organizations_url":"https://api.github.com/users/msau42/orgs","repos_url":"https://api.github.com/users/msau42/repos","events_url":"https://api.github.com/users/msau42/events{/privacy}","received_events_url":"https://api.github.com/users/msau42/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-11-16T00:20:03Z","updated_at":"2017-11-16T01:02:12Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I have setup three directories in the node to be used as local storage. The directories are `/mnt/sda1/disks/vol<n>`. But when i launch the bootstrapper, it detects the directories and creates a PV for each. But it incorrectly assigns the local path to be `/mnt/disks/vol<n>`. For some reason it is not using the path `/mnt/sda1/disks/vol<n>`.\r\n\r\nThis is seen in the provisioner logs:\r\n```\r\nI1115 23:40:23.180737       1 discovery.go:141] Found new volume at host path \"/mnt/disks/vol1\" with capacity 1539346432, creating Local PV \"local-pv-d0592836\"\r\nI1115 23:40:23.185020       1 discovery.go:156] Created PV \"local-pv-d0592836\" for volume at \"/mnt/disks/vol1\"\r\nI1115 23:40:23.185088       1 cache.go:55] Added pv \"local-pv-d0592836\" to cache\r\n```\r\n\r\nThis is what the local-volume configmaps looks like\r\n```\r\n$ kubectl -n kube-system get configmaps local-volume-config -o yaml\r\napiVersion: v1\r\ndata:\r\n  storageClassMap: |\r\n    local-storage:\r\n      hostDir: \"/mnt/sda1/disks\"\r\n      mountDir: \"/local-disks\"\r\nkind: ConfigMap\r\nmetadata:\r\n  creationTimestamp: 2017-11-15T23:40:02Z\r\n  name: local-volume-config\r\n  namespace: kube-system\r\n  resourceVersion: \"495\"\r\n  selfLink: /api/v1/namespaces/kube-system/configmaps/local-volume-config\r\n  uid: 4d067a97-ca5e-11e7-9c4a-080027f80648\r\n```\r\n\r\nI am using minikube."},"comment":{"url":"https://api.github.com/repos/kubernetes-incubator/external-storage/issues/comments/344781162","html_url":"https://github.com/kubernetes-incubator/external-storage/issues/462#issuecomment-344781162","issue_url":"https://api.github.com/repos/kubernetes-incubator/external-storage/issues/462","id":344781162,"user":{"login":"kokhang","id":1672672,"avatar_url":"https://avatars2.githubusercontent.com/u/1672672?v=4","gravatar_id":"","url":"https://api.github.com/users/kokhang","html_url":"https://github.com/kokhang","followers_url":"https://api.github.com/users/kokhang/followers","following_url":"https://api.github.com/users/kokhang/following{/other_user}","gists_url":"https://api.github.com/users/kokhang/gists{/gist_id}","starred_url":"https://api.github.com/users/kokhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kokhang/subscriptions","organizations_url":"https://api.github.com/users/kokhang/orgs","repos_url":"https://api.github.com/users/kokhang/repos","events_url":"https://api.github.com/users/kokhang/events{/privacy}","received_events_url":"https://api.github.com/users/kokhang/received_events","type":"User","site_admin":false},"created_at":"2017-11-16T01:02:12Z","updated_at":"2017-11-16T01:02:12Z","author_association":"CONTRIBUTOR","body":"Ah OK ill try it with the json config map. Do you think #463 is also related to config map data not being correct? Thanks @msau42 "}}
{"actor":{"display_login":"kokhang"}}