{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/AKS/issues/410","repository_url":"https://api.github.com/repos/Azure/AKS","labels_url":"https://api.github.com/repos/Azure/AKS/issues/410/labels{/name}","comments_url":"https://api.github.com/repos/Azure/AKS/issues/410/comments","events_url":"https://api.github.com/repos/Azure/AKS/issues/410/events","html_url":"https://github.com/Azure/AKS/issues/410","id":329547464,"node_id":"MDU6SXNzdWUzMjk1NDc0NjQ=","number":410,"title":"hostPath volumes behave erratically","user":{"login":"joaocc","id":2837860,"node_id":"MDQ6VXNlcjI4Mzc4NjA=","avatar_url":"https://avatars0.githubusercontent.com/u/2837860?v=4","gravatar_id":"","url":"https://api.github.com/users/joaocc","html_url":"https://github.com/joaocc","followers_url":"https://api.github.com/users/joaocc/followers","following_url":"https://api.github.com/users/joaocc/following{/other_user}","gists_url":"https://api.github.com/users/joaocc/gists{/gist_id}","starred_url":"https://api.github.com/users/joaocc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaocc/subscriptions","organizations_url":"https://api.github.com/users/joaocc/orgs","repos_url":"https://api.github.com/users/joaocc/repos","events_url":"https://api.github.com/users/joaocc/events{/privacy}","received_events_url":"https://api.github.com/users/joaocc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-05T17:09:21Z","updated_at":"2018-06-05T17:14:38Z","closed_at":null,"author_association":"NONE","body":"We are trying to use a hostPath volume for some persistence on redis cache. \r\nThe idea is to map it to some folder inside /mnt. Since our nodes are quite stable, this is not critical.\r\n\r\nThe first time, we added a container it worked fine.\r\nWe then changed somethings and after re-aplying the definitions, we started getting this message\r\n```\r\nMountVolume.SetUp failed for volume \"redis-data\" : hostPath type check failed: /mnt/skn-h1--redis-data/ is not a directory\r\n```\r\nbut, on the host, we see this:\r\n```\r\n$ ls -la /mnt/\r\ntotal 36\r\ndrwxr-xr-x  5 root             root  4096 Jun  5 17:03 .\r\ndrwxr-xr-x 23 root             root  4096 May 22 06:45 ..\r\n-r--r--r--  1 root             root   639 Apr 30 08:53 DATALOSS_WARNING_README.txt\r\ndrwx------  2 root             root 16384 Apr 30 08:53 lost+found\r\ndrwxr-xr-x  2 root             root  4096 Jun  5 17:00 skn-h1--redis-data\r\n\r\n$ ls -la /mnt/skn-h1--redis-data/\r\ntotal 8\r\ndrwxr-xr-x 2 root root 4096 Jun  5 17:09 .\r\ndrwxr-xr-x 5 root root 4096 Jun  5 17:03 ..\r\n-rw-r--r-- 1 root root    0 Jun  5 17:00 .i-am-here\r\n```\r\n\r\nOn a sister pod/container that is deployment the 1st time, things are working. However, once we remove a pod and kubernetes restarts another one, then we start getting the same message.\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/Azure/AKS/issues/comments/394789600","html_url":"https://github.com/Azure/AKS/issues/410#issuecomment-394789600","issue_url":"https://api.github.com/repos/Azure/AKS/issues/410","id":394789600,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDc4OTYwMA==","user":{"login":"derekperkins","id":3588778,"node_id":"MDQ6VXNlcjM1ODg3Nzg=","avatar_url":"https://avatars0.githubusercontent.com/u/3588778?v=4","gravatar_id":"","url":"https://api.github.com/users/derekperkins","html_url":"https://github.com/derekperkins","followers_url":"https://api.github.com/users/derekperkins/followers","following_url":"https://api.github.com/users/derekperkins/following{/other_user}","gists_url":"https://api.github.com/users/derekperkins/gists{/gist_id}","starred_url":"https://api.github.com/users/derekperkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekperkins/subscriptions","organizations_url":"https://api.github.com/users/derekperkins/orgs","repos_url":"https://api.github.com/users/derekperkins/repos","events_url":"https://api.github.com/users/derekperkins/events{/privacy}","received_events_url":"https://api.github.com/users/derekperkins/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T17:14:38Z","updated_at":"2018-06-05T17:14:38Z","author_association":"CONTRIBUTOR","body":"Are you still running your container as root or did the security context get changed?"}}
{"actor":{"display_login":"derekperkins"}}