"AttributeError: 'NoneType' object has no attribute 'split'" on rebuild
Bug #1312278 reported by
Andrew Laski
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Andrew Laski |
Bug Description
If the rebuild POST request is sent with a body like {"rebuild": {"imageRef": null}} the API will return a 500 response. The reason for this is that a split() is attempted on imageRef, which causes the following logged error.
2014-04-23 02:03:13.229 14084 ERROR nova.api.openstack [req-533af88c-
Changed in nova: | |
importance: | Undecided → Low |
status: | New → In Progress |
assignee: | nobody → Andrew Laski (alaski) |
Changed in nova: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-1 → 2014.2 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/90139 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=0a0c3ced1c8 d3145569687d9fe aa120c2c542b71
Committed: https:/
Submitter: Jenkins
Branch: master
commit 0a0c3ced1c8d314 5569687d9feaa12 0c2c542b71
Author: Andrew Laski <email address hidden>
Date: Thu Apr 24 12:26:13 2014 -0400
On rebuild check for null image_ref
While parsing the body passed in a rebuild request there is no check to
ensure that image_ref is not None. This leads to a raised exception and
500 response by the API.
Change-Id: Ic9e51a761d0c1f 30d55f4a167c876 a6aa4f00a41
Closes-bug: 1312278