{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/Datanexus/cassandra/pulls/1","id":144250285,"html_url":"https://github.com/Datanexus/cassandra/pull/1","diff_url":"https://github.com/Datanexus/cassandra/pull/1.diff","patch_url":"https://github.com/Datanexus/cassandra/pull/1.patch","issue_url":"https://api.github.com/repos/Datanexus/cassandra/issues/1","number":1,"state":"open","locked":false,"title":"Adds error checking to Cassandra deployments","user":{"login":"tjmcs","id":1375734,"avatar_url":"https://avatars1.githubusercontent.com/u/1375734?v=4","gravatar_id":"","url":"https://api.github.com/users/tjmcs","html_url":"https://github.com/tjmcs","followers_url":"https://api.github.com/users/tjmcs/followers","following_url":"https://api.github.com/users/tjmcs/following{/other_user}","gists_url":"https://api.github.com/users/tjmcs/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmcs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmcs/subscriptions","organizations_url":"https://api.github.com/users/tjmcs/orgs","repos_url":"https://api.github.com/users/tjmcs/repos","events_url":"https://api.github.com/users/tjmcs/events{/privacy}","received_events_url":"https://api.github.com/users/tjmcs/received_events","type":"User","site_admin":false},"body":"The changes in this pull request add some error checking to the inputs to the `provision-cassandra.yml` playbook; specifically:\r\n\r\n* inverts the process of provisioning new VMs in AWS/OSP environments and building the host groups (this new code builds the host groups, then creates new nodes and adds them to those host groups if no existing nodes are found; previously the new nodes were provisioned and then the host groups were built)\r\n* adds some error checking for the number of `cassandra` entries found in the `node_map` list; if there are more than two found (or none are found) then an error is thrown\r\n* adds a check to ensure that there is at least one seed node is provided in the `node_map` list (or that at least one seed node is included in the list of existing nodes found); if a seed node is not found in as one of the target nodes, then an error is thrown\r\n* updates the `osp` and `aws` roles to support the inverted call order mentioned above\r\n\r\nWith these changes merged, the Cassandra deployment process should be in line with the other community (open-sourced) application deployment playbooks that we are supporting.","created_at":"2017-10-02T18:24:51Z","updated_at":"2017-10-02T18:24:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Datanexus/cassandra/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Datanexus/cassandra/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Datanexus/cassandra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Datanexus/cassandra/issues/1/comments","statuses_url":"https://api.github.com/repos/Datanexus/cassandra/statuses/71a916d5742d8921e4e0ec314857b96ebd28ead0","head":{"label":"tjmcs:tb/add-error-checking","ref":"tb/add-error-checking","sha":"71a916d5742d8921e4e0ec314857b96ebd28ead0","user":{"login":"tjmcs","id":1375734,"avatar_url":"https://avatars1.githubusercontent.com/u/1375734?v=4","gravatar_id":"","url":"https://api.github.com/users/tjmcs","html_url":"https://github.com/tjmcs","followers_url":"https://api.github.com/users/tjmcs/followers","following_url":"https://api.github.com/users/tjmcs/following{/other_user}","gists_url":"https://api.github.com/users/tjmcs/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmcs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmcs/subscriptions","organizations_url":"https://api.github.com/users/tjmcs/orgs","repos_url":"https://api.github.com/users/tjmcs/repos","events_url":"https://api.github.com/users/tjmcs/events{/privacy}","received_events_url":"https://api.github.com/users/tjmcs/received_events","type":"User","site_admin":false},"repo":{"id":105459576,"name":"cassandra","full_name":"tjmcs/cassandra","owner":{"login":"tjmcs","id":1375734,"avatar_url":"https://avatars1.githubusercontent.com/u/1375734?v=4","gravatar_id":"","url":"https://api.github.com/users/tjmcs","html_url":"https://github.com/tjmcs","followers_url":"https://api.github.com/users/tjmcs/followers","following_url":"https://api.github.com/users/tjmcs/following{/other_user}","gists_url":"https://api.github.com/users/tjmcs/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmcs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmcs/subscriptions","organizations_url":"https://api.github.com/users/tjmcs/orgs","repos_url":"https://api.github.com/users/tjmcs/repos","events_url":"https://api.github.com/users/tjmcs/events{/privacy}","received_events_url":"https://api.github.com/users/tjmcs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tjmcs/cassandra","description":"community Cassandra deployment repository","fork":true,"url":"https://api.github.com/repos/tjmcs/cassandra","forks_url":"https://api.github.com/repos/tjmcs/cassandra/forks","keys_url":"https://api.github.com/repos/tjmcs/cassandra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tjmcs/cassandra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tjmcs/cassandra/teams","hooks_url":"https://api.github.com/repos/tjmcs/cassandra/hooks","issue_events_url":"https://api.github.com/repos/tjmcs/cassandra/issues/events{/number}","events_url":"https://api.github.com/repos/tjmcs/cassandra/events","assignees_url":"https://api.github.com/repos/tjmcs/cassandra/assignees{/user}","branches_url":"https://api.github.com/repos/tjmcs/cassandra/branches{/branch}","tags_url":"https://api.github.com/repos/tjmcs/cassandra/tags","blobs_url":"https://api.github.com/repos/tjmcs/cassandra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tjmcs/cassandra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tjmcs/cassandra/git/refs{/sha}","trees_url":"https://api.github.com/repos/tjmcs/cassandra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tjmcs/cassandra/statuses/{sha}","languages_url":"https://api.github.com/repos/tjmcs/cassandra/languages","stargazers_url":"https://api.github.com/repos/tjmcs/cassandra/stargazers","contributors_url":"https://api.github.com/repos/tjmcs/cassandra/contributors","subscribers_url":"https://api.github.com/repos/tjmcs/cassandra/subscribers","subscription_url":"https://api.github.com/repos/tjmcs/cassandra/subscription","commits_url":"https://api.github.com/repos/tjmcs/cassandra/commits{/sha}","git_commits_url":"https://api.github.com/repos/tjmcs/cassandra/git/commits{/sha}","comments_url":"https://api.github.com/repos/tjmcs/cassandra/comments{/number}","issue_comment_url":"https://api.github.com/repos/tjmcs/cassandra/issues/comments{/number}","contents_url":"https://api.github.com/repos/tjmcs/cassandra/contents/{+path}","compare_url":"https://api.github.com/repos/tjmcs/cassandra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tjmcs/cassandra/merges","archive_url":"https://api.github.com/repos/tjmcs/cassandra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tjmcs/cassandra/downloads","issues_url":"https://api.github.com/repos/tjmcs/cassandra/issues{/number}","pulls_url":"https://api.github.com/repos/tjmcs/cassandra/pulls{/number}","milestones_url":"https://api.github.com/repos/tjmcs/cassandra/milestones{/number}","notifications_url":"https://api.github.com/repos/tjmcs/cassandra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tjmcs/cassandra/labels{/name}","releases_url":"https://api.github.com/repos/tjmcs/cassandra/releases{/id}","deployments_url":"https://api.github.com/repos/tjmcs/cassandra/deployments","created_at":"2017-10-01T17:21:23Z","updated_at":"2017-10-01T17:21:24Z","pushed_at":"2017-10-02T05:02:29Z","git_url":"git://github.com/tjmcs/cassandra.git","ssh_url":"git@github.com:tjmcs/cassandra.git","clone_url":"https://github.com/tjmcs/cassandra.git","svn_url":"https://github.com/tjmcs/cassandra","homepage":"","size":86,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"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":"Datanexus:master","ref":"master","sha":"142ea48b07e4e7456790d575fd0c4e3c857de35d","user":{"login":"Datanexus","id":13738224,"avatar_url":"https://avatars1.githubusercontent.com/u/13738224?v=4","gravatar_id":"","url":"https://api.github.com/users/Datanexus","html_url":"https://github.com/Datanexus","followers_url":"https://api.github.com/users/Datanexus/followers","following_url":"https://api.github.com/users/Datanexus/following{/other_user}","gists_url":"https://api.github.com/users/Datanexus/gists{/gist_id}","starred_url":"https://api.github.com/users/Datanexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Datanexus/subscriptions","organizations_url":"https://api.github.com/users/Datanexus/orgs","repos_url":"https://api.github.com/users/Datanexus/repos","events_url":"https://api.github.com/users/Datanexus/events{/privacy}","received_events_url":"https://api.github.com/users/Datanexus/received_events","type":"Organization","site_admin":false},"repo":{"id":100217011,"name":"cassandra","full_name":"Datanexus/cassandra","owner":{"login":"Datanexus","id":13738224,"avatar_url":"https://avatars1.githubusercontent.com/u/13738224?v=4","gravatar_id":"","url":"https://api.github.com/users/Datanexus","html_url":"https://github.com/Datanexus","followers_url":"https://api.github.com/users/Datanexus/followers","following_url":"https://api.github.com/users/Datanexus/following{/other_user}","gists_url":"https://api.github.com/users/Datanexus/gists{/gist_id}","starred_url":"https://api.github.com/users/Datanexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Datanexus/subscriptions","organizations_url":"https://api.github.com/users/Datanexus/orgs","repos_url":"https://api.github.com/users/Datanexus/repos","events_url":"https://api.github.com/users/Datanexus/events{/privacy}","received_events_url":"https://api.github.com/users/Datanexus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Datanexus/cassandra","description":"community Cassandra deployment repository","fork":false,"url":"https://api.github.com/repos/Datanexus/cassandra","forks_url":"https://api.github.com/repos/Datanexus/cassandra/forks","keys_url":"https://api.github.com/repos/Datanexus/cassandra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Datanexus/cassandra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Datanexus/cassandra/teams","hooks_url":"https://api.github.com/repos/Datanexus/cassandra/hooks","issue_events_url":"https://api.github.com/repos/Datanexus/cassandra/issues/events{/number}","events_url":"https://api.github.com/repos/Datanexus/cassandra/events","assignees_url":"https://api.github.com/repos/Datanexus/cassandra/assignees{/user}","branches_url":"https://api.github.com/repos/Datanexus/cassandra/branches{/branch}","tags_url":"https://api.github.com/repos/Datanexus/cassandra/tags","blobs_url":"https://api.github.com/repos/Datanexus/cassandra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Datanexus/cassandra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Datanexus/cassandra/git/refs{/sha}","trees_url":"https://api.github.com/repos/Datanexus/cassandra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Datanexus/cassandra/statuses/{sha}","languages_url":"https://api.github.com/repos/Datanexus/cassandra/languages","stargazers_url":"https://api.github.com/repos/Datanexus/cassandra/stargazers","contributors_url":"https://api.github.com/repos/Datanexus/cassandra/contributors","subscribers_url":"https://api.github.com/repos/Datanexus/cassandra/subscribers","subscription_url":"https://api.github.com/repos/Datanexus/cassandra/subscription","commits_url":"https://api.github.com/repos/Datanexus/cassandra/commits{/sha}","git_commits_url":"https://api.github.com/repos/Datanexus/cassandra/git/commits{/sha}","comments_url":"https://api.github.com/repos/Datanexus/cassandra/comments{/number}","issue_comment_url":"https://api.github.com/repos/Datanexus/cassandra/issues/comments{/number}","contents_url":"https://api.github.com/repos/Datanexus/cassandra/contents/{+path}","compare_url":"https://api.github.com/repos/Datanexus/cassandra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Datanexus/cassandra/merges","archive_url":"https://api.github.com/repos/Datanexus/cassandra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Datanexus/cassandra/downloads","issues_url":"https://api.github.com/repos/Datanexus/cassandra/issues{/number}","pulls_url":"https://api.github.com/repos/Datanexus/cassandra/pulls{/number}","milestones_url":"https://api.github.com/repos/Datanexus/cassandra/milestones{/number}","notifications_url":"https://api.github.com/repos/Datanexus/cassandra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Datanexus/cassandra/labels{/name}","releases_url":"https://api.github.com/repos/Datanexus/cassandra/releases{/id}","deployments_url":"https://api.github.com/repos/Datanexus/cassandra/deployments","created_at":"2017-08-14T01:42:57Z","updated_at":"2017-09-20T22:49:59Z","pushed_at":"2017-09-22T16:45:11Z","git_url":"git://github.com/Datanexus/cassandra.git","ssh_url":"git@github.com:Datanexus/cassandra.git","clone_url":"https://github.com/Datanexus/cassandra.git","svn_url":"https://github.com/Datanexus/cassandra","homepage":"","size":83,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Datanexus/cassandra/pulls/1"},"html":{"href":"https://github.com/Datanexus/cassandra/pull/1"},"issue":{"href":"https://api.github.com/repos/Datanexus/cassandra/issues/1"},"comments":{"href":"https://api.github.com/repos/Datanexus/cassandra/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Datanexus/cassandra/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Datanexus/cassandra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Datanexus/cassandra/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Datanexus/cassandra/statuses/71a916d5742d8921e4e0ec314857b96ebd28ead0"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":82,"deletions":55,"changed_files":5}}
{"actor":{"display_login":"tjmcs"}}