[OSTF] OSTF reports Internal Server Error if try to get list of test sets for non-existing environment through the REST API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
New
|
Undecided
|
Unassigned |
Bug Description
Detailed bug description:
OSTF reports Internal Server Error if try to get list of test sets for non-existing environment through the REST API:
[tivalii@fuel] curl -s -H "X-Auth-Token: $AUTH_TOKEN" http://
Internal Server Error
[root@fuel ~]# tail /var/log/ostf.log -n 25
2016-09-18 19:09:15 INFO (connectionpool) Starting new HTTP connection (1): 10.20.0.2
2016-09-18 19:09:15 DEBUG (connectionpool) "GET /api/clusters/3 HTTP/1.1" 404 None
2016-09-18 19:09:15 DEBUG (connectionpool) "GET /api/nodes?
2016-09-18 19:09:15 DEBUG (connectionpool) "GET /api/releases/
2016-09-18 19:09:15 ERROR (hooks) Pecan state <pecan.
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
result = controller(*args, **kwargs)
File "/usr/lib/
mixins.
File "/usr/lib/
cluster_attrs = _get_cluster_
File "/usr/lib/
release_data = REQ_SES.
File "/usr/lib/
return complexjson.
File "/usr/lib64/
return _default_
File "/usr/lib64/
obj, end = self.raw_decode(s)
File "/usr/lib64/
return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Nailgun logs:
[root@fuel ~]# tail -f /var/log/
2016-09-18 19:16:55.321 DEBUG [7ff5962ef880] (logger) Request GET /api/clusters/3 from 10.20.0.2:37428
2016-09-18 19:16:55.332 DEBUG [7ff5962ef880] (logger) Response code '404 Not Found' for GET /api/clusters/3 from 10.20.0.2:37428
2016-09-18 19:16:55.339 DEBUG [7ff5962ef880] (logger) Request GET /api/nodes?
2016-09-18 19:16:55.363 DEBUG [7ff5962ef880] (logger) Response code '200 OK' for GET /api/nodes?
2016-09-18 19:16:55.370 DEBUG [7ff5962ef880] (logger) Request GET /api/releases/
2016-09-18 19:16:55.373 DEBUG [7ff5962ef880] (logger) Response code '404 Not Found' for GET /api/releases/
Reproducibility:
Always
Description of the environment:
[root@fuel ~]# shotgun2 short-report
cat /etc/fuel_build_id:
667
cat /etc/fuel_
667
cat /etc/fuel_release:
10.0
cat /etc/fuel_
newton-10.0
This is either fuelclient bug or Nailgun.
Fuel API returns None for many calls, but fuelclient always expects JSON.