The placement consumer generation conflict error message can be misleading

Bug #1778071 reported by Chris Dent on 2018-06-21
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Eric Fried

Bug Description

When using consumer generations to create new allocations, the value of the generation is expected to be None on the python side, and 'null' in JSON. The error response sent over the API says "expected None but got 1" which doesn't help much since the api is in JSON.

Fix proposed to branch: master

Changed in nova:
assignee: nobody → Eric Fried (efried)
status: Triaged → In Progress

Submitter: Zuul
Branch: master

commit 07460610f8de0c6d224a0a3dea8d9ead63c61bcc
Author: Eric Fried <email address hidden>
Date: Thu Jun 21 09:16:17 2018 -0500

    placement: s/None/null/ in consumer conflict msg

    The placement API had a message complaining that it was "expecting None"
    which is python-speak when it should be JSON speak. This change
    corrects the message and adds a gabbi test for it.

    Change-Id: Ibfb3d581588c8eb954a9faca19d9cb26d2c28861
    Closes-Bug: #1778071

Changed in nova:
status: In Progress → Fix Released

This issue was fixed in the openstack/nova development milestone.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers