{"action":"created","issue":{"url":"https://api.github.com/repos/biemond/biemond-wildfly/issues/69","labels_url":"https://api.github.com/repos/biemond/biemond-wildfly/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/biemond/biemond-wildfly/issues/69/comments","events_url":"https://api.github.com/repos/biemond/biemond-wildfly/issues/69/events","html_url":"https://github.com/biemond/biemond-wildfly/issues/69","id":102996698,"number":69,"title":"Connection refused after reload is issued via Wildfly::Util::Exec_cli","user":{"login":"smbambling","id":487229,"avatar_url":"https://avatars.githubusercontent.com/u/487229?v=3","gravatar_id":"","url":"https://api.github.com/users/smbambling","html_url":"https://github.com/smbambling","followers_url":"https://api.github.com/users/smbambling/followers","following_url":"https://api.github.com/users/smbambling/following{/other_user}","gists_url":"https://api.github.com/users/smbambling/gists{/gist_id}","starred_url":"https://api.github.com/users/smbambling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smbambling/subscriptions","organizations_url":"https://api.github.com/users/smbambling/orgs","repos_url":"https://api.github.com/users/smbambling/repos","events_url":"https://api.github.com/users/smbambling/events{/privacy}","received_events_url":"https://api.github.com/users/smbambling/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-25T10:38:50Z","updated_at":"2015-08-25T13:24:52Z","closed_at":null,"body":"I have a profile manifest where I am removing subsystem=ee/service=default-bindings] which requires a reload.  I'm using the Wildfly::Util::Exec_cli call to issue a reload which works correctly.\r\n\r\nThe issues is that tasks that are run directly after that reload fail because the management interface is temporarily unavailable after the reload.\r\n\r\n````\r\nError: /Stage[main]/Jolokia::Deploy/Wildfly::Deploy[jolokia war]/Wildfly_deploy[jolokia war]: Could not evaluate: Connection refused - connect(2) for \"0.0.0.0\" port 9990\r\n````\r\n\r\nIs there an suggestions for making the reload not report completed to puppet unless it can access the management interface to stop additional tasks from failing ?\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/biemond/biemond-wildfly/issues/comments/134584449","html_url":"https://github.com/biemond/biemond-wildfly/issues/69#issuecomment-134584449","issue_url":"https://api.github.com/repos/biemond/biemond-wildfly/issues/69","id":134584449,"user":{"login":"smbambling","id":487229,"avatar_url":"https://avatars.githubusercontent.com/u/487229?v=3","gravatar_id":"","url":"https://api.github.com/users/smbambling","html_url":"https://github.com/smbambling","followers_url":"https://api.github.com/users/smbambling/followers","following_url":"https://api.github.com/users/smbambling/following{/other_user}","gists_url":"https://api.github.com/users/smbambling/gists{/gist_id}","starred_url":"https://api.github.com/users/smbambling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smbambling/subscriptions","organizations_url":"https://api.github.com/users/smbambling/orgs","repos_url":"https://api.github.com/users/smbambling/repos","events_url":"https://api.github.com/users/smbambling/events{/privacy}","received_events_url":"https://api.github.com/users/smbambling/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T13:24:52Z","updated_at":"2015-08-25T13:24:52Z","body":"Putting it last in a manifest isn't enough for my tasks.  Because I'm removing the ExampleDS ..and the EE module that references it it requires a reload.  If this is not done before my WAR attempts to deploy it will fail. \r\n\r\nYeah having some kind of special treatment for async operation would be beneficial for sure.  The exec 'hack' I have printed above just seem dirty."}}