"AttributeError: 'NoneType' object has no attribute 'split'" on rebuild

Bug #1312278 reported by Andrew Laski
10
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-708d-4dc0-b122-a02b424a435f XXXXXX XXXXXX] Caught error: 'NoneType' object has no attribute 'split'

Andrew Laski (alaski)
Changed in nova:
importance: Undecided → Low
status: New → In Progress
assignee: nobody → Andrew Laski (alaski)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/90139
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=0a0c3ced1c8d3145569687d9feaa120c2c542b71
Submitter: Jenkins
Branch: master

commit 0a0c3ced1c8d3145569687d9feaa120c2c542b71
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: Ic9e51a761d0c1f30d55f4a167c876a6aa4f00a41
    Closes-bug: 1312278

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.