single xenapi session causes concurrency issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Johannes Erdfelt |
Bug Description
Multiple XenAPI requests can happen at the same time... but there's an issue with that because we only use a single XenAPISession().
I think it's the cause of tracebacks like this periodically:
(nova.rpc): TRACE: File "/usr/local/
(nova.rpc): TRACE: return self.__
(nova.rpc): TRACE: File "/usr/local/
(nova.rpc): TRACE: result = _parse_
(nova.rpc): TRACE: File "/usr/local/
(nova.rpc): TRACE: raise Failure(
(nova.rpc): TRACE: Failure: ['HANDLE_INVALID', 'VM', 'OpaqueRef:
It has been also reported that httplib will sometimes return CannotSendRequest exceptions... when there appears to be multiple XenAPI requests at nearly the same time...
Changed in nova: | |
importance: | Undecided → High |
milestone: | none → essex-1 |
description: | updated |
Changed in nova: | |
assignee: | nobody → Johannes Erdfelt (johannes.erdfelt) |
status: | New → In Progress |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | essex-1 → 2012.1 |
CannotSendRequest exceptions are a result of using an httplib connection in an invalid state. That's certainly a bug in the calling code, which appears to be XenAPI.