When i add machines to a group, it adds random machines at the same time.
We have had this issue for some time and thought it was a bug, but this would have been fixed by now if it was. We do complete the DB maintenance tasks as well and from memory this helped but this also don’t seem to resole it anymore.
As we have had so many requests about this topic I have tried to sort this out and properly fix it. Turned out to be quite hard but I hope I got it now without causing any other harm.
@Tom-Elliott Can you please take a look at this commit and let me know if something jumps at you that could cause us trouble. I mean I have tested things a bit but as I had to change code right in the FOGController class I am unsure about side effects this might cause. What do you think?
@Wayne-Workman I’m using local standard database and i see that problem, but i have identified the undesired hosts as iPXE menu registered hosts.
I knew there was another forum post describing that issue: https://forums.fogproject.org/topic/13225/database-maintenance-script
I even had that one on my list of things to look into and fix but as the list is too long…
Ok this definitely needs fixing! I will try to get this done in the next days.
Wayne Workman last edited by
This could possibly be related: https://forums.fogproject.org/topic/13717/fog-with-galera-snapin-problems
We never got down to why some of @Neil’s systems deployed snapins but not all. It’s entirely possible that not all of the computers were in the group as he thought they were. @Neil, how did you register those systems you tried to deploy to?
@EduardoTSeoane Thanks, would be great if you’d look into this and see what you can find!
A quick search in the forums revealed those two topic that sound similar:
@Sebastian-Roth I have not heard of that before. The only add on (out side of the baseline code) is persistent groups plugin. But that does not add hosts to groups, it only copies settings from the template host to the target host. At no time does the script add host to hostgroups in the database.
So I would have to wonder why the main code would add random hosts to host groups unless for some reason multiple hosts would have the same host ID.
@Sebastian-Roth Ok no problem, it’s better for me. I learn english and i get help, it’s a great reward, hehehe
Thank’s to all the team for your time and efforts. if you want I can spend some time to find it and report the thread, to you.
It’s not important for me because I don’t use that feature. I’m only trying to help telling my experiences. Maybe, after i resolve some works i can offer me to help in another ways.
@Sebastian-Roth uhmmm, I try with another words.
When I create a group, selecting some computers on host management, fog adds at least some computers registered from iPXE boot menu.
If I select some computers, from host management, and add them to a existing group, fog adds, at least, some computers registered from iPXE boot menu.
I don’t know if some is equal to all
I delete them and reregistered from Web UI and they dont be added anymore. I thinked that was a database error, and I do not investigate the problem for that reason. How we don’t usually work’s “on place”, we usually have that menu disabled and I don’t see this effect anymore.
@EduardoTSeoane Alright, I was just confused because iPXE and Grub are two completely different things…
Is this right, when you register a PC through the iPXE boot menu it will be added to a group next time you add another host to that group?!?
Quick Host Registration and Inventory
Perform Full Host Registration and Inventory
iPXE Grub Menu Options.
@EduardoTSeoane What do you mean by “registered via grub”??
@ITCC I’have the same problem but the pc’s added are ever the same and i discover that was registered via grub
@ITCC Please take a screen captured video of the steps you make and the outcome you get. Post that here.