Confusing error message when volume create fails
Bug #1846532 reported by
Matt Riedemann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Fan Zhang | ||
Queens |
Fix Committed
|
Low
|
Fan Zhang | ||
Rocky |
Fix Committed
|
Low
|
Fan Zhang | ||
Stein |
Fix Committed
|
Low
|
Fan Zhang | ||
Train |
Fix Committed
|
Low
|
Fan Zhang |
Bug Description
Method `nova.volume.
but in wrapper of `nova.volume.
parameter is volume_id. If we hit cinder exception when creating volumes
like the response body down below:
```
{"itemNotFound": {"message": "Volume type with name xxx could not be found.",
"code": 404}}
```
we may get exception in nova compute log like this:
```
BuildAbortExcep
found.
```
actually, `40` is volume size, not voluem id.
This could be a little misleading.
Changed in nova: | |
assignee: | Fan Zhang (fanzhang) → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Fan Zhang (fanzhang) |
To post a comment you must log in.
Reviewed: https:/ /review. opendev. org/678991 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=0f9311fae19 e4e204cdc601acb e7dafc49c73661
Committed: https:/
Submitter: Zuul
Branch: master
commit 0f9311fae19e4e2 04cdc601acbe7da fc49c73661
Author: Fan Zhang <email address hidden>
Date: Wed Aug 28 11:16:25 2019 +0800
Fix exception translation when creating volume
Method `nova.volume. cinder. API#create` accepts `size` as the 3rd args, cinder. translate_ volume_ exception` , the 3rd und": {"message": "Volume type with name xxx could not be found.", xception: Build of instance xxx aborted: Volume 40 could not be
but in wrapper of `nova.volume.
parameter is volume_id. If we hit cinder exception when creating volumes
like the response body down below:
```
{"itemNotFo
"code": 404}}
```
we may get exception in nova compute log like this:
```
BuildAbortE
found.
```
actually, `40` is volume size, not voluem id.
This could be a little misleading.
Closes-Bug: #1846532
Change-Id: If5b0c2f28773e0 b2fcb008d5251fb 69d950ca569
Signed-off-by: Fan Zhang <email address hidden>