hypervisor and near attributes do not exist in scheduler_hints parameter

Bug #1278279 reported by Ken'ichi Ohmichi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Ken'ichi Ohmichi

Bug Description

The API samples of scheduler-hints contains "hypervisor" and "near" attributes like the following:

{
    "server" : {
        "name" : "new-server-test",
        "image_ref" : "http://glance.openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b",
        "flavor_ref" : "http://openstack.example.com/openstack/flavors/1",
        "os-scheduler-hints:scheduler_hints": {
            "hypervisor": "xen",
            "near": "48e6a9f6-30af-47e0-bc04-acaed113bb4e"
        }
    }
}

However the attributes do not exist in the scheduler-hints parameter of "create a server" API.

Changed in nova:
assignee: nobody → Ken'ichi Ohmichi (oomichi)
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/72263

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

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

commit b699c703e00eda1c8368b2470815b8cfc2fae2e4
Author: Ken'ichi Ohmichi <email address hidden>
Date: Mon Feb 10 23:21:38 2014 +0900

    Fix the sample and unittest params of v3 scheduler-hints

    The API samples of scheduler-hints contains "hypervisor" and "near"
    attributes, but the attributes do not exist in the scheduler-hints
    parameter of "create a server" API. This patch changes them to the
    existing "same_host" attribute.
    This patch also changes the attributes of some unit tests of the v3
    scheduler-hints by the same attribute.

    This nonexistent attributes are found during bp/nova-api-validation-fw
    works. The implementation needs this change because it will deny the
    unexpected attributes, which are not defined with API schema, in API
    parameters.

    DocImpact
    Closes-Bug: #1278279

    Change-Id: I8542f44b325ba909fdff8b569146c0015b150291

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