Hostname changer "Unable to get subsection" 1.3.0-RC-7
-
@arnaudrigole said in Hostname changer "Unable to get subsection" 1.3.0-RC-7:
05/10/2016 17:21 Middleware::Response Error multiple hosts returned for list of mac addresses
This seems to be the cause.
-
@Tom-Elliott
I don’t understand…
This issue happens on all computers (100% new, unboxed, never ccnnected to our network) and after imaging with fog
i have no host duplicate in fog gui -
@arnaudrigole It’s likely caused by a virtual network adapter (e.g. a TAP driver, virtualbox, vmware, …).
From the log file, here’s the macs your machine has:
B8:08:CF:3C:95:CE
00:A0:C6:00:00:14
B8:08:CF:3C:95:CA
28:F1:0E:2D:C4:6A
02:50:41:00:00:01
00:00:00:00:00:00:00:E0
I would search each one of them in the fog ui under your host list. At least one of them will return multiple hosts.
-
This seems to be the cause.
I encounter this issue on all our computer, freshly unboxed, never connected on our network and just imaged with fog… No duplicate entries in fog hosts :s
Look at that error in GUI ! ?
-
@arnaudrigole The message is clear. There’s multiple host entries for the mac (or mac’s) in question. This can happen for any number of reasons. If you use a USB NIC, I’m guessing this is “shared” with multiple systems?
-
@Tom-Elliott
Im not using USB nic…
I have no duplicate entries in fog hosts, im 100% sure.
As i said, my test computers are dell laptops just unboxed! There is no duplicate possible -
@arnaudrigole The message is clear, there is a Duplicate somewhere. We need you to search for it by searching for the MAC’s that @Joe-Schmitt gave you earlier.
You can even do a manual sql query if needed.
-
@Joe-Schmitt
Maybe the VPN network card -
@arnaudrigole If you search for each mac (individually) that I listed previously in your FOG web ui as Tom and I have been suggesting then you would see those duplicates.
-
@Joe-Schmitt @Tom-Elliott
Excuse me, i haven’t refreshed that page to see your last messages!
The problem come from our VPN network card… but how can i bypass it ? -
You need to find which mac address is currently associated to multiple hosts.
-
@Tom-Elliott
Yes it’s the 02:50:41:00:00:01 : PANGP (vpn) adapter
So how can i configure fog to bypass that MAC and only read the ethernet / wifi MAC ? -
Now you need to delete that mac address entirely from the database.
This can be done in mysql with:
DELETE FROM hostMAC where hmMAC LIKE '02:50:41:00:00:01';
Then add the MAC to be filtered:
Something like:
UPDATE globalSettings SET settingValue='02:50:41:00:00:01' WHERE settingKey='FOG_QUICKREG_PENDING_MAC_FILTER';
-
The GUI can also be used to add “filtered MAC’s” this is simply a comma separated list (e.g. mac1,mac2,mac3,etc…)
The GUI accessible portion to add the filtered mac is:
FOG Configuration Page ->
FOG Settings ->
FOG Client - Host Register ->
FOG_QUICKREG_PENDING_MAC_FILTER