yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #24018
[Bug 1384531] [NEW] attach encrypted volume failed, exception info is not right
Public bug reported:
when attaching encrypted volume to the vm, the process is failed because
import the encryptor class to raise an exception(Empty module name). But
the exception info in the log file is not right. The log is like this:
2014-10-22 21:40:39.089 ERROR nova.virt.libvirt.driver [req-92b203b3-bda6-4013-a946-c3760363b819 admin demo] [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] Failed to attach volume at mountpoint: /dev/vdb
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] Traceback (most recent call last):
2014-10-22 21:40:39.089 25617 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-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] encryption)
2014-10-22 21:40:39.089 25617 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-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] **encryption)
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] File "/opt/stack/nova/nova/volume/encryptors/__init__.py", line 44, in get_volume_encryptor
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] provider=provider, exception=e)
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] File "/usr/lib/python2.7/logging/__init__.py", line 1449, in error
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] self.logger.error(msg, *args, **kwargs)
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] File "/usr/lib/python2.7/logging/__init__.py", line 1178, in error
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] self._log(ERROR, msg, args, **kwargs)
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] TypeError: _log() got an unexpected keyword argument 'exception'
This error info is caused by wrong log printing in
/opt/stack/nova/nova/volume/encryptors/__init__.py(line 44).
** Affects: nova
Importance: Undecided
Assignee: wanghao (wanghao749)
Status: New
** Changed in: nova
Assignee: (unassigned) => wanghao (wanghao749)
--
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/1384531
Title:
attach encrypted volume failed, exception info is not right
Status in OpenStack Compute (Nova):
New
Bug description:
when attaching encrypted volume to the vm, the process is failed
because import the encryptor class to raise an exception(Empty module
name). But the exception info in the log file is not right. The log is
like this:
2014-10-22 21:40:39.089 ERROR nova.virt.libvirt.driver [req-92b203b3-bda6-4013-a946-c3760363b819 admin demo] [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] Failed to attach volume at mountpoint: /dev/vdb
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] Traceback (most recent call last):
2014-10-22 21:40:39.089 25617 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-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] encryption)
2014-10-22 21:40:39.089 25617 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-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] **encryption)
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] File "/opt/stack/nova/nova/volume/encryptors/__init__.py", line 44, in get_volume_encryptor
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] provider=provider, exception=e)
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] File "/usr/lib/python2.7/logging/__init__.py", line 1449, in error
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] self.logger.error(msg, *args, **kwargs)
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] File "/usr/lib/python2.7/logging/__init__.py", line 1178, in error
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] self._log(ERROR, msg, args, **kwargs)
2014-10-22 21:40:39.089 25617 TRACE nova.virt.libvirt.driver [instance: c2589f3a-3d20-44fc-bb37-88e65cb13b2d] TypeError: _log() got an unexpected keyword argument 'exception'
This error info is caused by wrong log printing in
/opt/stack/nova/nova/volume/encryptors/__init__.py(line 44).
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1384531/+subscriptions
Follow ups
References