"Too many open files" with PKI + sqlite + v3 auth
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Dolph Mathews |
Bug Description
I found this while investigating bug 1162845, but discovered a different symptom. These two bugs may be dupes.
Rapidly generating PKI tokens on v3 eventually results in a stream of "OSError: Too many open files"
I've found two workarounds:
1. Revert to token_format = UUID in keystone.conf
1. Revert to using v2 auth instead of v3 auth
$ ulimit -n
64
$ cat auth-v3.json
{"auth": {"identity": {"methods": ["password"], "password": {"user": {"name": "admin", "password": "admin", "domain": {"id": "default"}}}}, "scope": {"project": {"name": "admin", "domain": {"id": "default"}}}}}
$ ab -n 1000 -c 10 -p auth-v3.json -T application/json http://
This is ApacheBench, Version 2.3 <$Revision: 1373084 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://
Licensed to The Apache Software Foundation, http://
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
apr_socket_recv: Connection reset by peer (54)
Total of 201 requests complete
Backtrace from keystone's logs:
ERROR [keystone.
Traceback (most recent call last):
File "/Users/
context, auth_context, auth_info)
File "/Users/
trust)
File "/Users/
self.
File "/Users/
self.context, project_id)
File "/Users/
File "/Users/
File "/Users/
File "/Users/
File "/Users/
File "/Users/
File "/Users/
File "/Users/
File "/Users/
OSError: [Errno 24] Too many open files
Changed in keystone: | |
importance: | Undecided → High |
tags: | added: grizzly-rc-potential |
no longer affects: | keystone/grizzly |
Changed in keystone: | |
milestone: | none → grizzly-rc3 |
Changed in keystone: | |
milestone: | grizzly-rc3 → 2013.1 |
This issue appears to be unreproducible after switching to the sql connection to mysql.