{"action":"opened","number":2993,"pull_request":{"url":"https://api.github.com/repos/deis/deis/pulls/2993","id":28312317,"html_url":"https://github.com/deis/deis/pull/2993","diff_url":"https://github.com/deis/deis/pull/2993.diff","patch_url":"https://github.com/deis/deis/pull/2993.patch","issue_url":"https://api.github.com/repos/deis/deis/issues/2993","number":2993,"state":"open","locked":false,"title":"ref(controller): query fleet state","user":{"login":"bacongobbler","id":1360539,"avatar_url":"https://avatars.githubusercontent.com/u/1360539?v=3","gravatar_id":"","url":"https://api.github.com/users/bacongobbler","html_url":"https://github.com/bacongobbler","followers_url":"https://api.github.com/users/bacongobbler/followers","following_url":"https://api.github.com/users/bacongobbler/following{/other_user}","gists_url":"https://api.github.com/users/bacongobbler/gists{/gist_id}","starred_url":"https://api.github.com/users/bacongobbler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacongobbler/subscriptions","organizations_url":"https://api.github.com/users/bacongobbler/orgs","repos_url":"https://api.github.com/users/bacongobbler/repos","events_url":"https://api.github.com/users/bacongobbler/events{/privacy}","received_events_url":"https://api.github.com/users/bacongobbler/received_events","type":"User","site_admin":false},"body":"closes #2766 \r\n\r\nThis was thoroughly tested by hand since the controller does not wrap unit tests around fleet.py, but this should cover it :)\r\n\r\nPoints: PTAL at the systemdActiveStateMap in fleet.py and let me know if the mappings between the [dbus API's ActiveState](http://www.freedesktop.org/wiki/Software/systemd/dbus/) and our 1-1 mapping of what used to be DjangoFSM's state mappings for a container's state is correct.","created_at":"2015-01-29T20:35:14Z","updated_at":"2015-01-29T20:35:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/deis/deis/pulls/2993/commits","review_comments_url":"https://api.github.com/repos/deis/deis/pulls/2993/comments","review_comment_url":"https://api.github.com/repos/deis/deis/pulls/comments/{number}","comments_url":"https://api.github.com/repos/deis/deis/issues/2993/comments","statuses_url":"https://api.github.com/repos/deis/deis/statuses/04b36fd07526a39f998c2ce551c374a4df9c6bbf","head":{"label":"bacongobbler:2766-query-fleet-state","ref":"2766-query-fleet-state","sha":"04b36fd07526a39f998c2ce551c374a4df9c6bbf","user":{"login":"bacongobbler","id":1360539,"avatar_url":"https://avatars.githubusercontent.com/u/1360539?v=3","gravatar_id":"","url":"https://api.github.com/users/bacongobbler","html_url":"https://github.com/bacongobbler","followers_url":"https://api.github.com/users/bacongobbler/followers","following_url":"https://api.github.com/users/bacongobbler/following{/other_user}","gists_url":"https://api.github.com/users/bacongobbler/gists{/gist_id}","starred_url":"https://api.github.com/users/bacongobbler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacongobbler/subscriptions","organizations_url":"https://api.github.com/users/bacongobbler/orgs","repos_url":"https://api.github.com/users/bacongobbler/repos","events_url":"https://api.github.com/users/bacongobbler/events{/privacy}","received_events_url":"https://api.github.com/users/bacongobbler/received_events","type":"User","site_admin":false},"repo":{"id":22929148,"name":"deis","full_name":"bacongobbler/deis","owner":{"login":"bacongobbler","id":1360539,"avatar_url":"https://avatars.githubusercontent.com/u/1360539?v=3","gravatar_id":"","url":"https://api.github.com/users/bacongobbler","html_url":"https://github.com/bacongobbler","followers_url":"https://api.github.com/users/bacongobbler/followers","following_url":"https://api.github.com/users/bacongobbler/following{/other_user}","gists_url":"https://api.github.com/users/bacongobbler/gists{/gist_id}","starred_url":"https://api.github.com/users/bacongobbler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacongobbler/subscriptions","organizations_url":"https://api.github.com/users/bacongobbler/orgs","repos_url":"https://api.github.com/users/bacongobbler/repos","events_url":"https://api.github.com/users/bacongobbler/events{/privacy}","received_events_url":"https://api.github.com/users/bacongobbler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bacongobbler/deis","description":"Your PaaS. Your Rules. ","fork":true,"url":"https://api.github.com/repos/bacongobbler/deis","forks_url":"https://api.github.com/repos/bacongobbler/deis/forks","keys_url":"https://api.github.com/repos/bacongobbler/deis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bacongobbler/deis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bacongobbler/deis/teams","hooks_url":"https://api.github.com/repos/bacongobbler/deis/hooks","issue_events_url":"https://api.github.com/repos/bacongobbler/deis/issues/events{/number}","events_url":"https://api.github.com/repos/bacongobbler/deis/events","assignees_url":"https://api.github.com/repos/bacongobbler/deis/assignees{/user}","branches_url":"https://api.github.com/repos/bacongobbler/deis/branches{/branch}","tags_url":"https://api.github.com/repos/bacongobbler/deis/tags","blobs_url":"https://api.github.com/repos/bacongobbler/deis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bacongobbler/deis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bacongobbler/deis/git/refs{/sha}","trees_url":"https://api.github.com/repos/bacongobbler/deis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bacongobbler/deis/statuses/{sha}","languages_url":"https://api.github.com/repos/bacongobbler/deis/languages","stargazers_url":"https://api.github.com/repos/bacongobbler/deis/stargazers","contributors_url":"https://api.github.com/repos/bacongobbler/deis/contributors","subscribers_url":"https://api.github.com/repos/bacongobbler/deis/subscribers","subscription_url":"https://api.github.com/repos/bacongobbler/deis/subscription","commits_url":"https://api.github.com/repos/bacongobbler/deis/commits{/sha}","git_commits_url":"https://api.github.com/repos/bacongobbler/deis/git/commits{/sha}","comments_url":"https://api.github.com/repos/bacongobbler/deis/comments{/number}","issue_comment_url":"https://api.github.com/repos/bacongobbler/deis/issues/comments/{number}","contents_url":"https://api.github.com/repos/bacongobbler/deis/contents/{+path}","compare_url":"https://api.github.com/repos/bacongobbler/deis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bacongobbler/deis/merges","archive_url":"https://api.github.com/repos/bacongobbler/deis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bacongobbler/deis/downloads","issues_url":"https://api.github.com/repos/bacongobbler/deis/issues{/number}","pulls_url":"https://api.github.com/repos/bacongobbler/deis/pulls{/number}","milestones_url":"https://api.github.com/repos/bacongobbler/deis/milestones{/number}","notifications_url":"https://api.github.com/repos/bacongobbler/deis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bacongobbler/deis/labels{/name}","releases_url":"https://api.github.com/repos/bacongobbler/deis/releases{/id}","created_at":"2014-08-13T19:53:55Z","updated_at":"2015-01-29T18:01:27Z","pushed_at":"2015-01-29T20:13:39Z","git_url":"git://github.com/bacongobbler/deis.git","ssh_url":"git@github.com:bacongobbler/deis.git","clone_url":"https://github.com/bacongobbler/deis.git","svn_url":"https://github.com/bacongobbler/deis","homepage":"http://deis.io","size":17443,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"deis:master","ref":"master","sha":"f281f8baae246668a2a4673a227d3503bf6127c2","user":{"login":"deis","id":6117407,"avatar_url":"https://avatars.githubusercontent.com/u/6117407?v=3","gravatar_id":"","url":"https://api.github.com/users/deis","html_url":"https://github.com/deis","followers_url":"https://api.github.com/users/deis/followers","following_url":"https://api.github.com/users/deis/following{/other_user}","gists_url":"https://api.github.com/users/deis/gists{/gist_id}","starred_url":"https://api.github.com/users/deis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deis/subscriptions","organizations_url":"https://api.github.com/users/deis/orgs","repos_url":"https://api.github.com/users/deis/repos","events_url":"https://api.github.com/users/deis/events{/privacy}","received_events_url":"https://api.github.com/users/deis/received_events","type":"Organization","site_admin":false},"repo":{"id":11589713,"name":"deis","full_name":"deis/deis","owner":{"login":"deis","id":6117407,"avatar_url":"https://avatars.githubusercontent.com/u/6117407?v=3","gravatar_id":"","url":"https://api.github.com/users/deis","html_url":"https://github.com/deis","followers_url":"https://api.github.com/users/deis/followers","following_url":"https://api.github.com/users/deis/following{/other_user}","gists_url":"https://api.github.com/users/deis/gists{/gist_id}","starred_url":"https://api.github.com/users/deis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deis/subscriptions","organizations_url":"https://api.github.com/users/deis/orgs","repos_url":"https://api.github.com/users/deis/repos","events_url":"https://api.github.com/users/deis/events{/privacy}","received_events_url":"https://api.github.com/users/deis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/deis/deis","description":"Your PaaS. Your Rules. ","fork":false,"url":"https://api.github.com/repos/deis/deis","forks_url":"https://api.github.com/repos/deis/deis/forks","keys_url":"https://api.github.com/repos/deis/deis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deis/deis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deis/deis/teams","hooks_url":"https://api.github.com/repos/deis/deis/hooks","issue_events_url":"https://api.github.com/repos/deis/deis/issues/events{/number}","events_url":"https://api.github.com/repos/deis/deis/events","assignees_url":"https://api.github.com/repos/deis/deis/assignees{/user}","branches_url":"https://api.github.com/repos/deis/deis/branches{/branch}","tags_url":"https://api.github.com/repos/deis/deis/tags","blobs_url":"https://api.github.com/repos/deis/deis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deis/deis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deis/deis/git/refs{/sha}","trees_url":"https://api.github.com/repos/deis/deis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deis/deis/statuses/{sha}","languages_url":"https://api.github.com/repos/deis/deis/languages","stargazers_url":"https://api.github.com/repos/deis/deis/stargazers","contributors_url":"https://api.github.com/repos/deis/deis/contributors","subscribers_url":"https://api.github.com/repos/deis/deis/subscribers","subscription_url":"https://api.github.com/repos/deis/deis/subscription","commits_url":"https://api.github.com/repos/deis/deis/commits{/sha}","git_commits_url":"https://api.github.com/repos/deis/deis/git/commits{/sha}","comments_url":"https://api.github.com/repos/deis/deis/comments{/number}","issue_comment_url":"https://api.github.com/repos/deis/deis/issues/comments/{number}","contents_url":"https://api.github.com/repos/deis/deis/contents/{+path}","compare_url":"https://api.github.com/repos/deis/deis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deis/deis/merges","archive_url":"https://api.github.com/repos/deis/deis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deis/deis/downloads","issues_url":"https://api.github.com/repos/deis/deis/issues{/number}","pulls_url":"https://api.github.com/repos/deis/deis/pulls{/number}","milestones_url":"https://api.github.com/repos/deis/deis/milestones{/number}","notifications_url":"https://api.github.com/repos/deis/deis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deis/deis/labels{/name}","releases_url":"https://api.github.com/repos/deis/deis/releases{/id}","created_at":"2013-07-22T19:02:40Z","updated_at":"2015-01-29T19:23:26Z","pushed_at":"2015-01-28T19:40:45Z","git_url":"git://github.com/deis/deis.git","ssh_url":"git@github.com:deis/deis.git","clone_url":"https://github.com/deis/deis.git","svn_url":"https://github.com/deis/deis","homepage":"http://deis.io","size":32895,"stargazers_count":3722,"watchers_count":3722,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":523,"mirror_url":null,"open_issues_count":180,"forks":523,"open_issues":180,"watchers":3722,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/deis/deis/pulls/2993"},"html":{"href":"https://github.com/deis/deis/pull/2993"},"issue":{"href":"https://api.github.com/repos/deis/deis/issues/2993"},"comments":{"href":"https://api.github.com/repos/deis/deis/issues/2993/comments"},"review_comments":{"href":"https://api.github.com/repos/deis/deis/pulls/2993/comments"},"review_comment":{"href":"https://api.github.com/repos/deis/deis/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/deis/deis/pulls/2993/commits"},"statuses":{"href":"https://api.github.com/repos/deis/deis/statuses/04b36fd07526a39f998c2ce551c374a4df9c6bbf"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":306,"deletions":110,"changed_files":13}}