I can’t multicast an image to multiple hosts in a group. I don’t think this is a FOG issues as much as it is a UDPCast issue but, I’m running out of ideas.
Things I CAN do:
[LIST=1]
[]I can create a group with a single host and multicast to that (pointless but it shows it can work).
[]If I multicast to a group and prevent all the hosts except one from checking in (say by unplugging them) then it will happily multicast to that single client after it times out (UDPSENDER_MAXWAIT = 90).
[/LIST]
Below is the log files where:
[COLOR=#ff0000]myFOGserver[/COLOR] is running Scientific Linux 6.2 (Carbon), FOG 0.32, FOG Kernel-3.2.4.core and Syslinux 4.05
[COLOR=#ff0000]TEST-HOST-1[/COLOR] is a Dell Optiplex 990
[COLOR=#ff0000]TEST-HOST-2[/COLOR] is a Dell Optiplex 780
I also swapped out the IP’s in the log files with the above host names.
Here’s the udp-sender command running on the FOG server (wrapped to make it easier to read):
[CODE]sh -c gunzip -c “/images/TestLab/rec.img.000” |
/usr/local/sbin/udp-sender --min-receivers 2 --portbase 63140 --interface eth0 --max-wait 90 --half-duplex --ttl 32 --nokbd;
gunzip -c “/images/TestLab/sys.img.000” |
/usr/local/sbin/udp-sender --min-receivers 2 --portbase 63140 --interface eth0 --max-wait 90 --half-duplex --ttl 32 --nokbd;
/usr/local/sbin/udp-sender --min-receivers 2 --portbase 63140 --interface eth0 --max-wait 90 --half-duplex --ttl 32 --nokbd[/CODE]
So, the server has fired up udp-sender on port 63140
Here’s the contents of /tftboot/pxelinux.cfg/[COLOR=#ff0000]MAC_ADDRESS[/COLOR] for [COLOR=#ff0000]TEST-HOST-1 [/COLOR](identical to [COLOR=#ff0000]TEST-HOST-2[/COLOR]):
[CODE]append initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= type=down img=<TestLab>
mc=yes port=63140 storageip=<myFOGserver> storage=<myFOGserver>:/images/ mac=<foobar>
ftp=myFOGserver web=<myFOGserver>/fog/ osid=5 imgType=n shutdown= loglevel=4 consoleblank=0
reboot=bios fdrive= chkdsk=0 hostname=<TEST-HOST-1>[/CODE]
The clients are given the correct information to launch udp-receiver
Here’s /var/log/messages:
[CODE]rpc.mountd: authenticated mount request from <TEST-HOST-1>:816 for /images (/images)
udpcast: New connection from <TEST-HOST-1> (#0)
udpcast: first connection: min wait[0] secs - max wait[90] - min clients[2]
rpc.mountd: authenticated mount request from <TEST_HOST-2>:822 for /images (/images)
udpcast: New connection from <TEST_HOST-2> (#1)
udpcast: min receivers[2] reached: starting
udpcast: Starting transfer: file[] pipe[] port[63142] if[eth0] participants[2]
…unrelated entries…
udpcast: dropped client #0 because of timeout
udpcast: Disconnecting #0 (<TEST-HOST-1>)
udpcast: dropped client #1 because of timeout
udpcast: Disconnecting #1 (<TEST-HOST-2>)[/CODE]
Both clients connect, broadcast apparently starts and then times out.
Here’s /opt/fog/log/multicast.log.udpcast.1:
[CODE]Udp-sender 2007-12-28
Using mcast address 232.blah.blah.blah
UDP sender for (stdin) at <myFOGserver> on eth0
Broadcasting control to 224.0.0.1
New connection from <TEST-HOST-1> (#0) 00000009
New connection from <TEST-HOST-2> (#1) 00000009
Starting transfer: 00000009
Timeout notAnswered=[0,1] notReady=[0,1] nrAns=0 nrRead=0 nrPart=2 avg=10000
…repeats above line several times…
Dropping client #0 because of timeout
Disconnecting #0 (<TEST-HOST-1>)
Dropping client #1 because of timeout
Disconnecting #1 (<TEST-HOST-2>)
gzip: stdout: Broken pipe
Udp-sender 2007-12-28
Using mcast address 232.blah.blah.blah
UDP sender for (stdin) at <myFOGserver> on eth0
Broadcasting control to 224.0.0.1[/CODE]
Same thing here as in /var/log/messages.
Meanwhile both clients show “Please wait…” on their screens.
Does anyone have any ideas on how to fix this or to continue troubleshooting?