error when use api to reset volume status with integer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Tushar Trambak Gite |
Bug Description
When use api to reset volume status,if set the parameter as integer , the server will return 500.
Reproduce step:
1.set the status of the volume as integer
curl -X POST -H "X-Auth-Token: ${mytoken}" "http://
\"os-reset_status\" : {
\"status\" : 1
}
2.set the attach_status of the volume as integer
curl -X POST -H "X-Auth-Token: ${mytoken}" "http://
\"os-reset_status\" : {
\"attach_status\" : 1
}
3.set the migration_status of the volume as integer
curl -X POST -H "X-Auth-Token: ${mytoken}" "http://
\"os-reset_status\" : {
\"migration_
}
we will get such log in c-api.log
1.status
http://
2.attach_status
http://
3.migration_status
http://
Changed in cinder: | |
assignee: | nobody → Zhang Danyang (zdy349) |
status: | New → In Progress |
Changed in cinder: | |
assignee: | nobody → Tushar Trambak Gite (tushargite96) |
Fix proposed to branch: master /review. openstack. org/369277
Review: https:/