Comment 6 for bug 1428776

Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

The problem is in processing of data sent by agent. Agent sends two equal MACs for eth1 and eth2 after bond (eth1+eth2) was set up on node:

2015-03-26 11:30:28.439 DEBUG [7f75f5f92740] (logger) Request PUT /api/nodes/agent/ from 10.20.0.3:59227 {"mac":"08:00:27:69:AD:6B","ip":"10.20.0.3","os_platform":"u
buntu","manufacturer":"VirtualBox","platform_name":null,"meta":{"system":{"manufacturer":"VirtualBox","serial":"0","uuid":"60B7662E-C1F8-4249-A852-680AA30818BA","fam
ily":"Virtual Machine","version":"1.2","fqdn":"node-6.domain.tld"},"interfaces":[{"name":"eth0","state":"unknown","mac":"08:00:27:69:AD:6B","driver":"pcnet32","bus_i
nfo":"0000:00:03.0","max_speed":100,"current_speed":100},{"name":"eth1","state":"unknown","mac":"08:00:27:21:6C:55","driver":"pcnet32","bus_info":"0000:00:08.0","max
_speed":100,"current_speed":100},{"name":"eth2","state":"unknown","mac":"08:00:27:21:6C:55","driver":"pcnet32","bus_info":"0000:00:09.0","max_speed":100,"current_spe
ed":100}],"cpu":{"total":1,"real":1,"spec":[{"frequency":3397,"model":"Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz"}]},"disks":[{"name":"sda","model":"VBOX HARDDISK","si
ze":68718428160,"disk":"sda","extra":["disk/by-id/ata-VBOX_HARDDISK_VBc55c314f-06559b1d"],"removable":"0"},{"name":"sdb","model":"VBOX HARDDISK","size":68718428160,"
disk":"sdb","extra":["disk/by-id/ata-VBOX_HARDDISK_VBbc819792-98c3ef30"],"removable":"0"},{"name":"sdc","model":"VBOX HARDDISK","size":68718428160,"disk":"sdc","extr
a":["disk/by-id/ata-VBOX_HARDDISK_VB49e99978-0d1267a1"],"removable":"0"}],"memory":{"total":1042264064}},"is_agent":true,"agent_checksum":"0d3c72789e79195358fdbd61f6
e55b713e32c2bf"}

Nailgun erases interfaces with MACs not present in this data.