[nailgun] Nailgun returns Internal Server Error 500 while trying to download default facts info for unassigned nodes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Medium
|
Vitalii Kulanov |
Bug Description
Detailed bug description:
If we try to get default facts (provisioning/
[root@fuel ~]# fuel --env 1 provisioning --default --node 1,2,5
500 Server Error: Internal Server Error for url: http://
Nailgun log file results (/var/log/
http://
[root@fuel ~]# fuel --env 1 deployment --default --node 1,2,5
500 Server Error: Internal Server Error for url: http://
Nailgun log file results (/var/log/
http://
Steps to reproduce:
1. Deploy Fuel (e.g. 1 master + 5 nodes).
2. Create new env, but do not add some nodes to it.
3. Try to get fact info through the python-fuelclient, e.g.:
fuel --env 1 provisioning --default --node 5
4. The result of command execution:
500 Server Error: Internal Server Error for url: http://
Expected results:
More user-friendly response with detailed problem description, e.g.:
[root@fuel ~]# fuel --env 1 provisioning --default --node 1,2,5
400 Client Error: Bad Request for url: http://
Actual result:
[root@fuel ~]# fuel --env 1 provisioning --default --node 5
500 Server Error: Internal Server Error for url: http://
Reproducibility:
Always
Description of the environment:
cat /etc/fuel_build_id:
61
cat /etc/fuel_
61
cat /etc/fuel_release:
10.0
cat /etc/fuel_
newton-10.0
Additional information:
The problem is that if we didn't assign some nodes to any environment they don't contain any information about cluster, so while trying to get access to nodes' cluster attributes (e.g. https:/
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/310021
Review: https:/