Defect observed in folsom release
Get flavors with both minDisk and minRam filters returns bad request instead of display matched flavors
Steps:
$curl -i http://15.184.83.251:8774/v2/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors?minDisk=20?minRam=2 -X GET -H "X-Auth-Project-Id: nova_auto_project" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: af25f084920446a1bcc16083e1d25c6a"
HTTP/1.1 400 Bad Request
Content-Length: 80
Content-Type: application/json; charset=UTF-8
X-Compute-Request-Id: req-dd8d877b-3521-49d4-8d42-8995fe67ca63
Date: Thu, 02 Aug 2012 06:19:03 GMT
{"badRequest": {"message": "Invalid minDisk filter [20?minRam=2]", "code": 400}}[murali_koripally@pshys0286 ~]$
Observation:
Returns bad request instead of displaying matched flavors
Flavors with individual minRam and minRam filters are woking fine
$curl -i http://15.184.83.251:8774/v2/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors?minRam=2 -X GET -H "X-Auth-Project-Id: nova_auto_project" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: af25f084920446a1bcc16083e1d25c6a"
HTTP/1.1 200 OK
X-Compute-Request-Id: req-d86a83d2-2574-4541-ba7f-dadaf83edc48
Content-Type: application/json
Content-Length: 1239
Date: Thu, 02 Aug 2012 06:18:50 GMT
{"flavors": [{"id": "1", "links": [{"href": "http://15.184.83.251:8774/v2/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/1", "rel": "self"}, {"href": "http://15.184.83.251:8774/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/1", "rel": "bookmark"}], "name": "m1.tiny"}, {"id": "2", "links": [{"href": "http://15.184.83.251:8774/v2/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/2", "rel": "self"}, {"href": "http://15.184.83.251:8774/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/2", "rel": "bookmark"}], "name": "m1.small"}, {"id": "3", "links": [{"href": "http://15.184.83.251:8774/v2/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/3", "rel": "self"}, {"href": "http://15.184.83.251:8774/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/3", "rel": "bookmark"}], "name": "m1.medium"}, {"id": "4", "links": [{"href": "http://15.184.83.251:8774/v2/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/4", "rel": "self"}, {"href": "http://15.184.83.251:8774/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/4", "rel": "bookmark"}], "name": "m1.large"}, {"id": "5", "links": [{"href": "http://15.184.83.251:8774/v2/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/5", "rel": "self"}, {"href": "http://15.184.83.251:8774/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/5", "rel": "bookmark"}], "name": "m1.xlarge"}]}[murali_koripally@pshys0286 ~]$
$curl -i http://15.184.83.251:8774/v2/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors?minDisk=20 -X GET -H "X-Auth-Project-Id: nova_auto_project" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: af25f084920446a1bcc16083e1d25c6a"
HTTP/1.1 200 OK
X-Compute-Request-Id: req-6d2a6092-d20b-4fda-9a40-47f15741db37
Content-Type: application/json
Content-Length: 995
Date: Thu, 02 Aug 2012 06:19:28 GMT
{"flavors": [{"id": "2", "links": [{"href": "http://15.184.83.251:8774/v2/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/2", "rel": "self"}, {"href": "http://15.184.83.251:8774/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/2", "rel": "bookmark"}], "name": "m1.small"}, {"id": "3", "links": [{"href": "http://15.184.83.251:8774/v2/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/3", "rel": "self"}, {"href": "http://15.184.83.251:8774/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/3", "rel": "bookmark"}], "name": "m1.medium"}, {"id": "4", "links": [{"href": "http://15.184.83.251:8774/v2/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/4", "rel": "self"}, {"href": "http://15.184.83.251:8774/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/4", "rel": "bookmark"}], "name": "m1.large"}, {"id": "5", "links": [{"href": "http://15.184.83.251:8774/v2/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/5", "rel": "self"}, {"href": "http://15.184.83.251:8774/5e8e6e11adf74ee5b9141d4c6c5fad94/flavors/5", "rel": "bookmark"}], "name": "m1.xlarge"}]}[murali_koripally@pshys0286 ~]$
Your curl command is a bad request:
curl -i http:// 15.184. 83.251: 8774/v2/ 5e8e6e11adf74ee 5b9141d4c6c5fad 94/flavors? minDisk= 20?minRam= 2 -X GET -H "X-Auth-Project-Id: nova_auto_project" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: af25f084920446a 1bcc16083e1d25c 6a"
it should be minDisk=20&minRam=2 not minDisk= 20?minRam= 2....replace the '?' with a '&'. Multiple parameters are delimited by ampersands.