WOL - no working for groups.
Ubuntu 14.04.4, fog 1.3 RC5
Individual systems will WOL, but not groups. There is no error in the apache log.
@Tom-Elliott Thanks! this did the trick. WOL to groups is now working, but the apache log is spitting out this error now.
[Thu Aug 11 07:17:07.370532 2016] [:error] [pid 32376] [client 10.100.150.44:64341] PHP Warning: array_count_values(): Can only count STRING and INTEGER values! in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 111, referer: http://fog/fog/management/index.php?node=group&sub=edit&id=1532
@UWPVIOLATOR I need more information. The info, as I’m seeing, tends to show that hosts’ aren’t associated to that group. Why do I say that? The message you’re seeing will only show if there’s no hosts to work with.
From what I am seeing, this is exactly the case.
If you’d like you can try using the patch here:
See if it helps. Basically what it will do is attempt to grab the group’s hosts regardless of task type and tell all hosts to wake up if necessary.
Here is what we got.
WOL to a group does NOT work.
WOL to individual host DOES work.
Groups to have members.
WOL does NOT work when deploying imaging task to group.
[Wed Aug 10 14:38:25.164390 2016] [:error] [pid 8234] [client 10.118.150.87:62661] PHP Warning: array_walk() expects parameter 1 to be array, null given in /var/www/html/fog/lib/fog/group.class.php on line 214, referer: http://fog/fog/management/index.php?node=group&sub=deploy&id=1504&type=14
Wake On LAN will happen on all hosts in RC-6. This does also mean it will slow down group taskings a bit as it has to call SQL query for each host in the task.
@ablohowiak I still don’t understand.
When you group task an imaging type (Deploy, Deploy - Without Snapins, Deploy - Debug, Multicast) from groups does it create the tasks? The Advanced Tasks->Wake On Lan does not ever create task manager taskings.
No, that was as an advanced task.
@ablohowiak I don’t understand.
When you create “imaging” tasks from the groups page, it’s not creating the actual tasks?
Yes, but also as an imaging task, but I’ll need to re-confirm that piece. The service had crashed. I’ve confirmed the failure of WOL thru advanced task.
@ablohowiak I’ll take a look at the active group tasks. I’m just guessing by “WOL -no working for groups” you’re meaning WOL Tasking specified from the Advanced Tasks menu item?
Just one line:
[:error] [pid 31478] [client :51206] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/fog/fogpage.class.php on line 390, referer: http://fog/fog/management/index.php?node=group&sub=edit&id=1469
The results say the task was created, but nothing listed in active tasks.
WOL for groups is handled by the FOGScheduler service.
I moved this to fog problems for now.
When you do the WOL with groups, have a second tab open in your browser with the log viewer open.
web interface -> fog configuration -> log viewer -> apache error logs
When you click the wol confirmation, watch the log viewer for a spamming of errors. If there are any, post those please.
I can appreciate starting simple. There are hosts in the group.
Simple question but I have to ask it, make sure there are hosts in the group.