-
Notifications
You must be signed in to change notification settings - Fork 334
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
Fog::Compute::AWS::Error: RequestLimitExceeded when using KNIFE EC2 CREATE #453
Comments
Having researched this - it looks like the following is happening Is there a way to retry and perform an exponential back-off with Knife-EC2? This block of code appears to be the culprit - def windows_password With this I get :- Waiting for Windows Admin password to be available..................................................................................................................................................................ERROR: Fog::Compute::AWS::Error: RequestLimitExceeded => Request limit exceeded. The odd thing is that I get loads of those "." turn up very quickly (5 a second) and cause the RequestLimitedExceeded to throw. It's almost like the wait 1000 doesn't work correctly. |
@jerseyfoxcom, Since this is intermittent error, I am unable to reproduce this error. Could you please tell me which command you used and other parameters with the command? |
@jerseyfoxcom Hope comments added in #462 help you for the similar issue. |
Just as an FYI - I've resolve this issue my end by making the following changes to the KNIFE-EC2 Gem and recompiling it. This is all in EC2_server_create.rb def check_windows_password_available(server_id) |
Just as an FYI - I've resolve this issue my end by making the following changes to the KNIFE-EC2 Gem and recompiling it. This is all in EC2_server_create.rb
This method was firing 5 times a second for me, and moving the sleep to the top of the function rather than at the end (which wasn't being hit when a return false; was hit first) has sorted this problem out. |
@jerseyfoxcom , this issue is resolved in knife-ec2 0.15.0. |
Hey, that's brilliant - we've been using a forked version with this change for some time, but that will allow us to go back onto the main branch again. Adam |
I'm getting a Fog::Compute::AWS::Error: RequestLimitExceeded error intermittently when attempting to EC2 is "Waiting for Windows Admin password to be available".
Usually works fine, but 1 in 10 times i'm getting this error and it's causing us some issues in our plan to use KNIFE EC2 for automated deployment.
The text was updated successfully, but these errors were encountered: