Confusing error message in BadRequest during floating ip assignment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Augustina Ragwitz |
Bug Description
Seen on mos 10, 1 controller/1 compute.
Not very difficult to trigger, though isn't reproduced on every run (got 3 hits in ~15 runs).
The error was seen while running this script (sorry about my bash http://
Steps to reproduce:
1). create floating id with nova floating-ip-create
2). boot a VM
3). right afterwards (not waiting for the VM to reach active state) assign a floating ip via nova floating-
In ~20% of runs the following error was received:
ERROR (BadRequest): No nw_info cache associated with instance (HTTP 400) (Request-ID: req-907e70c0-
The VM didn't get floating ip during unsuccessful runs.
Expected result: nova would wait for the VM to become active before trying to assign a floating ip.
description: | updated |
Changed in nova: | |
status: | Incomplete → New |
Changed in nova: | |
status: | Confirmed → Triaged |
@Inessa:
What was your expectation when you executed these steps?
1) That the API waits for the instance to become ACTIVE and then assign the floating IP?
2) An API Bad Request with a more helpful information?
3) ?
FWIW, the error you see gets raised at https:/ /github. com/openstack/ nova/blob/ 5044db5fce2e952 243cd5961cc1a10 7658c32a10/ nova/api/ openstack/ compute/ floating_ ips.py# L225-L230
I'm not yet sure this is a bug. Please switch the status back to "New" after you provided your expected outcome in this situation.