From 449affe5d6821811dc5b11887a5bcbfa8a69287f Mon Sep 17 00:00:00 2001 From: Stanislaw Pitucha Date: Mon, 13 May 2013 13:25:06 +0100 Subject: 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 --- nova/virt/driver.py | 4 ++-- 1 file 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) -- cgit