multiprocess glance-api failed to exit when stopped by ctrl+c
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Eoghan Glynn | ||
Essex |
Fix Released
|
Low
|
Eoghan Glynn | ||
glance (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I was running glance-api with DevStack on Fedora 16. I found multiprocess glance-api failed to exit when stopped by ctrl+c.
The version I was using is: commit 4255bbfb2ee80ab
Here's how to reproduce this issue:
1. Config # of workers > 1 (which means glance-api will run in eventlet pool of one standalone process);
2. Start glance-api by '/PATH_
3. Stop glance-api by pressing Ctrl+C
Then the stdout or log (?) will end-up error messages like:
File "/opt/stack/
log=
File "/usr/lib/
serv = Server(sock, sock.getsockname(),
File "/usr/lib64/
return getattr(
File "/usr/lib64/
raise error(EBADF, 'Bad file descriptor')
socket.error: [Errno 9] Bad file descriptor
2012-04-10 23:09:12 374 INFO [eventlet.
Traceback (most recent call last):
File "bin/glance-api", line 52, in <module>
server.wait()
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
log=
File "/usr/lib/
serv = Server(sock, sock.getsockname(),
File "/usr/lib64/
return getattr(
File "/usr/lib64/
raise error(EBADF, 'Bad file descriptor')
socket.error: [Errno 9] Bad file descriptor
2012-04-10 23:09:12 373 ERROR [eventlet.
2012-04-10 23:09:12 373 INFO [eventlet.
Traceback (most recent call last):
File "bin/glance-api", line 52, in <module>
server.wait()
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
log=
File "/usr/lib/
serv = Server(sock, sock.getsockname(),
File "/usr/lib64/
return getattr(
File "/usr/lib64/
raise error(EBADF, 'Bad file descriptor')
socket.error: [Errno 9] Bad file descriptor
2012-04-10 23:09:12 373 ERROR [eventlet.
2012-04-10 23:09:12 374 ERROR [eventlet.
2012-04-10 23:09:12 373 INFO [eventlet.
Related branches
- Ubuntu Server Developers: Pending requested
-
Diff: 31 lines (+10/-3)2 files modifieddebian/changelog (+6/-0)
debian/glance-common.postinst (+4/-3)
Changed in glance: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in glance: | |
assignee: | nobody → Eoghan Glynn (eglynn) |
status: | Confirmed → In Progress |
Changed in glance: | |
milestone: | none → folsom-1 |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance (Ubuntu): | |
status: | New → Fix Released |
Changed in glance (Ubuntu Precise): | |
status: | New → Confirmed |
Changed in glance: | |
milestone: | folsom-1 → 2012.2 |
Fix proposed to branch: master /review. openstack. org/6468
Review: https:/