os-hosts extension accepts invalid host status
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Unmesh Gurjar |
Bug Description
Scenario: Update the status of a host to 'disablabc' using the os-hosts extension.
Request URL: http://
Request Body: {"status": "disablabc"}
Branch: master
Expected Response: 400 (Bad Request), Body: "Invalid status: 'disablabc'"
Actual Response: Currently returns a 500 (bug exists https:/
There is inconsistency in the manner 'status' and 'maintenance_mode' values are checked in the update method. The first 6 characters of the value provided in status is checked. The validation should be similar to 'maintenance_mode', where the entire status string is compared (the possible status values being 'enable' and disable').
Changed in nova: | |
assignee: | nobody → Unmesh Gurjar (unmesh-gurjar) |
tags: | added: essex-rc-potential |
Changed in nova: | |
milestone: | none → essex-rc2 |
tags: | removed: essex-rc-potential |
Changed in nova: | |
milestone: | essex-rc2 → 2012.1 |
Fix proposed to branch: master /review. openstack. org/5666
Review: https:/