← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1416361] Re: Nova doesn't allow to resize down an instance booted from a volume

 

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

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

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

Title:
  Nova doesn't allow to resize down an instance booted from a volume

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  If instance is booted from a volume, Nova won't allow to resize the
  instance down, despite the fact root disk (ephemeral) is not even
  used:

  http://paste.openstack.org/show/164108/

  malor@ubuntu:~/devstack$ nova resize --poll demo m1.tiny

  Server resizing... 100% complete
  Finished

  but in nova-compute.log:

  2015-01-30 11:06:14.535 ERROR oslo.messaging.rpc.dispatcher [req-c788c8b2-d953-4f7f-962c-afca7ad41ff7 demo demo] Exception during message handling: Resize error: Unable to resize disk down.
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 137, in _dispatch_and_reply
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     incoming.message))
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 180, in _dispatch
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 126, in _do_dispatch
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     result = getattr(endpoint, method)(ctxt, **new_args)
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/exception.py", line 88, in wrapped
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     payload)
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 82, in __exit__
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/exception.py", line 71, in wrapped
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     return f(self, context, *args, **kw)
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 296, in decorated_function
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     pass
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 82, in __exit__
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 281, in decorated_function
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 346, in decorated_function
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 269, in decorated_function
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     migration.instance_uuid, exc_info=True)
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 82, in __exit__
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 255, in decorated_function
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 324, in decorated_function
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     kwargs['instance'], e, sys.exc_info())
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 82, in __exit__
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 312, in decorated_function
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 3851, in resize_instance
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     self.instance_events.clear_events_for_instance(instance)
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     self.gen.throw(type, value, traceback)
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 6183, in _error_out_instance_on_exception
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher     raise error.inner_exception
  2015-01-30 11:06:14.535 TRACE oslo.messaging.rpc.dispatcher ResizeError: Resize error: Unable to resize disk down.

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


References