server fault is not blacklisted for filtering/sorting
Bug #1762870 reported by
Matt Riedemann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Medium
|
Unassigned |
Bug Description
The server['fault'] response key is a joined column in the instance_faults table, but is not listed in the blacklisted list of joined table keys:
it's also not listed as an ignored sort key, but we can't sort on fault since it's a dict in the response:
I'm not sure what would happen if you tried sorting instances on fault, but I think filtering on fault probably results in a 500 error.
To post a comment you must log in.
Looks like we just ignore "fault" as a query parameter:
stack@rocky:~$ curl http:// 162.253. 55.188/ compute/ v2.1/servers? fault=test -H "x-auth-token: $TOKEN" | python -m json.tool
Dload Upload Total Spent Left Speed d27e-4da0- 8644-a7341be91c 6f",
"links" : [
" href": "http:// 162.253. 55.188/ compute/ v2.1/servers/ f3406368- d27e-4da0- 8644-a7341be91c 6f",
" rel": "self"
" href": "http:// 162.253. 55.188/ compute/ servers/ f3406368- d27e-4da0- 8644-a7341be91c 6f",
" rel": "bookmark"
% Total % Received % Xferd Average Speed Time Time Time Current
100 311 100 311 0 0 3970 0 --:--:-- --:--:-- --:--:-- 3987
{
"servers": [
{
"id": "f3406368-
{
},
{
}
],
"name": "test-server2"
}
]
}
stack@rocky:~$
Probably because of this:
https:/ /github. com/openstack/ nova/blob/ 43f4755d5e034a6 ff1cd5788d76851 642027a54e/ nova/api/ openstack/ compute/ schemas/ servers. py#L394