{"action":"created","issue":{"url":"https://api.github.com/repos/SUSE/DeepSea/issues/1214","repository_url":"https://api.github.com/repos/SUSE/DeepSea","labels_url":"https://api.github.com/repos/SUSE/DeepSea/issues/1214/labels{/name}","comments_url":"https://api.github.com/repos/SUSE/DeepSea/issues/1214/comments","events_url":"https://api.github.com/repos/SUSE/DeepSea/issues/1214/events","html_url":"https://github.com/SUSE/DeepSea/pull/1214","id":338920716,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5NzMzMDA1","number":1214,"title":"[backport][ses5] Invoke `find` to fix salt job cache permissions","user":{"login":"jschmid1","id":6840312,"node_id":"MDQ6VXNlcjY4NDAzMTI=","avatar_url":"https://avatars0.githubusercontent.com/u/6840312?v=4","gravatar_id":"","url":"https://api.github.com/users/jschmid1","html_url":"https://github.com/jschmid1","followers_url":"https://api.github.com/users/jschmid1/followers","following_url":"https://api.github.com/users/jschmid1/following{/other_user}","gists_url":"https://api.github.com/users/jschmid1/gists{/gist_id}","starred_url":"https://api.github.com/users/jschmid1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jschmid1/subscriptions","organizations_url":"https://api.github.com/users/jschmid1/orgs","repos_url":"https://api.github.com/users/jschmid1/repos","events_url":"https://api.github.com/users/jschmid1/events{/privacy}","received_events_url":"https://api.github.com/users/jschmid1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jschmid1","id":6840312,"node_id":"MDQ6VXNlcjY4NDAzMTI=","avatar_url":"https://avatars0.githubusercontent.com/u/6840312?v=4","gravatar_id":"","url":"https://api.github.com/users/jschmid1","html_url":"https://github.com/jschmid1","followers_url":"https://api.github.com/users/jschmid1/followers","following_url":"https://api.github.com/users/jschmid1/following{/other_user}","gists_url":"https://api.github.com/users/jschmid1/gists{/gist_id}","starred_url":"https://api.github.com/users/jschmid1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jschmid1/subscriptions","organizations_url":"https://api.github.com/users/jschmid1/orgs","repos_url":"https://api.github.com/users/jschmid1/repos","events_url":"https://api.github.com/users/jschmid1/events{/privacy}","received_events_url":"https://api.github.com/users/jschmid1/received_events","type":"User","site_admin":false},"assignees":[{"login":"jschmid1","id":6840312,"node_id":"MDQ6VXNlcjY4NDAzMTI=","avatar_url":"https://avatars0.githubusercontent.com/u/6840312?v=4","gravatar_id":"","url":"https://api.github.com/users/jschmid1","html_url":"https://github.com/jschmid1","followers_url":"https://api.github.com/users/jschmid1/followers","following_url":"https://api.github.com/users/jschmid1/following{/other_user}","gists_url":"https://api.github.com/users/jschmid1/gists{/gist_id}","starred_url":"https://api.github.com/users/jschmid1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jschmid1/subscriptions","organizations_url":"https://api.github.com/users/jschmid1/orgs","repos_url":"https://api.github.com/users/jschmid1/repos","events_url":"https://api.github.com/users/jschmid1/events{/privacy}","received_events_url":"https://api.github.com/users/jschmid1/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/SUSE/DeepSea/milestones/4","html_url":"https://github.com/SUSE/DeepSea/milestone/4","labels_url":"https://api.github.com/repos/SUSE/DeepSea/milestones/4/labels","id":3478201,"node_id":"MDk6TWlsZXN0b25lMzQ3ODIwMQ==","number":4,"title":"0.8.6","description":"","creator":{"login":"jschmid1","id":6840312,"node_id":"MDQ6VXNlcjY4NDAzMTI=","avatar_url":"https://avatars0.githubusercontent.com/u/6840312?v=4","gravatar_id":"","url":"https://api.github.com/users/jschmid1","html_url":"https://github.com/jschmid1","followers_url":"https://api.github.com/users/jschmid1/followers","following_url":"https://api.github.com/users/jschmid1/following{/other_user}","gists_url":"https://api.github.com/users/jschmid1/gists{/gist_id}","starred_url":"https://api.github.com/users/jschmid1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jschmid1/subscriptions","organizations_url":"https://api.github.com/users/jschmid1/orgs","repos_url":"https://api.github.com/users/jschmid1/repos","events_url":"https://api.github.com/users/jschmid1/events{/privacy}","received_events_url":"https://api.github.com/users/jschmid1/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":4,"state":"open","created_at":"2018-07-06T12:29:00Z","updated_at":"2018-08-02T14:48:13Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-07-06T12:28:45Z","updated_at":"2018-08-07T12:32:38Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/SUSE/DeepSea/pulls/1214","html_url":"https://github.com/SUSE/DeepSea/pull/1214","diff_url":"https://github.com/SUSE/DeepSea/pull/1214.diff","patch_url":"https://github.com/SUSE/DeepSea/pull/1214.patch"},"body":"```\r\n\r\nWhen there's a lot of files in the salt job cache, using salt's\r\nbuiltin file.directory construct is remarkably slow.  Let's start\r\nwith about 10,000 files in the cache, all correctly owned:\r\n\r\n  # find /var/cache/salt/master/jobs | wc -l\r\n  9920\r\n  # find /var/cache/salt/master/jobs -user root | wc -l\r\n  0\r\n\r\nThen, run ceph.stage.2:\r\n\r\n  # salt-run state.orch ceph.stage.2\r\n  [...]\r\n  Summary for admin.ceph_master\r\n  -------------\r\n  Succeeded: 14 (changed=10)\r\n  Failed:     0\r\n  -------------\r\n  Total states run:     14\r\n  Total run time:  409.141 s\r\n\r\nThat's 409 seconds, or a bit under seven minutes.  Now, with this\r\nchange applied, which instead invokes `find ... -exec chown ...`,\r\nit only takes a minute twenty, which is quite a bit better:\r\n\r\n  # salt-run state.orch ceph.stage.2\r\n  [...]\r\n  Summary for admin.ceph_master\r\n  -------------\r\n  Succeeded: 14 (changed=10)\r\n  Failed:     0\r\n  -------------\r\n  Total states run:     14\r\n  Total run time:   82.443 s\r\n\r\nFixes: https://github.com/SUSE/DeepSea/issues/1131\r\nSigned-off-by: Tim Serong <tserong@suse.com>\r\n```\r\nbackport of #1175 \r\n\r\n-----------------\r\n\r\n[Please find more information on how to run integration tests here](https://github.com/SUSE/DeepSea/wiki/Integration-tests)\r\n"},"comment":{"url":"https://api.github.com/repos/SUSE/DeepSea/issues/comments/411039837","html_url":"https://github.com/SUSE/DeepSea/pull/1214#issuecomment-411039837","issue_url":"https://api.github.com/repos/SUSE/DeepSea/issues/1214","id":411039837,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTAzOTgzNw==","user":{"login":"jschmid1","id":6840312,"node_id":"MDQ6VXNlcjY4NDAzMTI=","avatar_url":"https://avatars0.githubusercontent.com/u/6840312?v=4","gravatar_id":"","url":"https://api.github.com/users/jschmid1","html_url":"https://github.com/jschmid1","followers_url":"https://api.github.com/users/jschmid1/followers","following_url":"https://api.github.com/users/jschmid1/following{/other_user}","gists_url":"https://api.github.com/users/jschmid1/gists{/gist_id}","starred_url":"https://api.github.com/users/jschmid1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jschmid1/subscriptions","organizations_url":"https://api.github.com/users/jschmid1/orgs","repos_url":"https://api.github.com/users/jschmid1/repos","events_url":"https://api.github.com/users/jschmid1/events{/privacy}","received_events_url":"https://api.github.com/users/jschmid1/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T12:32:38Z","updated_at":"2018-08-07T12:32:38Z","author_association":"MEMBER","body":"retest this please"}}
{"actor":{"display_login":"jschmid1"}}