summaryrefslogtreecommitdiffstats
path: root/bin/nova-compute
diff options
context:
space:
mode:
authorDan Smith <danms@us.ibm.com>2013-02-09 09:51:40 -0500
committerDan Smith <danms@us.ibm.com>2013-02-12 09:30:44 -0500
commite7bc52d3f2ed783864984e021eb9d676a55943c7 (patch)
treeb421fc03ee4e4ee8bf80999218fd88f437340098 /bin/nova-compute
parentb64c53e0368ea63d8cd4beb71dabce9987b9bb54 (diff)
downloadnova-e7bc52d3f2ed783864984e021eb9d676a55943c7.tar.gz
nova-e7bc52d3f2ed783864984e021eb9d676a55943c7.tar.xz
nova-e7bc52d3f2ed783864984e021eb9d676a55943c7.zip
Fix nova-compute use of missing DBError
Apparently exception.DBError disappeared at some point, but nova- compute was still using it. Since it was a stretch in the first place, and nothing else in exception.py looks reasonable, this adds exception.DBNotAllowed. Fixes bug 1120390 Change-Id: Ifbfa0b09f3dc011ad87f6f3b06eb0fdaa7247ec0
Diffstat (limited to 'bin/nova-compute')
-rwxr-xr-xbin/nova-compute2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/nova-compute b/bin/nova-compute
index 814147d66..d99a21051 100755
--- a/bin/nova-compute
+++ b/bin/nova-compute
@@ -64,7 +64,7 @@ def block_db_access():
def __call__(self, *args, **kwargs):
stacktrace = "".join(traceback.format_stack())
LOG.error('No db access allowed in nova-compute: %s' % stacktrace)
- raise exception.DBError('No db access allowed in nova-compute')
+ raise exception.DBNotAllowed('nova-compute')
nova.db.api.IMPL = NoDB()