{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/comments/55625497","id":55625497,"diff_hunk":"@@ -18,6 +18,7 @@\n \n def YumInstall(vm):\n   \"\"\"Installs the mongodb package on the VM.\"\"\"\n+  vm.RemoteCommand('sudo setenforce 0')","path":"perfkitbenchmarker/linux_packages/mongodb_server.py","position":4,"original_position":4,"commit_id":"1301baeef583653ea9615eee50930fcb6046ca03","original_commit_id":"1301baeef583653ea9615eee50930fcb6046ca03","user":{"login":"akrzos","id":6154223,"avatar_url":"https://avatars.githubusercontent.com/u/6154223?v=3","gravatar_id":"","url":"https://api.github.com/users/akrzos","html_url":"https://github.com/akrzos","followers_url":"https://api.github.com/users/akrzos/followers","following_url":"https://api.github.com/users/akrzos/following{/other_user}","gists_url":"https://api.github.com/users/akrzos/gists{/gist_id}","starred_url":"https://api.github.com/users/akrzos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akrzos/subscriptions","organizations_url":"https://api.github.com/users/akrzos/orgs","repos_url":"https://api.github.com/users/akrzos/repos","events_url":"https://api.github.com/users/akrzos/events{/privacy}","received_events_url":"https://api.github.com/users/akrzos/received_events","type":"User","site_admin":false},"body":"> My Question... Can you turn this back on after the install and does MongoDB continue to run properly?\r\n\r\nSELinux prevents the starting of MongoDB and not the installation.  I am unsure at this time if I set SELinux back to enforcing after successfully starting MongoDB if it will continue to run.  I can grab the audit logs and see exactly what is blocked from the SELinux side to get that resolved the right way.","created_at":"2016-03-10T02:16:21Z","updated_at":"2016-03-10T02:16:21Z","html_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/867#discussion_r55625497","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/867","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/comments/55625497"},"html":{"href":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/867#discussion_r55625497"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/867"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/867","id":62245154,"html_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/867","diff_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/867.diff","patch_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/867.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/867","number":867,"state":"open","locked":false,"title":"Turn off selinux for mongodb.","user":{"login":"akrzos","id":6154223,"avatar_url":"https://avatars.githubusercontent.com/u/6154223?v=3","gravatar_id":"","url":"https://api.github.com/users/akrzos","html_url":"https://github.com/akrzos","followers_url":"https://api.github.com/users/akrzos/followers","following_url":"https://api.github.com/users/akrzos/following{/other_user}","gists_url":"https://api.github.com/users/akrzos/gists{/gist_id}","starred_url":"https://api.github.com/users/akrzos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akrzos/subscriptions","organizations_url":"https://api.github.com/users/akrzos/orgs","repos_url":"https://api.github.com/users/akrzos/repos","events_url":"https://api.github.com/users/akrzos/events{/privacy}","received_events_url":"https://api.github.com/users/akrzos/received_events","type":"User","site_admin":false},"body":"With selinux on, mongodb does not start:\r\n\r\n```\r\n2016-03-09 10:22:14,276 browbeat Thread-19 mongodb_ycsb(1/1) INFO     Ran ssh -A -p 22 cloud-user@x.x.x.x -2 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PreferredAuthentications=publickey -o PasswordAuthentication=no -o ConnectTimeout=5 -o GSSAPIAuthentication=no -o ServerAliveInterval=30 -o ServerAliveCountMax=10 -i /tmp/perfkitbenchmarker/run_browbeat/perfkitbenchmarker_keyfile sudo service mongod restart. Got return code (1).\r\nSTDOUT: Restarting mongod (via systemctl):  [FAILED]\r\n\r\nSTDERR: Warning: Permanently added 'x.x.x.x' (ECDSA) to the list of known hosts.\r\nJob for mongod.service failed because the control process exited with error code. See \"systemctl status mongod.service\" and \"journalctl -xe\" for details.\r\n\r\n2016-03-09 10:22:14,282 browbeat MainThread mongodb_ycsb(1/1) ERROR    Exception occurred while calling <lambda>(<functools.partial object at 0x335d998>):\r\nTraceback (most recent call last):\r\n  File \"/home/stack/perfkit-venv/PerfKitBenchmarker/perfkitbenchmarker/vm_util.py\", line 245, in _ExecuteThreadCall\r\n    queue.put(ThreadCallResult(call_id, target(*args, **kwargs), None))\r\n  File \"/home/stack/perfkit-venv/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/mongodb_ycsb_benchmark.py\", line 98, in <lambda>\r\n    vm_util.RunThreaded((lambda f: f()), server_partials + client_partials)\r\n  File \"/home/stack/perfkit-venv/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/mongodb_ycsb_benchmark.py\", line 73, in _PrepareServer\r\n    vm.GetServiceName('mongodb_server'))\r\n  File \"/home/stack/perfkit-venv/PerfKitBenchmarker/perfkitbenchmarker/linux_virtual_machine.py\", line 313, in RemoteCommand\r\n    suppress_warning, timeout)\r\n  File \"/home/stack/perfkit-venv/PerfKitBenchmarker/perfkitbenchmarker/linux_virtual_machine.py\", line 374, in RemoteHostCommand\r\n    raise errors.VirtualMachine.RemoteCommandError(error_text)\r\nRemoteCommandError: Got non-zero return code (1) executing sudo service mongod restart\r\n```\r\n\r\nI would prefer to not to have to turn off selinux, however to get this benchmark running in the mean time on centos and rhel based virtual machines we can turn off selinux on the machine that contains mongodb.","created_at":"2016-03-09T15:28:03Z","updated_at":"2016-03-10T02:16:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"63bc2ce0f0f76137bd64e3e5dd017f7bda93835a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/867/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/867/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/867/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/statuses/1301baeef583653ea9615eee50930fcb6046ca03","head":{"label":"akrzos:mongodb_selinux","ref":"mongodb_selinux","sha":"1301baeef583653ea9615eee50930fcb6046ca03","user":{"login":"akrzos","id":6154223,"avatar_url":"https://avatars.githubusercontent.com/u/6154223?v=3","gravatar_id":"","url":"https://api.github.com/users/akrzos","html_url":"https://github.com/akrzos","followers_url":"https://api.github.com/users/akrzos/followers","following_url":"https://api.github.com/users/akrzos/following{/other_user}","gists_url":"https://api.github.com/users/akrzos/gists{/gist_id}","starred_url":"https://api.github.com/users/akrzos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akrzos/subscriptions","organizations_url":"https://api.github.com/users/akrzos/orgs","repos_url":"https://api.github.com/users/akrzos/repos","events_url":"https://api.github.com/users/akrzos/events{/privacy}","received_events_url":"https://api.github.com/users/akrzos/received_events","type":"User","site_admin":false},"repo":{"id":53012590,"name":"PerfKitBenchmarker","full_name":"akrzos/PerfKitBenchmarker","owner":{"login":"akrzos","id":6154223,"avatar_url":"https://avatars.githubusercontent.com/u/6154223?v=3","gravatar_id":"","url":"https://api.github.com/users/akrzos","html_url":"https://github.com/akrzos","followers_url":"https://api.github.com/users/akrzos/followers","following_url":"https://api.github.com/users/akrzos/following{/other_user}","gists_url":"https://api.github.com/users/akrzos/gists{/gist_id}","starred_url":"https://api.github.com/users/akrzos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akrzos/subscriptions","organizations_url":"https://api.github.com/users/akrzos/orgs","repos_url":"https://api.github.com/users/akrzos/repos","events_url":"https://api.github.com/users/akrzos/events{/privacy}","received_events_url":"https://api.github.com/users/akrzos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akrzos/PerfKitBenchmarker","description":"Perfkit Benchmarker contains set of benchmarks to measure and compare cloud offerings. The benchmarks use defaults to reflect what most users will see. PerfKit Benchmarker is licensed under the Apache 2 license terms. Please make sure to read, understand and agree to the terms of the LICENSE and CONTRIBUTING files before proceeding.","fork":true,"url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker","forks_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/forks","keys_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/teams","hooks_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/hooks","issue_events_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/issues/events{/number}","events_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/events","assignees_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/assignees{/user}","branches_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/branches{/branch}","tags_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/tags","blobs_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/git/refs{/sha}","trees_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/statuses/{sha}","languages_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/languages","stargazers_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/stargazers","contributors_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/contributors","subscribers_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/subscribers","subscription_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/subscription","commits_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/commits{/sha}","git_commits_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/git/commits{/sha}","comments_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/comments{/number}","issue_comment_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/issues/comments{/number}","contents_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/contents/{+path}","compare_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/merges","archive_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/downloads","issues_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/issues{/number}","pulls_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/pulls{/number}","milestones_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/milestones{/number}","notifications_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/labels{/name}","releases_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/releases{/id}","deployments_url":"https://api.github.com/repos/akrzos/PerfKitBenchmarker/deployments","created_at":"2016-03-03T02:09:31Z","updated_at":"2016-03-03T02:09:33Z","pushed_at":"2016-03-09T00:48:51Z","git_url":"git://github.com/akrzos/PerfKitBenchmarker.git","ssh_url":"git@github.com:akrzos/PerfKitBenchmarker.git","clone_url":"https://github.com/akrzos/PerfKitBenchmarker.git","svn_url":"https://github.com/akrzos/PerfKitBenchmarker","homepage":"http://googlecloudplatform.github.io/PerfKitBenchmarker/","size":6827,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"5af843850f0edd152bd0ac78969b740dd3d3e0da","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":21950910,"name":"PerfKitBenchmarker","full_name":"GoogleCloudPlatform/PerfKitBenchmarker","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker","description":"Perfkit Benchmarker contains set of benchmarks to measure and compare cloud offerings. The benchmarks use defaults to reflect what most users will see. PerfKit Benchmarker is licensed under the Apache 2 license terms. Please make sure to read, understand and agree to the terms of the LICENSE and CONTRIBUTING files before proceeding.","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/deployments","created_at":"2014-07-17T17:23:26Z","updated_at":"2016-03-09T00:09:48Z","pushed_at":"2016-03-10T02:15:35Z","git_url":"git://github.com/GoogleCloudPlatform/PerfKitBenchmarker.git","ssh_url":"git@github.com:GoogleCloudPlatform/PerfKitBenchmarker.git","clone_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker.git","svn_url":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker","homepage":"http://googlecloudplatform.github.io/PerfKitBenchmarker/","size":85140,"stargazers_count":608,"watchers_count":608,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":121,"mirror_url":null,"open_issues_count":118,"forks":121,"open_issues":118,"watchers":608,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/867"},"html":{"href":"https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/867"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/867"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/issues/867/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/867/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/pulls/867/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/PerfKitBenchmarker/statuses/1301baeef583653ea9615eee50930fcb6046ca03"}}}}