{"action":"created","issue":{"url":"https://api.github.com/repos/Dynatrace/dynatrace-oneagent-operator/issues/46","repository_url":"https://api.github.com/repos/Dynatrace/dynatrace-oneagent-operator","labels_url":"https://api.github.com/repos/Dynatrace/dynatrace-oneagent-operator/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/Dynatrace/dynatrace-oneagent-operator/issues/46/comments","events_url":"https://api.github.com/repos/Dynatrace/dynatrace-oneagent-operator/issues/46/events","html_url":"https://github.com/Dynatrace/dynatrace-oneagent-operator/issues/46","id":356715481,"node_id":"MDU6SXNzdWUzNTY3MTU0ODE=","number":46,"title":"Agent can't change permissions of volume mounts, fails to start","user":{"login":"mitom","id":3754515,"node_id":"MDQ6VXNlcjM3NTQ1MTU=","avatar_url":"https://avatars0.githubusercontent.com/u/3754515?v=4","gravatar_id":"","url":"https://api.github.com/users/mitom","html_url":"https://github.com/mitom","followers_url":"https://api.github.com/users/mitom/followers","following_url":"https://api.github.com/users/mitom/following{/other_user}","gists_url":"https://api.github.com/users/mitom/gists{/gist_id}","starred_url":"https://api.github.com/users/mitom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitom/subscriptions","organizations_url":"https://api.github.com/users/mitom/orgs","repos_url":"https://api.github.com/users/mitom/repos","events_url":"https://api.github.com/users/mitom/events{/privacy}","received_events_url":"https://api.github.com/users/mitom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-04T09:00:19Z","updated_at":"2018-09-04T15:27:21Z","closed_at":"2018-09-04T15:27:21Z","author_association":"NONE","body":"Hi,\r\n\r\nI've followed the guide to deploy the operator which worked fine. Trying to deploy the agent fails though, due to failing to update permissions on the root of the host:\r\n\r\n```\r\n➜  kubernetes git:(master) ✗ kubectl get pods --namespace dynatrace\r\nNAME                                           READY     STATUS             RESTARTS   AGE\r\ndynatrace-oneagent-operator-745c9d4779-l27xc   1/1       Running            0          22m\r\noneagent-7g9n9                                 0/1       CrashLoopBackOff   6          8m\r\noneagent-wkj8p                                 0/1       CrashLoopBackOff   6          8m\r\noneagent-x2g5p                                 0/1       CrashLoopBackOff   6          8m\r\n➜  kubernetes git:(master) ✗ kubectl logs oneagent-7g9n9 --namespace dynatrace\r\n08:51:51 Warning: Cannot change permisions of /mnt/host_root/opt directory to u+rwx,g+rx,o+rx.\r\nchmod: /mnt/host_root/opt: Read-only file system\r\nmkdir: can't create directory '/mnt/host_root/opt/dynatrace': Read-only file system\r\n08:51:51 Warning: Cannot create /mnt/host_root/opt/dynatrace directory.\r\nmkdir: can't create directory '/mnt/host_root/opt/dynatrace/': Read-only file system\r\n08:51:51 Warning: Cannot create /mnt/host_root/opt/dynatrace/oneagent directory.\r\nmkdir: can't create directory '/mnt/host_root/opt/dynatrace/': Read-only file system\r\nmkdir: can't create directory '/mnt/host_root/opt/dynatrace/': Read-only file system\r\n08:51:51 Warning: Cannot create /mnt/host_root/opt/dynatrace/oneagent/log directory.\r\n08:51:51 Warning: Cannot create /mnt/host_root/opt/dynatrace/oneagent/log/process directory.\r\n08:51:51 Warning: Cannot create /mnt/host_root/opt/dynatrace/oneagent/log/installer directory.\r\nmkdir: can't create directory '/mnt/host_root/opt/dynatrace/': Read-only file system\r\nmkdir: can't create directory '/mnt/host_root/opt/dynatrace/': Read-only file system\r\n08:51:51 Warning: Cannot create /mnt/host_root/opt/dynatrace/oneagent/log/os directory.\r\nmkdir: can't create directory '/mnt/host_root/opt/dynatrace/': Read-only file system\r\n08:51:51 Warning: Cannot create /mnt/host_root/opt/dynatrace/oneagent/log/network directory.\r\nmkdir: can't create directory '/mnt/host_root/opt/dynatrace/': Read-only file system\r\n08:51:51 Warning: Cannot create /mnt/host_root/opt/dynatrace/oneagent/log/plugin directory.\r\nmkdir: can't create directory '/mnt/host_root/opt/dynatrace/': Read-only file system\r\n08:51:51 Warning: Cannot create /mnt/host_root/opt/dynatrace/oneagent/log/loganalytics directory.\r\ntouch: /mnt/host_root/opt/dynatrace/oneagent/log/installer/installation_docker_25021.log: No such file or directory\r\n08:51:51 Started agent deployment as a Docker container, PID 25021.\r\n/tmp/entrypoint.sh: line 130: /mnt/host_root/opt/dynatrace/oneagent/log/installer/installation_docker_25021.log: No such file or directory\r\n08:51:51 Downloading agent to /tmp/Dynatrace-OneAgent-Linux.sh via https://pat91727.live.dynatrace.com/api/v1/deployment/installer/agent/unix/default/latest?Api-Token=***&arch=x86&flavor=default\r\n08:51:56 Download complete\r\nmkdir: can't create directory '/mnt/host_root/opt/dynatrace/': Read-only file system\r\n08:51:56 Warning: Cannot create /mnt/host_root/opt/dynatrace/oneagent directory.\r\nmv: can't rename '/tmp/Dynatrace-OneAgent-Linux.sh': No such file or directory\r\n```\r\n\r\nThe cluster is a fresh and new on GKE:\r\n```\r\n➜  kubernetes git:(master) ✗ kubectl version\r\nClient Version: version.Info{Major:\"1\", Minor:\"11\", GitVersion:\"v1.11.1\", GitCommit:\"b1b29978270dc22fecc592ac55d903350454310a\", GitTreeState:\"clean\", BuildDate:\"2018-07-18T11:37:06Z\", GoVersion:\"go1.10.3\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"9+\", GitVersion:\"v1.9.7-gke.6\", GitCommit:\"9b635efce81582e1da13b35a7aa539c0ccb32987\", GitTreeState:\"clean\", BuildDate:\"2018-08-16T21:33:47Z\", GoVersion:\"go1.9.3b4\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n\r\n(Your instructions could/should also include a note that on GKE the user needs to create a role binding to grant him/herself a cluster-admin before he/she could create the role necessary for the operator, but this is unrelated.)"},"comment":{"url":"https://api.github.com/repos/Dynatrace/dynatrace-oneagent-operator/issues/comments/418411158","html_url":"https://github.com/Dynatrace/dynatrace-oneagent-operator/issues/46#issuecomment-418411158","issue_url":"https://api.github.com/repos/Dynatrace/dynatrace-oneagent-operator/issues/46","id":418411158,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODQxMTE1OA==","user":{"login":"mitom","id":3754515,"node_id":"MDQ6VXNlcjM3NTQ1MTU=","avatar_url":"https://avatars0.githubusercontent.com/u/3754515?v=4","gravatar_id":"","url":"https://api.github.com/users/mitom","html_url":"https://github.com/mitom","followers_url":"https://api.github.com/users/mitom/followers","following_url":"https://api.github.com/users/mitom/following{/other_user}","gists_url":"https://api.github.com/users/mitom/gists{/gist_id}","starred_url":"https://api.github.com/users/mitom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitom/subscriptions","organizations_url":"https://api.github.com/users/mitom/orgs","repos_url":"https://api.github.com/users/mitom/repos","events_url":"https://api.github.com/users/mitom/events{/privacy}","received_events_url":"https://api.github.com/users/mitom/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T15:27:21Z","updated_at":"2018-09-04T15:27:21Z","author_association":"NONE","body":"I'm gonna close this off as the EAP version doesn't seem to have this issue."}}
{"actor":{"display_login":"mitom"}}