Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build marked as success when max number of health checks are run but deployment is still not complete #93

Open
daddyg opened this issue Mar 2, 2020 · 2 comments

Comments

@daddyg
Copy link

daddyg commented Mar 2, 2020

Hi,

I have recently seen an issue where our Elastic Beanstalk deployment failed, however the build reported that the deployment was successful. We are using version the latest version of the plugin, v0.3.19, with a ten second sleep between status checks, 30 attempts to check the status and we have checked "Ensure Health is Green after deploy?"

In the logs we can see that all 30 of our health status checks complete without the status going green. There is then an Environment Update timed-out. Aborting message, a clean up message and then Finished: SUCCESS

I suspect the root cause of this is that no exception is thrown when all 30 checks complete and then the line below swallows up the boolean status, and exits normally. There should probably be a check on the returned value and an exception thrown if true is returned from the perform() method. Either that or an appropriate exception is thrown on the final check.

new DeployerRunner(build, ws, launcher, listener, this).perform();

Here is an extract of the logs

21:05:12 Checking health/status of environmentId xxx attempt 28/30
21:05:12 Versions reported: (current: yyy underDeployment: zzz). Should I move on? false
21:05:22 Checking health/status of environmentId xxx attempt 29/30
21:05:22 Versions reported: (current: yyy, underDeployment: zzz). Should I move on? false
21:05:32 Checking health/status of environmentId xxx attempt 30/30
21:05:32 Versions reported: (current: yyy, underDeployment: zzz. Should I move on? false
21:05:32 Environment Update timed-out. Aborting.
21:05:32 Cleaning up temporary file /tmp/awseb-4688522888339839339.zip
21:05:32 Finished: SUCCESS
@Ana-Petrovic-BSI
Copy link

I have same problem.

And somebody else create issue with same problem > #101

Is there any solution? It doesn't sounds good to have green deploy on Jenkins when that deploy actually failed.

@avtaniket
Copy link

I also face similar issues, any fix?

Build from Jenkins api-v232 # timeout=10
Finished: SUCCESS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants