← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1384653] Re: attach encrypted volume, raise "Empty module name" exception

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => kilo-3

-- 
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/1384653

Title:
  attach encrypted volume, raise "Empty module name" exception

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Create encrypted volume type by using "encryption-type-create", the
  provider is "LuksEncryptor". Then attach the encrypted volume to vm,
  there is an exception raising in nova/volume/encryptor/__init__.py.

  The error log:

  2014-10-23 02:03:04.115 ERROR nova.virt.libvirt.driver [req-5f4f611c-2c6f-4e2f-9a42-f9dad529054a admin demo] [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] Failed to attach volume at mountpoint: /dev/vdb
  2014-10-23 02:03:04.115 15313 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] Traceback (most recent call last):
  2014-10-23 02:03:04.115 15313 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d]   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1380, in attach_volume
  2014-10-23 02:03:04.115 15313 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d]     encryption)
  2014-10-23 02:03:04.115 15313 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d]   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1327, in _get_volume_encryptor
  2014-10-23 02:03:04.115 15313 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d]     **encryption)
  2014-10-23 02:03:04.115 15313 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d]   File "/opt/stack/nova/nova/volume/encryptors/__init__.py", line 41, in get_volume_encryptor
  2014-10-23 02:03:04.115 15313 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d]     **kwargs)
  2014-10-23 02:03:04.115 15313 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d]   File "/usr/local/lib/python2.7/dist-packages/oslo/utils/importutils.py", line 38, in import_object
  2014-10-23 02:03:04.115 15313 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d]     return import_class(import_str)(*args, **kwargs)
  2014-10-23 02:03:04.115 15313 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d]   File "/usr/local/lib/python2.7/dist-packages/oslo/utils/importutils.py", line 27, in import_class
  2014-10-23 02:03:04.115 15313 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d]     __import__(mod_str)
  2014-10-23 02:03:04.115 15313 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] ValueError: Empty module name

  the code should add full class name when user set encryption provider
  like "LuksEncryptor" or "CryptsetupEncryptor".

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


References