[nailgun] RPC reciever calculates wrong result for check_dhcp task

Bug #1252746 reported by Andrey Danin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Wishlist
Unassigned

Bug Description

ISO 3.2

here are a logs:
2013-10-23 21:14:19 INFO (receiver) RPC method check_dhcp_resp received: {"status": "ready", "task_uuid": "b994c28f-e192-4957-8658-bd82d5c25a4a", "nodes": [{"status": "ready", "data": [{"server_id": "10.20.0.2", "iface": "eth0", "yiaddr": "10.20.0.130", "mac": "00:25:90:10:0e:ce", "server_ip": "10.20.0.2", "dport": 67, "message": "offer", "gateway": "0.0.0.0"}], "uid": "2"}, {"status": "ready", "data": [{"server_id": "10.20.0.2", "iface": "eth5", "yiaddr": "10.20.0.155", "mac": "00:25:90:10:0e:ce", "server_ip": "10.20.0.2", "dport": 67, "message": "offer", "gateway": "0.0.0.0"}, {"server_id": "10.20.0.2", "iface": "eth0", "yiaddr": "10.20.0.179", "mac": "00:25:90:10:0e:ce", "server_ip": "10.20.0.2", "dport": 67, "message": "offer", "gateway": "0.0.0.0"}], "uid": "9"}, {"status": "ready", "data": [{"server_id": "10.20.0.2", "iface": "eth5", "yiaddr": "10.20.0.167", "mac": "00:25:90:10:0e:ce", "server_ip": "10.20.0.2", "dport": 67, "message": "offer", "gateway": "0.0.0.0"}, {"server_id": "10.20.0.2", "iface": "eth0", "yiaddr": "10.20.0.176", "mac": "00:25:90:10:0e:ce", "server_ip": "10.20.0.2", "dport": 67, "message": "offer", "gateway": "0.0.0.0"}], "uid": "8"}]}
2013-10-23 21:14:19 DEBUG (receiver) Mac addr on master node ['00:00:00:00:00:00', '00:25:90:10:0e:ce', '00:25:90:10:0e:cf']
2013-10-23 21:14:19 DEBUG (receiver) Check dhcp message None
2013-10-23 21:14:19 DEBUG (helpers) Updating task: b994c28f-e192-4957-8658-bd82d5c25a4a
2013-10-23 21:14:19 INFO (helpers) Task b994c28f-e192-4957-8658-bd82d5c25a4a (check_dhcp) status is set to ready
2013-10-23 21:14:19 INFO (helpers) Task b994c28f-e192-4957-8658-bd82d5c25a4a (check_dhcp) result is set to defaultdict(<type 'list'>, {})
2013-10-23 21:14:19 DEBUG (helpers) Updating cluster status: cluster_id: 4 status: ready
2013-10-23 21:14:19 DEBUG (helpers) Updating parent task: e34b5905-1665-4cef-bf75-0e4a47bc5778.

Suspicious message is: result is set to defaultdict(<type 'list'>, {})

I think the result should have some other value.

Tags: nailgun
description: updated
Mike Scherbakov (mihgen)
Changed in fuel:
milestone: none → 4.0
Mike Scherbakov (mihgen)
Changed in fuel:
assignee: nobody → Andrey Danin (gcon-monolake)
importance: Undecided → Medium
Mike Scherbakov (mihgen)
Changed in fuel:
assignee: Andrey Danin (gcon-monolake) → nobody
Evgeniy L (rustyrobot)
Changed in fuel:
assignee: nobody → Fuel Python Team (fuel-python)
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

This message means that no problem was found during the test.
Non-empty dict is returned otherwise.

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Aleksey Kasatkin (alekseyk-ru)
status: New → In Progress
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

This can be changed to None or {} instead of defaultdict(<type 'list'>, {}).

Changed in fuel:
importance: Medium → Wishlist
status: In Progress → Incomplete
Changed in fuel:
assignee: Aleksey Kasatkin (alekseyk-ru) → nobody
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.