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

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 ).

Kim Klotz Almost 10 years ago