Groups
-
Quick Host Registration and Inventory
and
Perform Full Host Registration and InventoryiPXE Grub Menu Options.
-
@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?!?
-
@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 Thanks for explaining this again! Now that I understand it I get the impression that we had that mentioned in the forum some time ago already. Not sure if that’s true and what happend to it.
@george1421 @Wayne-Workman @Tom-Elliott Does that ring a bell for you?
-
@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 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.
-
@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:
https://forums.fogproject.org/topic/11166/adding-host-in-a-group-and-create-it-bug
https://forums.fogproject.org/topic/12032/creating-group-members-add-themselves -
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? -
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 I’m using local standard database and i see that problem, but i have identified the undesired hosts as iPXE menu registered hosts.
-
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?