[nailgun] Nailgun returns Internal Server Error 500 with incorrectly specified deployment_history task status request
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
High
|
Fuel Sustaining |
Bug Description
Detailed bug description:
Trying to get deployment_history task info with incorrectly specified status leads to 500 Server Error: Internal Server Error.
[root@fuel ~]# fuel deployment-tasks --tid 9 --status pendin --debug
GET http://
500 Server Error: Internal Server Error for url: http://
LINE 3: ...ry.task_id = '9' AND deployment_
[SQL: 'SELECT deployment_
Nailgun logs:
2016-05-24 05:30:00.618 ERROR [7f77beb3f880] (base) Unexpected exception occured
Traceback (most recent call last):
File "/usr/lib/
resp = func(cls, *args, **kwargs)
File "/usr/lib/
statuses)
File "/usr/lib/
iterable=
File "/usr/lib/
return [cls.single.
File "/usr/lib64/
return self._execute_
File "/usr/lib64/
result = conn.execute(
File "/usr/lib64/
return meth(self, multiparams, params)
File "/usr/lib64/
return connection.
File "/usr/lib64/
compiled_sql, distilled_params
File "/usr/lib64/
context)
File "/usr/lib64/
exc_info
File "/usr/lib64/
reraise(
File "/usr/lib64/
context)
File "/usr/lib64/
cursor.
DataError: (psycopg2.
LINE 3: ...ry.task_id = '9' AND deployment_
[SQL: 'SELECT deployment_
Steps to reproduce:
1. Deploy Fuel (e.g. 1 master + 3 nodes).
2. Create env and add several nodes to it.
3. Deploy environment.
4. Try to get deployment history tasks (fuelclient/REST API) with nonexistent (incorrect) status:
fuel deployment-tasks --tid 9 --status pendin --debug (GET http://
Expected results:
Can be:
* 400 Response code with detailed error description
* Return empty result as request don't match any results
Actual result:
500 Server Error: Internal Server Error
Reproducibility:
Always
Description of the environment:
cat /etc/fuel_build_id:
191
cat /etc/fuel_
191
cat /etc/fuel_release:
10.0
cat /etc/fuel_
newton-10.0
Changed in fuel: | |
assignee: | nobody → Vitalii Kulanov (vitaliy-t) |
Changed in fuel: | |
assignee: | Vitalii Kulanov (vitaliy-t) → nobody |
Changed in fuel: | |
milestone: | none → 10.0 |
assignee: | nobody → Fuel Sustaining (fuel-sustaining-team) |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in fuel: | |
status: | Confirmed → Fix Released |
This bug will be fixed in https:/ /review. openstack. org/#/c/ 303037/