Ports node_id and Nodes chassis_id attributes should be UUID only in the API object

Bug #1251549 reported by Lucas Alvares Gomes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Medium
Lucas Alvares Gomes

Bug Description

Currenly the Ports node_id and Nodes chassis_id attributes on the API accepts both unicode and integer types, but in the API perspective those attributes should be unicode only type.

ironic/api/controllers/v1/node.py: chassis_id = utils.ValidTypes(wtypes.text, six.integer_types)
ironic/api/controllers/v1/port.py: node_id = utils.ValidTypes(wtypes.text, six.integer_types)

Changed in ironic:
assignee: nobody → Lucas Alvares Gomes (lucasagomes)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

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

Changed in ironic:
status: New → In Progress
Revision history for this message
Lucas Alvares Gomes (lucasagomes) wrote :
Changed in ironic:
status: In Progress → Fix Committed
importance: Undecided → Medium
Thierry Carrez (ttx)
Changed in ironic:
milestone: none → icehouse-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ironic:
milestone: icehouse-2 → 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.