When post an unkown external event to nova api, it will return 500

Bug #1494125 reported by Alex Xu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Alex Xu
Revision history for this message
Alex Xu (xuhj) wrote :

The enum type added after Kilo release https://review.openstack.org/#/c/183131/

That means the v2.1 API already released. But due to this API is only used by sending event between openstack services. I think it's ok fix this in v2.1 API directly without microverions

Changed in nova:
assignee: nobody → Alex Xu (xuhj)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/222033

Changed in nova:
status: New → In Progress
Alex Xu (xuhj)
Changed in nova:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/222033
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=4027bbecdd8cbaf85bb48f750401df33b7ba40af
Submitter: Jenkins
Branch: master

commit 4027bbecdd8cbaf85bb48f750401df33b7ba40af
Author: He Jie Xu <email address hidden>
Date: Thu Sep 10 13:30:39 2015 +0800

    Check unknown event name when create external server event

    The InstanceExternalEvent use enum type for name field, but nova api
    didn't validate the name field, it leads to return 500 when unknown
    event recived.

    InstanceExternalEvent's name field turn to enum type in patch
    https://review.openstack.org/#/c/183131, although it merged after
    v2.1 API release, but this API is only used by openstack services.
    So it's ok for fixing this without Microversions

    Change-Id: I38a6e26d5b66d67645be50c1a907489c8a2d40fe
    Closes-Bug: #1494125

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → liberty-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: liberty-rc1 → 12.0.0
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.