← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1155315] Re: Expected exception on volume attach leaves traceback in the logs.

 

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

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

Title:
  Expected exception on volume attach leaves traceback in the logs.

Status in OpenStack Compute (Nova):
  Fix Released
Status in OpenStack Compute (nova) folsom series:
  Fix Released

Bug description:
  Repro steps:

  Attempt to attach volume to an in use device
  $ nova volume-attach bar c3e6b09b-88c8-4fb3-a115-b5921eb0b6f0 /dev/vda
  ERROR: The supplied device path (/dev/vda) is in use. (HTTP 400) (Request-ID: req-d2cfbc33-dbfc-4034-82f0-85b5de3e3fa7)

  Exceptions are correct but we get a large traceback in the logs:

  2013-03-14 13:25:24.996 DEBUG nova.api.openstack.wsgi [req-d2cfbc33-dbfc-4034-82f0-85b5de3e3fa7 demo demo] API request failed, fault raised to the top of the stack. Detailed stacktrace The supplied device path (/dev/vda) is in use.
  Traceback (most recent call last):

    File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 430, in _process_data
      rval = self.proxy.dispatch(ctxt, version, method, **args)

    File "/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch
      return getattr(proxyobj, method)(ctxt, **kwargs)

    File "/opt/stack/nova/nova/exception.py", line 117, in wrapped
      temp_level, payload)

    File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
      self.gen.next()

    File "/opt/stack/nova/nova/exception.py", line 94, in wrapped
      return f(self, context, *args, **kw)

    File "/opt/stack/nova/nova/compute/manager.py", line 206, in decorated_function
      pass

    File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
      self.gen.next()

    File "/opt/stack/nova/nova/compute/manager.py", line 192, in decorated_function
      return function(self, context, *args, **kwargs)

    File "/opt/stack/nova/nova/compute/manager.py", line 234, in decorated_function
      e, sys.exc_info())

    File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
      self.gen.next()

    File "/opt/stack/nova/nova/compute/manager.py", line 221, in decorated_function
      return function(self, context, *args, **kwargs)

    File "/opt/stack/nova/nova/compute/manager.py", line 2757, in reserve_block_device_name
      return do_reserve()

    File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 242, in inner
      retval = f(*args, **kwargs)

    File "/opt/stack/nova/nova/compute/manager.py", line 2746, in do_reserve
      context, instance, bdms, device)

    File "/opt/stack/nova/nova/compute/utils.py", line 164, in get_device_name_for_instance
      raise exception.DevicePathInUse(path=device)

  DevicePathInUse: The supplied device path (/dev/vda) is in use.

  These exceptions are expected so there is no need for traceback.

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