{"action":"created","issue":{"url":"https://api.github.com/repos/emccode/goscaleio/issues/16","repository_url":"https://api.github.com/repos/emccode/goscaleio","labels_url":"https://api.github.com/repos/emccode/goscaleio/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/emccode/goscaleio/issues/16/comments","events_url":"https://api.github.com/repos/emccode/goscaleio/issues/16/events","html_url":"https://github.com/emccode/goscaleio/issues/16","id":168428689,"number":16,"title":"Unable to start multiple REX-Ray instances on different hosts connecting to ScaleIO","user":{"login":"dvonthenen","id":12752197,"avatar_url":"https://avatars.githubusercontent.com/u/12752197?v=3","gravatar_id":"","url":"https://api.github.com/users/dvonthenen","html_url":"https://github.com/dvonthenen","followers_url":"https://api.github.com/users/dvonthenen/followers","following_url":"https://api.github.com/users/dvonthenen/following{/other_user}","gists_url":"https://api.github.com/users/dvonthenen/gists{/gist_id}","starred_url":"https://api.github.com/users/dvonthenen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvonthenen/subscriptions","organizations_url":"https://api.github.com/users/dvonthenen/orgs","repos_url":"https://api.github.com/users/dvonthenen/repos","events_url":"https://api.github.com/users/dvonthenen/events{/privacy}","received_events_url":"https://api.github.com/users/dvonthenen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-29T22:44:25Z","updated_at":"2016-08-02T17:59:53Z","closed_at":"2016-08-02T17:59:53Z","body":"Effectively there is a program that is installing, configuring, and starting rexray all at the same time. The first instance seems to start just fine but every instance after that fails. One problem is that rexray cannot be started until the scaleio gateway is functioning normally since rexray seems to hit the gateway on start. I am pretty sure that is “functions as designed” but the problem then is I need to start all the rexray instances after scaleio gateway is available.\r\n\r\nIn an attempt to remedy the situation, I added an exponentially increasing back off delay before retrying plus the additional of a random component but starting the services that failed still wont work. The odd thing is once the program gives up after their number of retries, i log into each host and just do a service start and it works without changing a thing.\r\n\r\nrexray_works.log - Is the first instance and rexray starts fine.\r\nrexray_failed.log - Is instance #2 and rexray fails\r\nrexray_retry.log - I ssh into instance #2. The first half of the log is the initial attempt above (rexray_failed.log) and I just do a `rexray start` and the service starts normally. \r\n\r\n[logs.zip](https://github.com/emccode/goscaleio/files/391534/logs.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/emccode/goscaleio/issues/comments/236988327","html_url":"https://github.com/emccode/goscaleio/issues/16#issuecomment-236988327","issue_url":"https://api.github.com/repos/emccode/goscaleio/issues/16","id":236988327,"user":{"login":"dvonthenen","id":12752197,"avatar_url":"https://avatars.githubusercontent.com/u/12752197?v=3","gravatar_id":"","url":"https://api.github.com/users/dvonthenen","html_url":"https://github.com/dvonthenen","followers_url":"https://api.github.com/users/dvonthenen/followers","following_url":"https://api.github.com/users/dvonthenen/following{/other_user}","gists_url":"https://api.github.com/users/dvonthenen/gists{/gist_id}","starred_url":"https://api.github.com/users/dvonthenen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvonthenen/subscriptions","organizations_url":"https://api.github.com/users/dvonthenen/orgs","repos_url":"https://api.github.com/users/dvonthenen/repos","events_url":"https://api.github.com/users/dvonthenen/events{/privacy}","received_events_url":"https://api.github.com/users/dvonthenen/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T17:59:53Z","updated_at":"2016-08-02T17:59:53Z","body":"I found the problem... it looks like because I am doing everything programmatically, the time it takes for starting the gateway versus actually being usable is larger than it takes to install rexray, configure and start it. It looks like this is a non-issue."}}
{"actor":{"display_login":"dvonthenen"}}