Invalid response when creating node template without param

Bug #1165008 reported by Vadim Rovachev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
Medium
Sergey Lukjanov

Bug Description

Invalid response returned when creating node template without value of required node process param.

Expected result:
HTTP return status is 400

and specific error message/code

Actual result:
HTTP return status is 500

## request

POST http://url/v0.2/token/node-templates
body: {
    "node_template": {
        "name": "custom-user-template",
        "node_type": "TT+DN",
        "flavor_id": "m1.medium",
        "task_tracker": {
            "heap_size": 384,
            "max_map_tasks": 3,
            "max_reduce_tasks": 1,
            "task_heap_size": 640
        },
        "data_node": {
            "heap_size": ""
        }
    }
}

actual response:
{ "error_message": "Template 'custom-user-template', value missed for required param: data_node heap_size", "error": 500 }

Tags: 0.1.1
Changed in savanna:
importance: Undecided → Medium
Changed in savanna:
status: New → Confirmed
Changed in savanna:
milestone: none → 0.1.1
Changed in savanna:
assignee: nobody → Alexander Ignatov (aignatov)
summary: - create node template without value of node param
+ Сreate node template without value of node param
Changed in savanna:
assignee: Alexander Ignatov (aignatov) → Sergey Lukjanov (slukjanov)
status: Confirmed → In Progress
summary: - Сreate node template without value of node param
+ Invalid response when creating node template without param
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to savanna (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to savanna (master)

Reviewed: https://review.openstack.org/27055
Committed: http://github.com/stackforge/savanna/commit/a35389c6097087404ae388565e452f28aad3a921
Submitter: Jenkins
Branch: master

commit a35389c6097087404ae388565e452f28aad3a921
Author: Sergey Lukjanov <email address hidden>
Date: Wed Apr 17 14:38:35 2013 +0400

    Validation for required process props added

    Change-Id: I9a8c5d19fcccffa7831a30a47cecb3a1c654387e
    Fixes: bug #1165008

Changed in savanna:
status: In Progress → Fix Committed
Changed in savanna:
milestone: 0.1.1 → 0.1.1a1
Changed in savanna:
status: Fix Committed → Fix Released
tags: added: 0.1.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.