{"action":"created","issue":{"url":"https://api.github.com/repos/juju/amulet/issues/94","labels_url":"https://api.github.com/repos/juju/amulet/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/juju/amulet/issues/94/comments","events_url":"https://api.github.com/repos/juju/amulet/issues/94/events","html_url":"https://github.com/juju/amulet/issues/94","id":107548596,"number":94,"title":"file_stat broken by the switch from juju run to juju ssh","user":{"login":"ryan-beisner","id":5483417,"avatar_url":"https://avatars.githubusercontent.com/u/5483417?v=3","gravatar_id":"","url":"https://api.github.com/users/ryan-beisner","html_url":"https://github.com/ryan-beisner","followers_url":"https://api.github.com/users/ryan-beisner/followers","following_url":"https://api.github.com/users/ryan-beisner/following{/other_user}","gists_url":"https://api.github.com/users/ryan-beisner/gists{/gist_id}","starred_url":"https://api.github.com/users/ryan-beisner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryan-beisner/subscriptions","organizations_url":"https://api.github.com/users/ryan-beisner/orgs","repos_url":"https://api.github.com/users/ryan-beisner/repos","events_url":"https://api.github.com/users/ryan-beisner/events{/privacy}","received_events_url":"https://api.github.com/users/ryan-beisner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-21T16:23:33Z","updated_at":"2015-09-21T16:27:04Z","closed_at":null,"body":"Moving away from juju run to juju ssh sentry.py has broken the scenario where sentry_unit.file_stat(filename) is used to get file or dir attrs for files not owned by the ubuntu user.\r\n\r\nUltimately, filesystem_data.py gets:\r\nOSError: [Errno 13] Permission denied: '/etc/neutron/neutron.conf'\r\n\r\nBecause the dir and file are root-owned.\r\n\r\nThe impact is that *all* of the OpenStack Charm amulet tests are failing, unable to stat the files as they had been able to prior to this change.\r\n\r\nhttps://github.com/juju/amulet/commit/b6da1c3c98622ee9a28e5da21d3032dd8de0471e\r\n"},"comment":{"url":"https://api.github.com/repos/juju/amulet/issues/comments/142034582","html_url":"https://github.com/juju/amulet/issues/94#issuecomment-142034582","issue_url":"https://api.github.com/repos/juju/amulet/issues/94","id":142034582,"user":{"login":"ryan-beisner","id":5483417,"avatar_url":"https://avatars.githubusercontent.com/u/5483417?v=3","gravatar_id":"","url":"https://api.github.com/users/ryan-beisner","html_url":"https://github.com/ryan-beisner","followers_url":"https://api.github.com/users/ryan-beisner/followers","following_url":"https://api.github.com/users/ryan-beisner/following{/other_user}","gists_url":"https://api.github.com/users/ryan-beisner/gists{/gist_id}","starred_url":"https://api.github.com/users/ryan-beisner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryan-beisner/subscriptions","organizations_url":"https://api.github.com/users/ryan-beisner/orgs","repos_url":"https://api.github.com/users/ryan-beisner/repos","events_url":"https://api.github.com/users/ryan-beisner/events{/privacy}","received_events_url":"https://api.github.com/users/ryan-beisner/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T16:27:04Z","updated_at":"2015-09-21T16:27:04Z","body":"The cause of this is that `juju run` does things as root on the unit, whereas `juju ssh` does things as ubuntu on the unit."}}