• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Multicast just hangs

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    30
    3.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rogalskijR
      rogalskij
      last edited by rogalskij

      I have most things working correctly in FOG. One thing that is still not working properly is multicasting. When I attempt it with a known working image, the computers reboot just fine but then they get to the “partclone” screen and they never start imaging. I noticed in the “multicast” settings that my interface was some odd designation. I tried changing it to either “eth0” or “em1” to match the CentOS server settings but to no avail. Not sure what I am doing wrong. Can anyone assist? My desktop support team would love to image our computer labs with this on campus.

      Multicast settings:

      UDPCAST INTERFACE eth0

      UDPCAST STARTINGPORT 62142

      MULTICAST MAX SESSIONS 64

      UDPCAST MAXWAIT 20

      MULTICAST ADDRESS

      MULTICAST PORT OVERRIDE 0

      MULTICAST DUPLEX FULL_DUPLEX

      MULTICAST RENDEZVOUS

      This is the screen it gets stuck on:

      IMG_20190830_150312.jpg

      1 Reply Last reply Reply Quote 0
      • rogalskijR
        rogalskij @rogalskij
        last edited by

        Found the issue! After some research and discussion with Cisco, we had to add “PIM” to the vlan on our core, even though both the server and client are both on the same vlan!

        Used the command - ip pim sparse-dense-mode on vlan 1 interface and it started working like a charm! I really appreciate everyone’s assistance here. This will help our institution so very much.

        1 Reply Last reply Reply Quote 2
        • S
          Sebastian Roth Moderator
          last edited by Sebastian Roth

          @rogalskij Issue probably is that newer versions of FOG ignore the multicast interface setting and choose the interface “automatically” . This is probably going wrong in your setup. Please check the log in /var/log/fog/multicast.log just to make sure.

          Read Tom Elliott’s post here: https://forums.fogproject.org/topic/13387/unable-to-change-multicast-nic

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 1
          • rogalskijR
            rogalskij
            last edited by

            I tried to look but the logs don’t provide all that much information to me. I believe my interface is “em1” and that is what I should be using. I have attached the logs for all to look at to see if anything can be ascertained from them. I read the link you sent but I don’t see anything I should change or do to rectify the issue. I really appreciate all this assistance from everyone.

            Attached log files:
            multicast.log.udpcast10.txt multicast.log.udpcast9.txt multicast.log.udpcast8.txt multicast.log

            george1421G 1 Reply Last reply Reply Quote 0
            • george1421G
              george1421 Moderator @rogalskij
              last edited by george1421

              @rogalskij fwiw the relevant lines in regards to which interface is here

              Command: /usr/local/sbin/udp-sender --interface em1 --min-receivers 3 --max-wait 1200 --portbase 56590 --full-duplex --ttl 32 --nokbd --nopointopoint --file /images/BaseImage/d1p1.img;/usr/local/sbin/udp-sender --interface em1 --min-receivers 3 --max-wait 10 --portbase 56590 --full-duplex --ttl 32 --nokbd --nopointopoint --file /images/BaseImage/d1p2.img;
              
              Task startedUdp-sender 20120424
              Using mcast address 238.155.1.70
              UDP sender for /images/BaseImage/d1p1.img at x.x.x.x on em1 
              Broadcasting control to 224.0.0.1
              

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

              1 Reply Last reply Reply Quote 1
              • george1421G
                george1421 Moderator
                last edited by

                So the first question I would have is: Are the target systems and the FOG server on the same subnet (vlan)?

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                rogalskijR 1 Reply Last reply Reply Quote 1
                • rogalskijR
                  rogalskij @george1421
                  last edited by

                  @george1421 Yes, they are both on “vlan 1” for the moment. Both are on the same subnet.

                  george1421G 1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @rogalskij Is your VLAN 1 bound to em1 on your FOG server?

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    rogalskijR 1 Reply Last reply Reply Quote 1
                    • rogalskijR
                      rogalskij @Sebastian Roth
                      last edited by

                      @Sebastian-Roth I checked the Apache log you mentioned, but all I see from that day doesn’t make a ton of sense to me:

                      [Fri Aug 30 15:25:11.052318 2019] [mpm_prefork:notice] [pid 2739] AH00170: caught SIGWINCH, shutting down gracefully
                      [Fri Aug 30 15:28:26.997884 2019] [core:notice] [pid 2727] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
                      [Fri Aug 30 15:28:27.032137 2019] [suexec:notice] [pid 2727] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
                      [Fri Aug 30 15:28:27.101535 2019] [lbmethod_heartbeat:notice] [pid 2727] AH02282: No slotmem from mod_heartmonitor
                      PHP Warning: Module ‘ldap’ already loaded in Unknown on line 0
                      [Fri Aug 30 15:28:27.268250 2019] [mpm_prefork:notice] [pid 2727] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.21 configured – resuming normal operations
                      [Fri Aug 30 15:28:27.268287 2019] [core:notice] [pid 2727] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’

                      Does this make sense? Am I looking at something wrong here?

                      1 Reply Last reply Reply Quote 0
                      • george1421G
                        george1421 Moderator @rogalskij
                        last edited by

                        @rogalskij said in Multicast just hangs:

                        Yes, they are both on “vlan 1” for the moment. Both are on the same subnet.

                        Please clarify, you have 2 network adapters on the same subnet(vlan) do they have different IP address subnets? If they are on the same subnet, there may be an issue.

                        When you have a multicast running if you run the following command from the fog server command prompt: sudo ps aux|grep udp-sender you will see the current syntax that called the multicast sender.

                        So its getting all the way to partclone bits and then its failing? Can you/have you unicast this image before?

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                        rogalskijR 1 Reply Last reply Reply Quote 0
                        • rogalskijR
                          rogalskij @george1421
                          last edited by

                          @george1421 Wait, you aren’t allowed to have the FOG server on the same subnet as the clients?! This is how we do most everything right now. We plan to subnet our devices later on, but previously with Ghost and other multicast products we just multicast with devices and the server on the same subnet. Is this still possible?

                          Additionally, the output of the command you specified “sudo ps aux|grep udp-sender” is:

                          root 13864 0.0 0.0 115300 1480 ? S Aug30 0:00 sh -c /usr/local/sbin/udp-sender --interface em1 --min-receivers 3 --max-wait 1200 --portbase 56590 --full-duplex --ttl 32 --nokbd --nopointopoint --file /images/BaseImage/d1p1.img;/usr/local/sbin/udp-sender --interface em1 --min-receivers 3 --max-wait 10 --portbase 56590 --full-duplex --ttl 32 --nokbd --nopointopoint --file /images/BaseImage/d1p2.img;
                          root 14393 0.0 0.0 8688 660 ? S Aug30 0:00 /usr/local/sbin/udp-sender --interface em1 --min-receivers 3 --max-wait 10 --portbase 56590 --full-duplex --ttl 32 --nokbd --nopointopoint --file /images/BaseImage/d1p2.img
                          root 31094 0.0 0.0 112708 992 pts/0 S+ 11:39 0:00 grep --color=auto udp-sender

                          As you can see, it sees the interface em1, unless I am wrong and em1 isn’t the name of the interface, but that is what it says when I do an “ip addr” command on the server.

                          george1421G 1 Reply Last reply Reply Quote 0
                          • george1421G
                            george1421 Moderator @rogalskij
                            last edited by

                            @rogalskij said in Multicast just hangs:

                            Wait, you aren’t allowed to have the FOG server on the same subnet as the clients?!

                            Just for clarity I read that you have 2 network interfaces on the same subnet. Is that accurate?

                            So from your output command I see you have 2 multicasts running at the moment from 30-Aug.

                            OK what do you get when you run the ip addr show command?

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                            rogalskijR 1 Reply Last reply Reply Quote 0
                            • rogalskijR
                              rogalskij @george1421
                              last edited by Sebastian Roth

                              @george1421 Yes, I have the “em1” interface of the FOG server, and the network card of the Dell Computer I am trying to image on the same subnet.

                              The output of the “ip addr show” command on the FOG server is:

                              1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
                                  link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
                                  inet 127.0.0.1/8 scope host lo
                                     valid_lft forever preferred_lft forever
                                  inet6 ::1/128 scope host
                                     valid_lft forever preferred_lft forever
                              2: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
                                  link/ether d4:ae:52:af:b5:63 brd ff:ff:ff:ff:ff:ff
                                  inet 150.155.1.70/20 brd 150.155.15.255 scope global noprefixroute dynamic em1
                                     valid_lft 704372sec preferred_lft 704372sec
                                  inet6 fe80::3d39:c85:7bf0:e61e/64 scope link noprefixroute
                                     valid_lft forever preferred_lft forever
                              3: em2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
                                  link/ether d4:ae:52:af:b5:64 brd ff:ff:ff:ff:ff:ff
                              
                              george1421G 1 Reply Last reply Reply Quote 0
                              • george1421G
                                george1421 Moderator @rogalskij
                                last edited by

                                @rogalskij ok now that we understand your hardware setup a bit more. To my question, have you ever imaged using your “BaseImage” image using unicast?

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                rogalskijR 1 Reply Last reply Reply Quote 0
                                • rogalskijR
                                  rogalskij @george1421
                                  last edited by

                                  @george1421 Yes, when I capture or deploy an image using Unicast, everything is happy ducky wonderful. Images capture and deploy without an issue what so ever.

                                  george1421G 1 Reply Last reply Reply Quote 0
                                  • george1421G
                                    george1421 Moderator @rogalskij
                                    last edited by

                                    @rogalskij ok so here is where we are:

                                    1. Its not the image because it deploys correctly using unicast
                                    2. We know the installed network adapters and em1 is the correct network adapter, it has an ip address and is currently up
                                    3. The ps command shows that udp-sender should be using network interface em1
                                    4. The target computers and fog server is on the same vlan so no additional infrastructure work is needed.
                                    5. At least some of the multicasts are getting through since the clients are able to check in and the stream starts.
                                    6. It appears to hang at the partclone screen

                                    We still don’t know if the infrastructure is setup correctly for multicasting (i.e. igmp snooping is enabled on vlan 1).
                                    We don’t know if the multicast settings are right in the fog configuration.
                                    We don’t know if the fog server’s firewall has been enabled but multicasts not allowed.

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                    rogalskijR 1 Reply Last reply Reply Quote 1
                                    • rogalskijR
                                      rogalskij @george1421
                                      last edited by

                                      @george1421

                                      Some additional information and questions:

                                      I enabled “igmp snooping” on all of the switches and I verified that it is enabled on the switch that lab full of computers sits under.

                                      I am happy to review the multicast settings. I put them in the main body of this post, do they look correct?

                                      How do I check the firewall on the fog server (CentOS 7). I am pretty sure I disabled it entirely but can’t remember.

                                      I did a config restore from my dev system which was a virtual machine. Could this be screwing something up? Something brought over incorrectly?

                                      george1421G 1 Reply Last reply Reply Quote 0
                                      • george1421G
                                        george1421 Moderator @rogalskij
                                        last edited by

                                        @rogalskij What network switches do you use?

                                        I’ve been looking back in my docs and I found a documented multicasting issue with meraki switches.

                                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                        rogalskijR 1 Reply Last reply Reply Quote 0
                                        • rogalskijR
                                          rogalskij @george1421
                                          last edited by

                                          @george1421 We use Cisco C2960S switches in those labs. The core is also Cisco.

                                          george1421G 1 Reply Last reply Reply Quote 0
                                          • george1421G
                                            george1421 Moderator @rogalskij
                                            last edited by

                                            @rogalskij Well then, lets assume the fog server is setup correctly. The firewall thing may not be an issue because the prerequisites for installing fog is the firewall being off. Some organizations, that isn’t allow so its turned on with specific rules fog needs to operate. If the multicast is not part of those rules then that function will be disabled. FWIW: systemctl stop firewalld and systemctl disable firewalld is what you need to stop and then disable the linux firewall.

                                            So if you plug 2 clients into the same switch is the fog server and then schedule a multicast deployment job with max clients of 2, when that second client comes online does the multicast move forward? Now this is on the same switch as the FOG server.

                                            Oh one other comment I found is to make sure you have port-fast or one of the other fast spanning tree protocols enabled on the switch.

                                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                            1 Reply Last reply Reply Quote 0
                                            • S
                                              Sebastian Roth Moderator
                                              last edited by

                                              @rogalskij Sometimes old tasks can cause issues where partclone hangs on that screen. May I ask you to cancel all current tasks, reboot the FOG server and then schedule a fresh multicast task lets say for three machines (all on the same switch!). Let us know if the clients hang again.

                                              If they do I ask you to run ps aux | grep sender again and post output here.

                                              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                              george1421G 1 Reply Last reply Reply Quote 0
                                              • 1
                                              • 2
                                              • 1 / 2
                                              • First post
                                                Last post

                                              291

                                              Online

                                              12.0k

                                              Users

                                              17.3k

                                              Topics

                                              155.2k

                                              Posts
                                              Copyright © 2012-2024 FOG Project