exceptions must be old-style classes or derived from BaseException, not NoneType
Bug #822748 reported by
Johannes Erdfelt
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Johannes Erdfelt |
Bug Description
Sometime recently, many exceptions in nova are resulting in a traceback similar to this:
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/lib/
(nova): TRACE: rval = node_func(
(nova): TRACE: File "/usr/lib/
(nova): TRACE: raise
(nova): TRACE: TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType
(nova): TRACE:
This appears to be an unrelated problem that is obscuring the real exception and makes it difficult to troubleshoot other problems.
Related branches
lp:~johannes.erdfelt/nova/lp822748
- Sandy Walsh (community): Approve
- Josh Kearney (community): Approve
-
Diff: 33 lines (+8/-1)1 file modifiednova/exception.py (+8/-1)
Changed in nova: | |
assignee: | nobody → Johannes Erdfelt (johannes.erdfelt) |
Changed in nova: | |
status: | New → Fix Committed |
Changed in nova: | |
milestone: | none → diablo-4 |
Changed in nova: | |
milestone: | diablo-4 → 2011.3 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I don't think this bug is entirely stamped out. I am running a test we created that heavily stresses the OSAPI and see the following in nova-network.log. I am running
ii nova-network 2011.3-0ubuntu6.2 OpenStack Compute - Network manager
which should have the change that was supposed to fix this. I verified it is there in the source. This is a single-node configuration of nova. This particular version of the test is creating and destroying vms. I am including the nova.conf at the end.
2011-10-31 10:49:54,178 DEBUG nova.network. manager [51c0fc51- 12ab-4a81- 9b0b-46b788dbdf 63 None None] Leased IP |10.0.0.2| from (pid=104\ python2. 7/dist- packages/ nova/network/ manager. py:645 python2. 7/dist- packages/ nova/exception. py", line 78, in _wrap python2. 7/dist- packages/ sqlalchemy/ orm/session. py", line 1400, in flush objects) python2. 7/dist- packages/ sqlalchemy/ orm/session. py", line 1488, in _flush python2. 7/dist- packages/ nova/rpc/ impl_kombu. py", line 620, in _process_data context= ctxt, **node_args) python2. 7/dist- packages/ nova/network/ manager. py", line 655, in lease_fixed_ip python2. 7/dist- packages/ nova/db/ api.py" , line 402, in fixed_ip_update ip_update( context, address, values) python2. 7/dist- packages/ nova/db/ sqlalchemy/ api.py" , line 119, in wrapper python2. 7/dist- packages/ nova/db/ sqlalchemy/ api.py" , line 885, in fixed_ip_update ref.save( session= session) python2. 7/dist- packages/ nova/db/ sqlalchemy/ models. py", line 59, in save python2. 7/dist- packages/ nova/exception. py", line 81, in _wrap 1b39bd453a15d8e 3e86', u'_contex\ request_ id': u'e63bf738- 5258-4383- bcaa-f5330a4ba3 02', u'args': {u'project_id': u'testproject', u're\ type_id' : 1, u'...
10) lease_fixed_ip /usr/lib/
2011-10-31 10:49:54,314 ERROR nova.exception [-] DB exception wrapped.
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return f(*args, **kwargs)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: self._flush(
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: raise
(nova.exception): TRACE: TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType
(nova.exception): TRACE:
2011-10-31 10:49:54,315 ERROR nova.rpc [-] Exception during message handling
(nova.rpc): TRACE: Traceback (most recent call last):
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: rval = node_func(
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: 'updated_at': now})
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: return IMPL.fixed_
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: return f(*args, **kwargs)
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: fixed_ip_
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: session.flush()
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: raise DBError(e)
(nova.rpc): TRACE: DBError: exceptions must be old-style classes or derived from BaseException, not NoneType
(nova.rpc): TRACE:
2011-10-31 10:50:01,043 DEBUG nova.rpc [-] received {u'_context_roles': [], u'_msg_id': u'acc9ab22f22f4
t_read_deleted': False, u'_context_
quested_networks': None, u'instance_