{"action":"created","comment":{"url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/pulls/comments/77898254","id":77898254,"diff_hunk":"@@ -2,10 +2,16 @@ package main\n \n import (\n \t\"encoding/json\"\n-\t\"os\"\n+\t\"io/ioutil\"\n \t\"path/filepath\"\n )\n \n+var (\n+\tanalysisErrorNotDiscovered         = 0\n+\tanalysisErrorReadingDumpedResource = 1","path":"analysis.go","position":11,"original_position":11,"commit_id":"4925e9265c4abf2f167c97e1f51d0c4665111c11","original_commit_id":"4925e9265c4abf2f167c97e1f51d0c4665111c11","user":{"login":"rhcarvalho","id":88819,"avatar_url":"https://avatars.githubusercontent.com/u/88819?v=3","gravatar_id":"","url":"https://api.github.com/users/rhcarvalho","html_url":"https://github.com/rhcarvalho","followers_url":"https://api.github.com/users/rhcarvalho/followers","following_url":"https://api.github.com/users/rhcarvalho/following{/other_user}","gists_url":"https://api.github.com/users/rhcarvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/rhcarvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhcarvalho/subscriptions","organizations_url":"https://api.github.com/users/rhcarvalho/orgs","repos_url":"https://api.github.com/users/rhcarvalho/repos","events_url":"https://api.github.com/users/rhcarvalho/events{/privacy}","received_events_url":"https://api.github.com/users/rhcarvalho/received_events","type":"User","site_admin":false},"body":"iota? https://golang.org/ref/spec#Iota","created_at":"2016-09-07T20:33:59Z","updated_at":"2016-09-07T20:33:59Z","html_url":"https://github.com/feedhenry/fh-system-dump-tool/pull/46#discussion_r77898254","pull_request_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/pulls/comments/77898254"},"html":{"href":"https://github.com/feedhenry/fh-system-dump-tool/pull/46#discussion_r77898254"},"pull_request":{"href":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/pulls/46","id":84331844,"html_url":"https://github.com/feedhenry/fh-system-dump-tool/pull/46","diff_url":"https://github.com/feedhenry/fh-system-dump-tool/pull/46.diff","patch_url":"https://github.com/feedhenry/fh-system-dump-tool/pull/46.patch","issue_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/issues/46","number":46,"state":"open","locked":false,"title":"output from analysis - RHMAP-9595","user":{"login":"philbrookes","id":1033452,"avatar_url":"https://avatars.githubusercontent.com/u/1033452?v=3","gravatar_id":"","url":"https://api.github.com/users/philbrookes","html_url":"https://github.com/philbrookes","followers_url":"https://api.github.com/users/philbrookes/followers","following_url":"https://api.github.com/users/philbrookes/following{/other_user}","gists_url":"https://api.github.com/users/philbrookes/gists{/gist_id}","starred_url":"https://api.github.com/users/philbrookes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philbrookes/subscriptions","organizations_url":"https://api.github.com/users/philbrookes/orgs","repos_url":"https://api.github.com/users/philbrookes/repos","events_url":"https://api.github.com/users/philbrookes/events{/privacy}","received_events_url":"https://api.github.com/users/philbrookes/received_events","type":"User","site_admin":false},"body":"# Motivation\r\nWhen dump and analyse is complete, output any discovered issues to the user on stdout. \r\n\r\n# Changes\r\nAdd task to run after analysis.json is finished being written to output any discovered errors.\r\n\r\nExample output:\r\n```\r\nPotential issue discovered in rhmap-core: check eventlog for any errors\r\n  Details:\r\n    Readiness probe failed: Get http://10.1.6.13:8080/sys/info/ping: dial tcp 10.1.6.13:8080: connection refused\r\n    Cannot update deployment rhmap-core/fh-supercore-3 status to Pending: replicationcontrollers \"fh-supercore-3\" cannot be updated: the object has been modified; please apply your changes to the latest version and try again\r\nPotential issue discovered in testingcloudapp1oldrr64: check eventlog for any errors\r\n  Details:\r\n    Cannot update deployment testingcloudapp1oldrr64/nodejs-frontend-1 status to Pending: replicationcontrollers \"nodejs-frontend-1\" cannot be updated: the object has been modified; please apply your changes to the latest version and try again\r\n    Cannot update deployment testingcloudapp1oldrr64/redis-1 status to Pending: replicationcontrollers \"redis-1\" cannot be updated: the object has been modified; please apply your changes to the latest version and try again\r\nPotential issue discovered in testingcloudappolderr64: check eventlog for any errors\r\n  Details:\r\n    Cannot update deployment testingcloudappolderr64/nodejs-frontend-1 status to Pending: replicationcontrollers \"nodejs-frontend-1\" cannot be updated: the object has been modified; please apply your changes to the latest version and try again\r\n    Cannot update deployment testingcloudappolderr64/redis-1 status to Pending: replicationcontrollers \"redis-1\" cannot be updated: the object has been modified; please apply your changes to the latest version and try again\r\n2016/09/07 15:54:25 Dumped system information to: rhmap-dumps/2016-09-07T14-53-57Z.tar.gz\r\n```\r\n\r\nThis has discovered errors in 3 different projects:\r\n-  rhmap-core\r\n- testingcloudapp1oldrr64\r\n- testingcloudappolderr64\r\n\r\nI am not sure if this format is the most ideal, and I am open to suggestions, the problem really seems to be that there is quite a lot of text to output. So possibly it could look more brief like:\r\n```\r\nPotential issue discovered in rhmap-core: check eventlog for any errors\r\n   For more information check the analysis.json in the archive\r\nPotential issue discovered in testingcloudapp1oldrr64: check eventlog for any errors\r\n   For more information check the analysis.json in the archive\r\nPotential issue discovered in testingcloudappolderr64: check eventlog for any errors\r\n   For more information check the analysis.json in the archive\r\n```\r\n\r\nWhich is less immediately useful, but is far less clutter on the screen. Any thoughts?","created_at":"2016-09-07T16:20:56Z","updated_at":"2016-09-07T20:33:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5aecd515843a2616b9a3c444c7b73d1345e20cbb","assignee":{"login":"rhcarvalho","id":88819,"avatar_url":"https://avatars.githubusercontent.com/u/88819?v=3","gravatar_id":"","url":"https://api.github.com/users/rhcarvalho","html_url":"https://github.com/rhcarvalho","followers_url":"https://api.github.com/users/rhcarvalho/followers","following_url":"https://api.github.com/users/rhcarvalho/following{/other_user}","gists_url":"https://api.github.com/users/rhcarvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/rhcarvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhcarvalho/subscriptions","organizations_url":"https://api.github.com/users/rhcarvalho/orgs","repos_url":"https://api.github.com/users/rhcarvalho/repos","events_url":"https://api.github.com/users/rhcarvalho/events{/privacy}","received_events_url":"https://api.github.com/users/rhcarvalho/received_events","type":"User","site_admin":false},"assignees":[{"login":"rhcarvalho","id":88819,"avatar_url":"https://avatars.githubusercontent.com/u/88819?v=3","gravatar_id":"","url":"https://api.github.com/users/rhcarvalho","html_url":"https://github.com/rhcarvalho","followers_url":"https://api.github.com/users/rhcarvalho/followers","following_url":"https://api.github.com/users/rhcarvalho/following{/other_user}","gists_url":"https://api.github.com/users/rhcarvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/rhcarvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhcarvalho/subscriptions","organizations_url":"https://api.github.com/users/rhcarvalho/orgs","repos_url":"https://api.github.com/users/rhcarvalho/repos","events_url":"https://api.github.com/users/rhcarvalho/events{/privacy}","received_events_url":"https://api.github.com/users/rhcarvalho/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/pulls/46/commits","review_comments_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/pulls/46/comments","review_comment_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/pulls/comments{/number}","comments_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/issues/46/comments","statuses_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/statuses/4925e9265c4abf2f167c97e1f51d0c4665111c11","head":{"label":"philbrookes:RHMAP-9595","ref":"RHMAP-9595","sha":"4925e9265c4abf2f167c97e1f51d0c4665111c11","user":{"login":"philbrookes","id":1033452,"avatar_url":"https://avatars.githubusercontent.com/u/1033452?v=3","gravatar_id":"","url":"https://api.github.com/users/philbrookes","html_url":"https://github.com/philbrookes","followers_url":"https://api.github.com/users/philbrookes/followers","following_url":"https://api.github.com/users/philbrookes/following{/other_user}","gists_url":"https://api.github.com/users/philbrookes/gists{/gist_id}","starred_url":"https://api.github.com/users/philbrookes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philbrookes/subscriptions","organizations_url":"https://api.github.com/users/philbrookes/orgs","repos_url":"https://api.github.com/users/philbrookes/repos","events_url":"https://api.github.com/users/philbrookes/events{/privacy}","received_events_url":"https://api.github.com/users/philbrookes/received_events","type":"User","site_admin":false},"repo":{"id":65282786,"name":"fh-system-dump-tool","full_name":"philbrookes/fh-system-dump-tool","owner":{"login":"philbrookes","id":1033452,"avatar_url":"https://avatars.githubusercontent.com/u/1033452?v=3","gravatar_id":"","url":"https://api.github.com/users/philbrookes","html_url":"https://github.com/philbrookes","followers_url":"https://api.github.com/users/philbrookes/followers","following_url":"https://api.github.com/users/philbrookes/following{/other_user}","gists_url":"https://api.github.com/users/philbrookes/gists{/gist_id}","starred_url":"https://api.github.com/users/philbrookes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philbrookes/subscriptions","organizations_url":"https://api.github.com/users/philbrookes/orgs","repos_url":"https://api.github.com/users/philbrookes/repos","events_url":"https://api.github.com/users/philbrookes/events{/privacy}","received_events_url":"https://api.github.com/users/philbrookes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/philbrookes/fh-system-dump-tool","description":"This repository contains the system dump tool for the RHMAP On-Prem product","fork":true,"url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool","forks_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/forks","keys_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/teams","hooks_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/hooks","issue_events_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/issues/events{/number}","events_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/events","assignees_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/assignees{/user}","branches_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/branches{/branch}","tags_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/tags","blobs_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/git/refs{/sha}","trees_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/statuses/{sha}","languages_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/languages","stargazers_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/stargazers","contributors_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/contributors","subscribers_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/subscribers","subscription_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/subscription","commits_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/commits{/sha}","git_commits_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/git/commits{/sha}","comments_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/comments{/number}","issue_comment_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/issues/comments{/number}","contents_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/contents/{+path}","compare_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/merges","archive_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/downloads","issues_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/issues{/number}","pulls_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/pulls{/number}","milestones_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/milestones{/number}","notifications_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/labels{/name}","releases_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/releases{/id}","deployments_url":"https://api.github.com/repos/philbrookes/fh-system-dump-tool/deployments","created_at":"2016-08-09T09:36:44Z","updated_at":"2016-08-09T09:36:44Z","pushed_at":"2016-09-07T16:15:46Z","git_url":"git://github.com/philbrookes/fh-system-dump-tool.git","ssh_url":"git@github.com:philbrookes/fh-system-dump-tool.git","clone_url":"https://github.com/philbrookes/fh-system-dump-tool.git","svn_url":"https://github.com/philbrookes/fh-system-dump-tool","homepage":null,"size":107,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"feedhenry:master","ref":"master","sha":"82d5b65ac05eff04c82c49de2cc4e497adb22192","user":{"login":"feedhenry","id":772226,"avatar_url":"https://avatars.githubusercontent.com/u/772226?v=3","gravatar_id":"","url":"https://api.github.com/users/feedhenry","html_url":"https://github.com/feedhenry","followers_url":"https://api.github.com/users/feedhenry/followers","following_url":"https://api.github.com/users/feedhenry/following{/other_user}","gists_url":"https://api.github.com/users/feedhenry/gists{/gist_id}","starred_url":"https://api.github.com/users/feedhenry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feedhenry/subscriptions","organizations_url":"https://api.github.com/users/feedhenry/orgs","repos_url":"https://api.github.com/users/feedhenry/repos","events_url":"https://api.github.com/users/feedhenry/events{/privacy}","received_events_url":"https://api.github.com/users/feedhenry/received_events","type":"Organization","site_admin":false},"repo":{"id":63058395,"name":"fh-system-dump-tool","full_name":"feedhenry/fh-system-dump-tool","owner":{"login":"feedhenry","id":772226,"avatar_url":"https://avatars.githubusercontent.com/u/772226?v=3","gravatar_id":"","url":"https://api.github.com/users/feedhenry","html_url":"https://github.com/feedhenry","followers_url":"https://api.github.com/users/feedhenry/followers","following_url":"https://api.github.com/users/feedhenry/following{/other_user}","gists_url":"https://api.github.com/users/feedhenry/gists{/gist_id}","starred_url":"https://api.github.com/users/feedhenry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feedhenry/subscriptions","organizations_url":"https://api.github.com/users/feedhenry/orgs","repos_url":"https://api.github.com/users/feedhenry/repos","events_url":"https://api.github.com/users/feedhenry/events{/privacy}","received_events_url":"https://api.github.com/users/feedhenry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/feedhenry/fh-system-dump-tool","description":"This repository contains the system dump tool for the RHMAP On-Prem product","fork":false,"url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool","forks_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/forks","keys_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/teams","hooks_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/hooks","issue_events_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/issues/events{/number}","events_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/events","assignees_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/assignees{/user}","branches_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/branches{/branch}","tags_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/tags","blobs_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/git/refs{/sha}","trees_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/statuses/{sha}","languages_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/languages","stargazers_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/stargazers","contributors_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/contributors","subscribers_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/subscribers","subscription_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/subscription","commits_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/commits{/sha}","git_commits_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/git/commits{/sha}","comments_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/comments{/number}","issue_comment_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/issues/comments{/number}","contents_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/contents/{+path}","compare_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/merges","archive_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/downloads","issues_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/issues{/number}","pulls_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/pulls{/number}","milestones_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/milestones{/number}","notifications_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/labels{/name}","releases_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/releases{/id}","deployments_url":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/deployments","created_at":"2016-07-11T10:20:52Z","updated_at":"2016-08-08T14:28:41Z","pushed_at":"2016-09-07T16:20:57Z","git_url":"git://github.com/feedhenry/fh-system-dump-tool.git","ssh_url":"git@github.com:feedhenry/fh-system-dump-tool.git","clone_url":"https://github.com/feedhenry/fh-system-dump-tool.git","svn_url":"https://github.com/feedhenry/fh-system-dump-tool","homepage":null,"size":141,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/pulls/46"},"html":{"href":"https://github.com/feedhenry/fh-system-dump-tool/pull/46"},"issue":{"href":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/issues/46"},"comments":{"href":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/feedhenry/fh-system-dump-tool/statuses/4925e9265c4abf2f167c97e1f51d0c4665111c11"}}}}
{"actor":{"display_login":"rhcarvalho"}}