Invalid return for none parameters in plan update

Bug #1822537 reported by liushuai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Karbor
Fix Released
Undecided
liushuai

Bug Description

curl -g -i -X PUT http://controller:8799/v1/b30e2ae087a14c7d9b946fb47da87cb1/plans/bf676d6e-f882-4dfa-b456-6b6ee8a92a0d -H "Content-Type: application/json" -H "User-Agent: python-karborclient" -H "X-Auth-Token: gAAAAABcoa1VWSZLkFa7PgONplTH3CEQFgRYt66TX74Qz_WSRoI0Kx8GPAR7iIiM4Cmj1TrJyO3D0xzj6ghQZEmmtNUITWAtMW4i3uE8bK7Zy6T-0tDxbUDnXMoqpckExX3bI7QENPkeMNZBoNUlZXoPpQjSoCoSdmcp8K-ojMHcU8QKXBdxMPY" -d '{"plan": {}}'
HTTP/1.1 200 OK
X-Compute-Request-Id: req-15fafcf1-8fdf-43be-92eb-9a96307a1a11
Content-Type: application/json
Content-Length: 303
X-Openstack-Request-Id: req-15fafcf1-8fdf-43be-92eb-9a96307a1a11
Date: Mon, 01 Apr 2019 06:19:35 GMT

{"plan": {"status": "suspended", "provider_id": "6659007d-6f66-4a0f-9cb4-17d6aded0bb9", "description": "yyzz", "parameters": {}, "id": "bf676d6e-f882-4dfa-b456-6b6ee8a92a0d", "resources": [{"type": "OS::Cinder::Volume", "id": "2fe432fe-b7a5-4392-b58d-22d979c90150", "name": "abc"}], "name": "120203xx"}}

it shoud renturn {"badRequest": {"message": "Missing updated parameters in request body.", "code": 400}}

liushuai (liushuai503)
Changed in karbor:
assignee: nobody → liushuai (liushuai503)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to karbor (master)

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

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

Reviewed: https://review.openstack.org/648911
Committed: https://git.openstack.org/cgit/openstack/karbor/commit/?id=b68009787a77da17286f3f6093a9aa9e0ce5771b
Submitter: Zuul
Branch: master

commit b68009787a77da17286f3f6093a9aa9e0ce5771b
Author: liushuai <email address hidden>
Date: Mon Apr 1 15:41:30 2019 +0800

    fix check parameters error

    Closes-Bug #1822537

    Change-Id: I2955a83b8c9e525b810aa5f17f9ee0f677d9bcec

Changed in karbor:
status: In Progress → Fix Released
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.