[nailgun] Nailgun doesn't check role existence and returns Internal Server Error 500 while trying to get, update, delete non-existing roles in release
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Medium
|
Vitalii Kulanov |
Bug Description
Detailed bug description:
Nailgun doesn't check role existence and returns Internal Server Error 500 while trying to get, update, delete non-existing roles in release.
Use 'curl' or python-fuelclient
[root@fuel ~]# fuel role --rel 1 --role non-existing --file some.yaml
500 Server Error: Internal Server Error for url: http://
Here is nailgun logs:
[root@fuel ~]# tail -n 20 /var/log/
.......
2016-08-26 09:19:36.584 ERROR [7fb668be6880] (base) Unexpected exception occured
Traceback (most recent call last):
File "/usr/lib/
return func(cls, *args, **kwargs)
File "<string>", line 2, in GET
File "/usr/lib/
return func(cls, *args, **kwargs)
File "<string>", line 2, in GET
File "/usr/lib/
resp = func(cls, *args, **kwargs)
File "/usr/lib/
return RoleSerializer.
File "/usr/lib/
meta = release.
KeyError: u'non-existing'
.......
Steps to reproduce:
1. Deploy Fuel (e.g. 1 master + 5 nodes).
2 Try to get, update or delete non-existing role in specific release, .e.g.:
[root@fuel ~]# fuel role --rel 1 --role non-existing --file some.yaml
Expected results:
Valid responce - 404 no such object found
Actual result:
500 Server Error: Internal Server Error for url: http://
Reproducibility:
Always
Description of the environment:
[root@fuel ~]# shotgun2 short-report
cat /etc/fuel_build_id:
586
cat /etc/fuel_
586
cat /etc/fuel_release:
10.0
cat /etc/fuel_
newton-10.0
Changed in fuel: | |
assignee: | nobody → Vitalii Kulanov (vitaliy-t) |
Changed in fuel: | |
importance: | Undecided → Medium |
milestone: | none → 10.0 |
Fix proposed to branch: master /review. openstack. org/361041
Review: https:/