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

Rate limit on Compiling packages OpenStack #99

Closed
rkoster opened this issue Mar 26, 2013 · 4 comments
Closed

Rate limit on Compiling packages OpenStack #99

rkoster opened this issue Mar 26, 2013 · 4 comments
Assignees

Comments

@rkoster
Copy link
Contributor

rkoster commented Mar 26, 2013

When deploying on the cf-release on OpenStack, during the compiling packages phase the deployment get canceled after receiving a number of errors.
The error message I receive is This request was rate-limited., the {ip} in is the ip of the openstack api.

gorouter/2.1-dev: Expected(200) <=> Actual(413 Request Entity Too Large)                          
  request => {:chunk_size=>1048576, :connect_timeout=>60, :headers=>{"User-Agent"=>"fog/1.9.0", "Content-Type"=>"application/json", "Accept"=>"application/json", "X-Auth-Token"=>"17defa57c4d5430c963e08b30ea6197d", "Host"=>"{ip}:80", "Content-Length"=>37}, :idempotent=>false, :instrumentor_name=>"excon", :middlewares=>[Excon::Middleware::Instrumentor, Excon::Middleware::Expects, Excon::Middleware::Mock], :mock=>false, :nonblock=>true, :read_timeout=>60, :retry_limit=>4, :ssl_ca_file=>"/var/vcap/packages/director/gem_home/gems/excon-0.18.5/data/cacert.pem", :ssl_verify_peer=>true, :write_timeout=>60, :host=>"{ip}", :path=>"/compute/v1.1/7276102beb584c66a11bb6b923a4d4f1/servers/9eec7c56-191e-4872-af65-85188fed0445/metadata.json", :port=>"80", :query=>"ignore_awful_caching1364281433", :scheme=>"http", :user=>nil, :password=>nil, :family=>0, :body=>"{\"metadata\":{\"compiling\":\"gorouter\"}}", :expects=>200, :method=>"POST", :retries_remaining=>4}
  response => {:body=>"{\"overLimitFault\": {\"message\": \"This request was rate-limited.\", \"code\": 413, \"details\": \"Only 10 POST request(s) can be made to * every minute.\"}}", :headers=>{"Date"=>"Tue, 26 Mar 2013 07:03:53 GMT", "Content-Type"=>"text/html; charset=UTF-8", "Retry-After"=>"2", "Content-Length"=>"147", "Vary"=>"Accept-Encoding", "Connection"=>"close"}, :status=>413, :remote_ip=>"{ip}"} (00:00:00)

I have had a similar problem in the instance creation phase but this could be solved by setting:

properties:
  director:                                                                                                                                    
    max_threads: 10  

In the manifest of the big bosh.

@frodenas
Copy link
Contributor

@rkoster Can you please confirm if your OpenStack version is Essex? This problem has been fixed for Folsom, but seems that Essex returns a different over limit message.

@rkoster
Copy link
Contributor Author

rkoster commented Mar 26, 2013

Yes I'm using Essex.

@ghost ghost assigned frodenas Apr 2, 2013
@frodenas
Copy link
Contributor

frodenas commented Apr 2, 2013

@rkoster Solved per PR #101 (OpenStack CPI helper will now detect "overLimitFault"). But until we release a new stemcell, you should need to create your own stemcell.

@frodenas frodenas closed this as completed Apr 2, 2013
@rkoster
Copy link
Contributor Author

rkoster commented Apr 9, 2013

Thanks @frodenas, problem indeed seems to be fixed in master.

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

2 participants