{"action":"created","comment":{"url":"https://api.github.com/repos/Yelp/paasta/pulls/comments/215265621","pull_request_review_id":152474846,"id":215265621,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTI2NTYyMQ==","diff_hunk":"@@ -27,32 +27,25 @@\n from marathon.exceptions import MarathonError\n \n from paasta_tools import __version__\n-from paasta_tools import adhoc_tools\n-from paasta_tools import chronos_tools\n-from paasta_tools import kubernetes_tools\n-from paasta_tools import marathon_tools\n-from paasta_tools import tron_tools\n from paasta_tools.autoscaling.autoscaling_cluster_lib import AutoscalingInfo\n from paasta_tools.autoscaling.autoscaling_cluster_lib import get_autoscaling_info_for_all_resources\n from paasta_tools.chronos_tools import get_chronos_client\n from paasta_tools.chronos_tools import load_chronos_config\n+from paasta_tools.cli.utils import get_instance_config\n from paasta_tools.marathon_tools import get_marathon_clients\n from paasta_tools.marathon_tools import get_marathon_servers\n from paasta_tools.mesos.exceptions import MasterNotAvailableException\n from paasta_tools.mesos.master import MesosState\n from paasta_tools.mesos_tools import get_mesos_master\n from paasta_tools.metrics import metastatus_lib\n-from paasta_tools.paasta_service_config_loader import PaastaServiceConfigLoader\n-from paasta_tools.utils import DEFAULT_SOA_DIR\n from paasta_tools.utils import format_table\n from paasta_tools.utils import load_system_paasta_config\n from paasta_tools.utils import paasta_print\n from paasta_tools.utils import PaastaColors\n from paasta_tools.utils import print_with_indent\n-from paasta_tools.utils import validate_service_instance\n \n \n-log = logging.getLogger(__name__)\n+log = logging.getLogger('paasta_metastatus')","path":"paasta_tools/paasta_metastatus.py","position":null,"original_position":31,"commit_id":"104330085af667f9093c37fc033f37f1ff1f391b","original_commit_id":"104330085af667f9093c37fc033f37f1ff1f391b","user":{"login":"vkhromov","id":1240391,"node_id":"MDQ6VXNlcjEyNDAzOTE=","avatar_url":"https://avatars3.githubusercontent.com/u/1240391?v=4","gravatar_id":"","url":"https://api.github.com/users/vkhromov","html_url":"https://github.com/vkhromov","followers_url":"https://api.github.com/users/vkhromov/followers","following_url":"https://api.github.com/users/vkhromov/following{/other_user}","gists_url":"https://api.github.com/users/vkhromov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkhromov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkhromov/subscriptions","organizations_url":"https://api.github.com/users/vkhromov/orgs","repos_url":"https://api.github.com/users/vkhromov/repos","events_url":"https://api.github.com/users/vkhromov/events{/privacy}","received_events_url":"https://api.github.com/users/vkhromov/received_events","type":"User","site_admin":false},"body":"Why?","created_at":"2018-09-05T13:21:19Z","updated_at":"2018-09-05T13:31:46Z","html_url":"https://github.com/Yelp/paasta/pull/1961#discussion_r215265621","pull_request_url":"https://api.github.com/repos/Yelp/paasta/pulls/1961","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/comments/215265621"},"html":{"href":"https://github.com/Yelp/paasta/pull/1961#discussion_r215265621"},"pull_request":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/1961"}}},"pull_request":{"url":"https://api.github.com/repos/Yelp/paasta/pulls/1961","id":212202083,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyMjAyMDgz","html_url":"https://github.com/Yelp/paasta/pull/1961","diff_url":"https://github.com/Yelp/paasta/pull/1961.diff","patch_url":"https://github.com/Yelp/paasta/pull/1961.patch","issue_url":"https://api.github.com/repos/Yelp/paasta/issues/1961","number":1961,"state":"open","locked":false,"title":"Added --service and --instance flags to metastatus command","user":{"login":"jordanleex13","id":14321111,"node_id":"MDQ6VXNlcjE0MzIxMTEx","avatar_url":"https://avatars3.githubusercontent.com/u/14321111?v=4","gravatar_id":"","url":"https://api.github.com/users/jordanleex13","html_url":"https://github.com/jordanleex13","followers_url":"https://api.github.com/users/jordanleex13/followers","following_url":"https://api.github.com/users/jordanleex13/following{/other_user}","gists_url":"https://api.github.com/users/jordanleex13/gists{/gist_id}","starred_url":"https://api.github.com/users/jordanleex13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordanleex13/subscriptions","organizations_url":"https://api.github.com/users/jordanleex13/orgs","repos_url":"https://api.github.com/users/jordanleex13/repos","events_url":"https://api.github.com/users/jordanleex13/events{/privacy}","received_events_url":"https://api.github.com/users/jordanleex13/received_events","type":"User","site_admin":false},"body":"https://jira.yelpcorp.com/browse/PAASTA-14724","created_at":"2018-08-30T20:31:32Z","updated_at":"2018-09-05T13:31:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a165884f0227f28dcebb46eea0d32606ce231548","assignee":{"login":"jordanleex13","id":14321111,"node_id":"MDQ6VXNlcjE0MzIxMTEx","avatar_url":"https://avatars3.githubusercontent.com/u/14321111?v=4","gravatar_id":"","url":"https://api.github.com/users/jordanleex13","html_url":"https://github.com/jordanleex13","followers_url":"https://api.github.com/users/jordanleex13/followers","following_url":"https://api.github.com/users/jordanleex13/following{/other_user}","gists_url":"https://api.github.com/users/jordanleex13/gists{/gist_id}","starred_url":"https://api.github.com/users/jordanleex13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordanleex13/subscriptions","organizations_url":"https://api.github.com/users/jordanleex13/orgs","repos_url":"https://api.github.com/users/jordanleex13/repos","events_url":"https://api.github.com/users/jordanleex13/events{/privacy}","received_events_url":"https://api.github.com/users/jordanleex13/received_events","type":"User","site_admin":false},"assignees":[{"login":"jordanleex13","id":14321111,"node_id":"MDQ6VXNlcjE0MzIxMTEx","avatar_url":"https://avatars3.githubusercontent.com/u/14321111?v=4","gravatar_id":"","url":"https://api.github.com/users/jordanleex13","html_url":"https://github.com/jordanleex13","followers_url":"https://api.github.com/users/jordanleex13/followers","following_url":"https://api.github.com/users/jordanleex13/following{/other_user}","gists_url":"https://api.github.com/users/jordanleex13/gists{/gist_id}","starred_url":"https://api.github.com/users/jordanleex13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordanleex13/subscriptions","organizations_url":"https://api.github.com/users/jordanleex13/orgs","repos_url":"https://api.github.com/users/jordanleex13/repos","events_url":"https://api.github.com/users/jordanleex13/events{/privacy}","received_events_url":"https://api.github.com/users/jordanleex13/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"EvanKrall","id":233961,"node_id":"MDQ6VXNlcjIzMzk2MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/233961?v=4","gravatar_id":"","url":"https://api.github.com/users/EvanKrall","html_url":"https://github.com/EvanKrall","followers_url":"https://api.github.com/users/EvanKrall/followers","following_url":"https://api.github.com/users/EvanKrall/following{/other_user}","gists_url":"https://api.github.com/users/EvanKrall/gists{/gist_id}","starred_url":"https://api.github.com/users/EvanKrall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvanKrall/subscriptions","organizations_url":"https://api.github.com/users/EvanKrall/orgs","repos_url":"https://api.github.com/users/EvanKrall/repos","events_url":"https://api.github.com/users/EvanKrall/events{/privacy}","received_events_url":"https://api.github.com/users/EvanKrall/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":295506239,"node_id":"MDU6TGFiZWwyOTU1MDYyMzk=","url":"https://api.github.com/repos/Yelp/paasta/labels/in%20review","name":"in review","color":"eac04b","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Yelp/paasta/pulls/1961/commits","review_comments_url":"https://api.github.com/repos/Yelp/paasta/pulls/1961/comments","review_comment_url":"https://api.github.com/repos/Yelp/paasta/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yelp/paasta/issues/1961/comments","statuses_url":"https://api.github.com/repos/Yelp/paasta/statuses/104330085af667f9093c37fc033f37f1ff1f391b","head":{"label":"Yelp:paasta-14724","ref":"paasta-14724","sha":"104330085af667f9093c37fc033f37f1ff1f391b","user":{"login":"Yelp","id":49071,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5MDcx","avatar_url":"https://avatars1.githubusercontent.com/u/49071?v=4","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":44998824,"node_id":"MDEwOlJlcG9zaXRvcnk0NDk5ODgyNA==","name":"paasta","full_name":"Yelp/paasta","owner":{"login":"Yelp","id":49071,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5MDcx","avatar_url":"https://avatars1.githubusercontent.com/u/49071?v=4","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/paasta","description":"An open, distributed platform as a service","fork":false,"url":"https://api.github.com/repos/Yelp/paasta","forks_url":"https://api.github.com/repos/Yelp/paasta/forks","keys_url":"https://api.github.com/repos/Yelp/paasta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/paasta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/paasta/teams","hooks_url":"https://api.github.com/repos/Yelp/paasta/hooks","issue_events_url":"https://api.github.com/repos/Yelp/paasta/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/paasta/events","assignees_url":"https://api.github.com/repos/Yelp/paasta/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/paasta/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/paasta/tags","blobs_url":"https://api.github.com/repos/Yelp/paasta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/paasta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/paasta/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/paasta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/paasta/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/paasta/languages","stargazers_url":"https://api.github.com/repos/Yelp/paasta/stargazers","contributors_url":"https://api.github.com/repos/Yelp/paasta/contributors","subscribers_url":"https://api.github.com/repos/Yelp/paasta/subscribers","subscription_url":"https://api.github.com/repos/Yelp/paasta/subscription","commits_url":"https://api.github.com/repos/Yelp/paasta/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/paasta/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/paasta/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/paasta/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/paasta/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/paasta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/paasta/merges","archive_url":"https://api.github.com/repos/Yelp/paasta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/paasta/downloads","issues_url":"https://api.github.com/repos/Yelp/paasta/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/paasta/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/paasta/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/paasta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/paasta/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/paasta/releases{/id}","deployments_url":"https://api.github.com/repos/Yelp/paasta/deployments","created_at":"2015-10-26T21:35:53Z","updated_at":"2018-09-05T12:41:18Z","pushed_at":"2018-09-05T12:41:15Z","git_url":"git://github.com/Yelp/paasta.git","ssh_url":"git@github.com:Yelp/paasta.git","clone_url":"https://github.com/Yelp/paasta.git","svn_url":"https://github.com/Yelp/paasta","homepage":"","size":61172,"stargazers_count":1271,"watchers_count":1271,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":153,"mirror_url":null,"archived":false,"open_issues_count":97,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":153,"open_issues":97,"watchers":1271,"default_branch":"master"}},"base":{"label":"Yelp:master","ref":"master","sha":"ff615b14defe613bc9a8deafc59574e0c809f4bb","user":{"login":"Yelp","id":49071,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5MDcx","avatar_url":"https://avatars1.githubusercontent.com/u/49071?v=4","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":44998824,"node_id":"MDEwOlJlcG9zaXRvcnk0NDk5ODgyNA==","name":"paasta","full_name":"Yelp/paasta","owner":{"login":"Yelp","id":49071,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5MDcx","avatar_url":"https://avatars1.githubusercontent.com/u/49071?v=4","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/paasta","description":"An open, distributed platform as a service","fork":false,"url":"https://api.github.com/repos/Yelp/paasta","forks_url":"https://api.github.com/repos/Yelp/paasta/forks","keys_url":"https://api.github.com/repos/Yelp/paasta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/paasta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/paasta/teams","hooks_url":"https://api.github.com/repos/Yelp/paasta/hooks","issue_events_url":"https://api.github.com/repos/Yelp/paasta/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/paasta/events","assignees_url":"https://api.github.com/repos/Yelp/paasta/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/paasta/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/paasta/tags","blobs_url":"https://api.github.com/repos/Yelp/paasta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/paasta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/paasta/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/paasta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/paasta/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/paasta/languages","stargazers_url":"https://api.github.com/repos/Yelp/paasta/stargazers","contributors_url":"https://api.github.com/repos/Yelp/paasta/contributors","subscribers_url":"https://api.github.com/repos/Yelp/paasta/subscribers","subscription_url":"https://api.github.com/repos/Yelp/paasta/subscription","commits_url":"https://api.github.com/repos/Yelp/paasta/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/paasta/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/paasta/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/paasta/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/paasta/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/paasta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/paasta/merges","archive_url":"https://api.github.com/repos/Yelp/paasta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/paasta/downloads","issues_url":"https://api.github.com/repos/Yelp/paasta/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/paasta/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/paasta/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/paasta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/paasta/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/paasta/releases{/id}","deployments_url":"https://api.github.com/repos/Yelp/paasta/deployments","created_at":"2015-10-26T21:35:53Z","updated_at":"2018-09-05T12:41:18Z","pushed_at":"2018-09-05T12:41:15Z","git_url":"git://github.com/Yelp/paasta.git","ssh_url":"git@github.com:Yelp/paasta.git","clone_url":"https://github.com/Yelp/paasta.git","svn_url":"https://github.com/Yelp/paasta","homepage":"","size":61172,"stargazers_count":1271,"watchers_count":1271,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":153,"mirror_url":null,"archived":false,"open_issues_count":97,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":153,"open_issues":97,"watchers":1271,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/1961"},"html":{"href":"https://github.com/Yelp/paasta/pull/1961"},"issue":{"href":"https://api.github.com/repos/Yelp/paasta/issues/1961"},"comments":{"href":"https://api.github.com/repos/Yelp/paasta/issues/1961/comments"},"review_comments":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/1961/comments"},"review_comment":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yelp/paasta/pulls/1961/commits"},"statuses":{"href":"https://api.github.com/repos/Yelp/paasta/statuses/104330085af667f9093c37fc033f37f1ff1f391b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"vkhromov"}}