Confirm Instance Resize through API
Hi I am trying to resize my instance through python-novaclient API using :
server_resources.resize(server,new_flavor_id)
server_resources.confirm_resize(server)
The problem here is that the second method-call is not waiting for the first to finish. So I am getting the exception :
novaclient.exceptions.Conflict: Cannot 'confirmResize' instance 35961255-a2ec-4324-afb1-4084adf10ca3 while it is in vm_state active (HTTP 409) (Request-ID: req-06cb90cf-58d9-476c-be43-ba67eec1c71b)
How to proceed?