summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStanislaw Pitucha <stanislaw.pitucha@hp.com>2013-05-13 13:25:06 +0100
committerStanislaw Pitucha <stanislaw.pitucha@hp.com>2013-05-13 13:25:06 +0100
commit449affe5d6821811dc5b11887a5bcbfa8a69287f (patch)
tree23f5ebff05dce61331df8633a232fa9ac8d6e706
parentda1d7390fea6ba8ac9eefd1a25e5c1412e624ee3 (diff)
downloadnova-449affe5d6821811dc5b11887a5bcbfa8a69287f.tar.gz
nova-449affe5d6821811dc5b11887a5bcbfa8a69287f.tar.xz
nova-449affe5d6821811dc5b11887a5bcbfa8a69287f.zip
Show the cause of virt driver error
Make sure that the virt driver loading errors are shown with the stacktrace attached. Otherwise the source of an import error can be completely hidden. This is important here, since virt driver can fail due to various issues, like quantum vif problem. Change-Id: Icb90d348e4a4ddef5768ca32836bd95d94981499
-rwxr-xr-xnova/virt/driver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/virt/driver.py b/nova/virt/driver.py
index e2f9588a4..d0a670a3e 100755
--- a/nova/virt/driver.py
+++ b/nova/virt/driver.py
@@ -958,8 +958,8 @@ def load_compute_driver(virtapi, compute_driver=None):
compute_driver,
virtapi)
return utils.check_isinstance(driver, ComputeDriver)
- except ImportError as e:
- LOG.error(_("Unable to load the virtualization driver: %s") % (e))
+ except ImportError:
+ LOG.exception(_("Unable to load the virtualization driver"))
sys.exit(1)