User can pass scheduler_hints inside volume object for volume create API on master
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Pooja Jadhav |
Bug Description
On current master, user can pass scheduler_hints inside volume object.
One should not able to pass since its job of scheduler_hints as an extension.
For volume create API, first request transfers to scheduler_hints and extracts the hints and these extracted hints are part of volume object.
To be allies with NOVA, one should NOT pass scheduler_hints inside volume object.
In case of NOVA, server create API, if we pass scheduler_hints inside server object, it throws 400 error:
curl -g -i -X POST http://<IP Address>
HTTP/1.1 400 Bad Request
Date: Thu, 24 May 2018 07:06:24 GMT
Server: Apache/2.4.18 (Ubuntu)
OpenStack-
X-OpenStack-
Vary: OpenStack-
Content-Type: application/json; charset=UTF-8
Content-Length: 325
x-openstack-
x-compute-
Connection: close
{"badRequest": {"message": "Invalid input for field/attribute server. Value: {u'flavorRef': u'1', u'scheduler_hints': {u'test': u'abc'}, u'name': u'test_vm1', u'imageRef': u'f122daad-
Steps to reproduce:
In cinder, it returns 202 Accepted. It should return 400 Bad Request for scheduler_hints parameter for volume create API.
In case of CINDER, volume create API,
curl -g -i -X POST http:// <ip_address>
HTTP/1.1 202 Accepted
Date: Wed, 30 May 2018 07:12:34 GMT
Server: Apache/2.4.18 (Ubuntu)
x-compute-
Content-Type: application/json
Content-Length: 845
OpenStack-
Vary: OpenStack-
x-openstack-
Connection: close
{"volume": {"migration_
Changed in cinder: | |
assignee: | nobody → Pooja Jadhav (poojajadhav) |
status: | New → In Progress |
Fix proposed to branch: master /review. openstack. org/573093
Review: https:/