{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/commissaire/issues/76","repository_url":"https://api.github.com/repos/projectatomic/commissaire","labels_url":"https://api.github.com/repos/projectatomic/commissaire/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/commissaire/issues/76/comments","events_url":"https://api.github.com/repos/projectatomic/commissaire/issues/76/events","html_url":"https://github.com/projectatomic/commissaire/pull/76","id":144661025,"number":76,"title":"Hack around early cloud-init script","user":{"login":"mbarnes","id":56718,"avatar_url":"https://avatars.githubusercontent.com/u/56718?v=3","gravatar_id":"","url":"https://api.github.com/users/mbarnes","html_url":"https://github.com/mbarnes","followers_url":"https://api.github.com/users/mbarnes/followers","following_url":"https://api.github.com/users/mbarnes/following{/other_user}","gists_url":"https://api.github.com/users/mbarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/mbarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbarnes/subscriptions","organizations_url":"https://api.github.com/users/mbarnes/orgs","repos_url":"https://api.github.com/users/mbarnes/repos","events_url":"https://api.github.com/users/mbarnes/events{/privacy}","received_events_url":"https://api.github.com/users/mbarnes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/projectatomic/commissaire/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"ashcrow","id":22706,"avatar_url":"https://avatars.githubusercontent.com/u/22706?v=3","gravatar_id":"","url":"https://api.github.com/users/ashcrow","html_url":"https://github.com/ashcrow","followers_url":"https://api.github.com/users/ashcrow/followers","following_url":"https://api.github.com/users/ashcrow/following{/other_user}","gists_url":"https://api.github.com/users/ashcrow/gists{/gist_id}","starred_url":"https://api.github.com/users/ashcrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashcrow/subscriptions","organizations_url":"https://api.github.com/users/ashcrow/orgs","repos_url":"https://api.github.com/users/ashcrow/repos","events_url":"https://api.github.com/users/ashcrow/events{/privacy}","received_events_url":"https://api.github.com/users/ashcrow/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-03-30T17:30:36Z","updated_at":"2016-03-30T17:52:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/projectatomic/commissaire/pulls/76","html_url":"https://github.com/projectatomic/commissaire/pull/76","diff_url":"https://github.com/projectatomic/commissaire/pull/76.diff","patch_url":"https://github.com/projectatomic/commissaire/pull/76.patch"},"body":"This might be racy on some systems, but I don't have any better ideas at the moment.\r\n\r\nThe cloud-init script registers the host to Commissaire during bootup before the host is ready to accept SSH connections, causing the bootstrap playbook to fail.\r\n\r\nRetry a few times when Ansible says the host is unreachable."},"comment":{"url":"https://api.github.com/repos/projectatomic/commissaire/issues/comments/203550593","html_url":"https://github.com/projectatomic/commissaire/pull/76#issuecomment-203550593","issue_url":"https://api.github.com/repos/projectatomic/commissaire/issues/76","id":203550593,"user":{"login":"ashcrow","id":22706,"avatar_url":"https://avatars.githubusercontent.com/u/22706?v=3","gravatar_id":"","url":"https://api.github.com/users/ashcrow","html_url":"https://github.com/ashcrow","followers_url":"https://api.github.com/users/ashcrow/followers","following_url":"https://api.github.com/users/ashcrow/following{/other_user}","gists_url":"https://api.github.com/users/ashcrow/gists{/gist_id}","starred_url":"https://api.github.com/users/ashcrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashcrow/subscriptions","organizations_url":"https://api.github.com/users/ashcrow/orgs","repos_url":"https://api.github.com/users/ashcrow/repos","events_url":"https://api.github.com/users/ashcrow/events{/privacy}","received_events_url":"https://api.github.com/users/ashcrow/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T17:52:53Z","updated_at":"2016-03-30T17:52:53Z","body":"@mbarnes I'm ok with this idea. I agree it could be a little racy and, if/when we do more than one host at a time it could cause hosts to call bootstrap multiple times. One other possible way this might be 'fixed' is if there is a way that we can wait until ```sshd.service``` has started, maybe hold for a few seconds and *then* call out to bootstrap. What do you think of that idea? Keep in mind, if my proposal could work it does not stop us from still allowing retries as done in this PR."}}