OpenStack nova resize "ERROR: Resize requires a change in size"

Posted About 10 years ago. Visible to the public.

If you get this error when you try to resize an OpenStack instance:

# nova resize example 23 --poll
ERROR: Resize requires a change in size. (HTTP 400)

You need to change your flavor to have a different memory size. It's a bug in an older OpenStack version:

        # /nova/compute/api.py
        if (current_memory_mb == new_memory_mb) and flavor_id:		
            raise exception.CannotResizeToSameSize()

which got fixed 2012-09-12 ( https://git.openstack.org/cgit/openstack/nova/commit/nova/compute/api.py?id=843af52d49554f15c13e5617b9eb672c35c7fe51 Show archive.org snapshot ).

License
Source code in this card is licensed under the MIT License.
Posted by Kim Klotz to makandra dev (2014-05-13 13:12)