FlavorDiskTooSmall exception should be communicated to client
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
If you attempt to boot an image that is too large for a given flavor:
$ nova boot --image fedora-21-cloud --flavor m1.tiny test0
The boot will of course fail, but the fault communicated to the client is:
| fault | {"message": "Build of instance 05f6c907-
While in nova-compute.log is a more useful error:
TRACE nova.compute.
It seems as if nova should provide this information in the "fault" key, because it clearly communicates to someone attempting to boot an instance why that instance failed to boot.
Already fixed. Here's what i see in latest devstack.
| fault | {"message": "Build of instance 8eaee112- 8fc8-4479- b989-18f127c392 7e aborted: Flavor's disk is too small for requested image.", "code": 500, "details": " File \"/opt/ stack/nova/ nova/compute/ manager. py\", line 2175, in _do_build_ and_run_ instance |