← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1303591] Re: InvalidAggregateAction exception is not handled

 

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

** Changed in: nova
    Milestone: None => juno-2

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

Title:
  InvalidAggregateAction exception is not handled

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  When an aggregate with 'host' attribute not empty is deleted, InvalidAggregateAction exception will be raised, but this exception
  is not handled.

  $ nova --os-compute-api-version 3 aggregate-delete agg5
  ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'nova.exception.InvalidAggregateAction'> (HTTP 500) (Request-ID: req-9a8500ae-379a-4121-b217-7e7ea6188ad0)

  2014-04-07 23:56:16.347 ERROR nova.api.openstack.extensions [req-f7c09203-a681-496c-a84e-18fb3d2e3659 admin demo] Unexpected exception in API method
  2014-04-07 23:56:16.347 TRACE nova.api.openstack.extensions Traceback (most recent call last):
  2014-04-07 23:56:16.347 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/api/openstack/extensions.py", line 472, in wrapped
  2014-04-07 23:56:16.347 TRACE nova.api.openstack.extensions     return f(*args, **kwargs)
  2014-04-07 23:56:16.347 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/api/openstack/compute/plugins/v3/aggregates.py", line 155, in delete
  2014-04-07 23:56:16.347 TRACE nova.api.openstack.extensions     self.api.delete_aggregate(context, id)
  2014-04-07 23:56:16.347 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/exception.py", line 88, in wrapped
  2014-04-07 23:56:16.347 TRACE nova.api.openstack.extensions     payload)
  2014-04-07 23:56:16.347 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
  2014-04-07 23:56:16.347 TRACE nova.api.openstack.extensions     six.reraise(self.type_, self.value, self.tb)
  2014-04-07 23:56:16.347 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/exception.py", line 71, in wrapped
  2014-04-07 23:56:16.347 TRACE nova.api.openstack.extensions     return f(self, context, *args, **kw)
  2014-04-07 23:56:16.347 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/compute/api.py", line 3363, in delete_aggregate
  2014-04-07 23:56:16.347 TRACE nova.api.openstack.extensions     reason='not empty')
  2014-04-07 23:56:16.347 TRACE nova.api.openstack.extensions InvalidAggregateAction: Cannot perform action 'delete' on aggregate 3. Reason: not empty.

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


References