← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1302796] [NEW] nova-compute (icehouse) exits with a misleading error when libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver

 

Public bug reported:

In Havana, this was a valid setting:

  libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver

The nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver class has been
removed in Icehouse; if nova-compute is run with this setting in
nova.conf, the resulting error is...

   2014-04-04 19:33:55.783 17413 TRACE nova.virt.driver ImportError:
Class LibvirtDriver cannot be found (['Traceback (most recent call
last):\n', '  File "/usr/lib/python2.6/site-
packages/nova/openstack/common/importutils.py", line 29, in
import_class\n    return getattr(sys.modules[mod_str], class_str)\n',
"AttributeError: 'module' object has no attribute 'LibvirtDriver'\n"])

...which is misleading, and will cause people to start looking at the
setting of compute_driver.  The error is caused by the libvirt driver
attempting to import the vif class:

          vif_class = importutils.import_class(CONF.libvirt.vif_driver)

If this configuration option was valid in Havana, then:

(a) there should probably be a deprecation warning prior to it going away, and 
(b) the error message in icehouse should point at the actual problem rather than throwing a misleading exception.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1302796

Title:
  nova-compute (icehouse) exits with a misleading error when
  libvirt_vif_driver =
  nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver

Status in OpenStack Compute (Nova):
  New

Bug description:
  In Havana, this was a valid setting:

  libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver

  The nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver class has been
  removed in Icehouse; if nova-compute is run with this setting in
  nova.conf, the resulting error is...

     2014-04-04 19:33:55.783 17413 TRACE nova.virt.driver ImportError:
  Class LibvirtDriver cannot be found (['Traceback (most recent call
  last):\n', '  File "/usr/lib/python2.6/site-
  packages/nova/openstack/common/importutils.py", line 29, in
  import_class\n    return getattr(sys.modules[mod_str], class_str)\n',
  "AttributeError: 'module' object has no attribute 'LibvirtDriver'\n"])

  ...which is misleading, and will cause people to start looking at the
  setting of compute_driver.  The error is caused by the libvirt driver
  attempting to import the vif class:

            vif_class =
  importutils.import_class(CONF.libvirt.vif_driver)

  If this configuration option was valid in Havana, then:

  (a) there should probably be a deprecation warning prior to it going away, and 
  (b) the error message in icehouse should point at the actual problem rather than throwing a misleading exception.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1302796/+subscriptions


Follow ups

References