I was able to confirm this with a newish (created last week) newton devstack. The failure wasn't on the resize, it was on the revert. Steps:
1. create a duplicate of flavor 42, call it flavor 43 m1.nano2
2. boot instance using flavor 42
3. delete flavor 42
4. resize instance to flavor 43
5. revert the resize, at this point it fails:
ERROR (BadRequest): Flavor used by the instance could not be found. (HTTP 400) (Request-ID: req-98916fd8-846e-4564-ac45-a09933883bb0)
I was able to confirm this with a newish (created last week) newton devstack. The failure wasn't on the resize, it was on the revert. Steps:
1. create a duplicate of flavor 42, call it flavor 43 m1.nano2
2. boot instance using flavor 42
3. delete flavor 42
4. resize instance to flavor 43
5. revert the resize, at this point it fails:
ERROR (BadRequest): Flavor used by the instance could not be found. (HTTP 400) (Request-ID: req-98916fd8- 846e-4564- ac45-a09933883b b0)
This is my version of nova:
stack@swapvol: /opt/stack/ nova$ git log -1 394317533a41ad1 ee3fa13964
commit 6ae2b4534a8a0d5
Merge: 177a2c4 9e305c2
Author: Jenkins <email address hidden>
Date: Thu Apr 14 14:17:51 2016 +0000
Merge "cleanup some issues in parameters.yaml" /opt/stack/ nova$
stack@swapvol:
This is all I see in the n-api logs:
2016-04-18 18:24:59.406 DEBUG nova.compute.api [req-98916fd8- 846e-4564- ac45-a09933883b b0 admin admin] [instance: 630f2bbe- b104-4497- b1a8-936b75fe93 56] Fetching instance by UUID from (pid=27352) get /opt/stack/ nova/nova/ compute/ api.py: 2041 compute. wsgi.server [req-98916fd8- 846e-4564- ac45-a09933883b b0 admin admin] 9.5.125.128 "POST /v2.1/servers/ 630f2bbe- b104-4497- b1a8-936b75fe93 56/action HTTP/1.1" status: 400 len: 383 time: 0.2037680
2016-04-18 18:24:59.497 INFO nova.osapi_