[Openstack] Resize the flavour from m1.small to m1.tiny is not working

Thang Pham thang.g.pham at gmail.com
Mon Jul 14 13:56:48 UTC 2014


​Dhanesh,

You can only resize an instance to a flavor that has a bigger
root/ephemeral disk​.  You cannot resize down.

Regards,
Thang


On Mon, Jul 14, 2014 at 7:51 AM, dhanesh1212121212 <dhanesh1212 at gmail.com>
wrote:

> Hi All,
>
> Two tier set up with centos (icehouse) KVM.
>
> Unable to resize the instance from m1.small to m1.tiny.
>
>
>
>
> Please find the error details below.
>
>
> 2014-07-14 15:53:07.705 1843 ERROR oslo.messaging.rpc.dispatcher [-]
> Exception during message handling: Resize error: Unable to resize disk down.
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher Traceback
> (most recent call last):
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line
> 133, in _dispatch_and_reply
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> incoming.message))
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line
> 176, in _dispatch
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> return self._do_dispatch(endpoint, method, ctxt, args)
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line
> 122, in _do_dispatch
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> result = getattr(endpoint, method)(ctxt, **new_args)
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/nova/exception.py", line 88, in wrapped
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> payload)
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line
> 68, in __exit__
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> six.reraise(self.type_, self.value, self.tb)
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/nova/exception.py", line 71, in wrapped
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> return f(self, context, *args, **kw)
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 280, in
> decorated_function
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher     pass
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line
> 68, in __exit__
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> six.reraise(self.type_, self.value, self.tb)
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 266, in
> decorated_function
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> return function(self, context, *args, **kwargs)
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 333, in
> decorated_function
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> function(self, context, *args, **kwargs)
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 254, in
> decorated_function
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher     break
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line
> 68, in __exit__
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> six.reraise(self.type_, self.value, self.tb)
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 235, in
> decorated_function
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> return function(self, context, *args, **kwargs)
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 309, in
> decorated_function
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher     e,
> sys.exc_info())
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line
> 68, in __exit__
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> six.reraise(self.type_, self.value, self.tb)
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 296, in
> decorated_function
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> return function(self, context, *args, **kwargs)
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 3464, in
> resize_instance
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> self.instance_events.clear_events_for_instance(instance)
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> self.gen.throw(type, value, traceback)
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 5556, in
> _error_out_instance_on_exception
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher     raise
> error.inner_exception
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> ResizeError: Resize error: Unable to resize disk down.
> 2014-07-14 15:53:07.705 1843 TRACE oslo.messaging.rpc.dispatcher
> 2014-07-14 15:53:07.707 1843 ERROR oslo.messaging._drivers.common [-]
> Returning exception Resize error: Unable to resize disk down. to caller
> 2014-07-14 15:53:07.707 1843 ERROR oslo.messaging._drivers.common [-]
> ['Traceback (most recent call last):\n', '  File
> "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line
> 133, in _dispatch_and_reply\n    incoming.message))\n', '  File
> "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line
> 176, in _dispatch\n    return self._do_dispatch(endpoint, method, ctxt,
> args)\n', '  File
> "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line
> 122, in _do_dispatch\n    result = getattr(endpoint, method)(ctxt,
> **new_args)\n', '  File
> "/usr/lib/python2.6/site-packages/nova/exception.py", line 88, in
> wrapped\n    payload)\n', '  File
> "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line
> 68, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', '
> File "/usr/lib/python2.6/site-packages/nova/exception.py", line 71, in
> wrapped\n    return f(self, context, *args, **kw)\n', '  File
> "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 280, in
> decorated_function\n    pass\n', '  File
> "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line
> 68, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', '
> File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 266,
> in decorated_function\n    return function(self, context, *args,
> **kwargs)\n', '  File
> "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 333, in
> decorated_function\n    function(self, context, *args, **kwargs)\n', '
> File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 254,
> in decorated_function\n    break\n', '  File
> "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line
> 68, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', '
> File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 235,
> in decorated_function\n    return function(self, context, *args,
> **kwargs)\n', '  File
> "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 309, in
> decorated_function\n    e, sys.exc_info())\n', '  File
> "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line
> 68, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', '
> File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 296,
> in decorated_function\n    return function(self, context, *args,
> **kwargs)\n', '  File
> "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 3464, in
> resize_instance\n
> self.instance_events.clear_events_for_instance(instance)\n', '  File
> "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__\n
> self.gen.throw(type, value, traceback)\n', '  File
> "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 5556, in
> _error_out_instance_on_exception\n    raise error.inner_exception\n',
> 'ResizeError: Resize error: Unable to resize disk down.\n']
>
>
>
>
>
> Please guide me on this.
>
>
>
>
>
>
> Regards,
> Dhanesh M.
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140714/b978a0e8/attachment.html>


More information about the Openstack mailing list