Validator for NodeHandler doesn't catch incorrect group_id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
Medium
|
Ryan Moe |
Bug Description
VERSION:
feature_groups:
- mirantis
production: "docker"
release: "7.0"
openstack_
api: "1.0"
build_number: "288"
build_id: "288"
nailgun_sha: "93477f9b42c5a5
python-
fuel-agent_sha: "082a47bf014002
fuel-
astute_sha: "a717657232721a
fuel-library_sha: "121016a09b0e88
fuel-ostf_sha: "1f08e6e7102117
fuelmain_sha: "6b83d6a6a75bf7
The following is resulted in 500 error when node group with provided id does not exist:
[root@nailgun ~]# fuel --env 1 nodegroup --assign --node 1 --group 3
DEPRECATION WARNING: /etc/fuel/
500 Server Error: Internal Server Error ((IntegrityError) insert or update on table "nodes" violates foreign key constraint "nodes_
DETAIL: Key (group_id)=(3) is not present in table "nodegroups".
'UPDATE nodes SET group_id=
[root@nailgun ~]#
API validator should be fixed to catch this situation.
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Ryan Moe (rmoe) |
tags: | added: area-python |
Alexander Gubanov:
Verified on MOS 7.0 (build 257) - have some problem. pastebin. com/hgPBbPTa
Details: http://