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

    Multicast Issues on Centos 7

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    61
    43.5k
    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.
    • B
      BedCruncher
      last edited by BedCruncher

      I am having issues with getting multicasting to work. I am currently running Centos 7 that is patched and up to date. I have also went out and installed the latest FOG Trunk version (as of today) 7264.

      I can get it to start booting and doing the image restore, but it hangs on the partclone screen “Start to restore image” . Is there anything I can try to get this working?

      EDIT:
      I’ve also went in and modified the rc.local file as specified at FOG Centos 7

      EDIT 2:
      I am running a dual NIC configuration
      Em1 is DHCP
      Em2 is static set with address 192.168.240.10 and DHCP server on that interface

      1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman
        last edited by

        Look at this:
        https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_Downloading_-_Multicast

        https://wiki.fogproject.org/wiki/index.php?title=Multicast

        let us know how it goes, we are here to help.

        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!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        Wayne WorkmanW 1 Reply Last reply Reply Quote 0
        • B
          BedCruncher
          last edited by

          I’ve verified that the interface is set correctly in the storage management on the web gui. It has em2 listed there. I’ve also truncated the tables specified in the first link and restarted the services. Still hanging.

          0_1461345166597_upload-5d431115-9e7f-40b1-93bc-23ca585f632a

          I am getting in the multicast log

          12:42:29.341277 UDP sender for /opt/fog/.fogsettings at xxx.xxx.xxx.xxx on em1
          12:42:29.341288 Broadcasting control to xxx.xxx.xxx.xxx
          12:44:54.434308 Using mcast address xxx.xxx.xxx.xxx

          It seems to be ignoring the specified interface in the .fogsettings file.

          I had to make one modification to the UDP-Cast command in that it shows the clients connecting if I specify em2 instead of em1.

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            The interface to check would be at the Storage Node, not the Global Settings (those are just a failsafe if everything else fails to work right.)

            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            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

            B 1 Reply Last reply Reply Quote 1
            • B
              BedCruncher @Tom Elliott
              last edited by BedCruncher

              @Tom-Elliott 0_1461347866309_upload-edb39534-8efa-4e25-a06d-e5f83c75d6f6

              Sorry… I’ve verified this as above and the settings are what I would expect for both the IP Address and the interface.

              1 Reply Last reply Reply Quote 0
              • D
                dvchuyen
                last edited by

                I’m facing same problem

                1 Reply Last reply Reply Quote 0
                • Wayne WorkmanW
                  Wayne Workman
                  last edited by

                  I’m going to work on a far more simplified multicast test that people can set up using udpsender and udpreciever

                  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!
                  Daily Clean Installation Results:
                  https://fogtesting.fogproject.us/
                  FOG Reporting:
                  https://fog-external-reporting-results.fogproject.us/

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    BedCruncher @Wayne Workman
                    last edited by

                    @Wayne-Workman

                    Using one of the links, can’t remember which. I was able to get the server and client to send using the udp-sender and udp-receiver. So I know they can talk, but I had to use the command.

                    udp-sender --file /opt/fog/.fogsettings --log /opt/fog/log/multicast.log  --ttl 32 --nopointopoint --interface em2
                    

                    if I dropped the last bit off then it would still try to grab em1 instead of em2.

                    Wayne WorkmanW 2 Replies Last reply Reply Quote 1
                    • Wayne WorkmanW
                      Wayne Workman @BedCruncher
                      last edited by Wayne Workman

                      @BedCruncher said in Multicast Issues on Centos 7:

                      @Wayne-Workman

                      Using one of the links, can’t remember which. I was able to get the server and client to send using the udp-sender and udp-receiver. So I know they can talk, but I had to use the command.

                      udp-sender --file /opt/fog/.fogsettings --log /opt/fog/log/multicast.log  --ttl 32 --nopointopoint --interface em2
                      

                      if I dropped the last bit off then it would still try to grab em1 instead of em2.

                      wiki

                      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!
                      Daily Clean Installation Results:
                      https://fogtesting.fogproject.us/
                      FOG Reporting:
                      https://fog-external-reporting-results.fogproject.us/

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

                        @BedCruncher said:

                        if I dropped the last bit off then it would still try to grab em1 instead of em2.

                        Can you please schedule another multicast job and check with ps ax | grep udp to see if the started commands are missing the --interface parameter on your system?

                        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

                        B 1 Reply Last reply Reply Quote 0
                        • B
                          BedCruncher @Sebastian Roth
                          last edited by

                          @Sebastian-Roth said in Multicast Issues on Centos 7:

                          ps ax | grep udp

                          Are you saying I need to do this from the debug boot or schedule a normal multicast and run something along the lines of

                          watch -n 5 'ps aux | grep udp'
                          
                          1 Reply Last reply Reply Quote 0
                          • B
                            BedCruncher
                            last edited by

                            I’ve updated my current install version to 7300 earlier today and tried to again reapply the fix specified in the wiki to change the command for the function getIPAddress in the file fogbase.class.php and not in the file FOGCore.Class.php

                            exec("/sbin/ip addr list em2 | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}/[0-9]\{1,2\}' | cut -d/ -f1", $arR, $retVal);
                            
                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by

                              @BedCruncher I didn’t have much time to replicate this on one of my test machines yet. So I kind of just throw ideas at you, sorry.

                              Running ps aux | grep udp on the FOG server - to see all the command line options…

                              The command in function getIPAddress (fogbase.class.php) lookes like this in current trunk:

                              exec("/sbin/ip addr | awk -F'[ /]+' '/global/ {print $3}'",$IPs,$retVal);
                              

                              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

                              B 1 Reply Last reply Reply Quote 0
                              • B
                                BedCruncher @Sebastian Roth
                                last edited by

                                @Sebastian-Roth said in Multicast Issues on Centos 7:

                                exec(“/sbin/ip addr | awk -F’[ /]+’ ‘/global/ {print $3}’”,$IPs,$retVal);

                                No worries Sebastian, I’m just trying to get the exact information you’re requesting. Want to make sure that you get the pertinent information for your question so that we can get this figured out 100%.

                                I changed the function back to what you posted from current trunk. I had attempted to change it in relation to the
                                FOG .32 Centos 7 Instructions, but to no avail.

                                Keep the ideas coming. I’d love to put this one to bed and get back to using this awesome software!

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

                                  @BedCruncher Ok, I finally had some time to spin up my test machine and give it a try. Setting ens4 instead of eth0 in the storage settings I get this in the logs:

                                  [04-26-16 9:46:58 pm]  | CMD: cat /images/foo/d1p1.img | /usr/local/sbin/udp-sender --interface ens4 --min-receivers 2 --max-wait 600 --portbase 58038 --full-duplex --ttl 32 --nokbd --nopointopoint...
                                  

                                  As well I see the command (options) in the process tree on the FOG server with ps ax | grep udp:

                                  3350 ?        S      0:00 sh -c cat /images/foo/d1p1.img | /usr/local/sbin/udp-sender --interface ens4 --min-receivers 2 --max-wait 600 --portbase 62258 --full-duplex --ttl 32 --nokbd --nopointopoint
                                  

                                  This is with FOG trunk unmodified. I don’t think you need to change fogbase.class.php! Please see what you have in your process list on the FOG server after starting the multicast task.

                                  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

                                  B 1 Reply Last reply Reply Quote 0
                                  • B
                                    BedCruncher @Sebastian Roth
                                    last edited by BedCruncher

                                    @Sebastian-Roth

                                    So I started the multicast session from my server this morning and checked the Multicast Log from the webgui, but I am not seeing that that command has fired off in the logs. Also, I don’t see the udp task showing up in my process list. Excuse my ignorance, but did I do something incorrect?

                                    EDIT:
                                    The command to at least trigger the process has worked though as it starts the process of trying to do the imaging but hangs at the same spot as before. Any guidance would be helpful.

                                    Just realized maybe you were referring to have me run the UDP-Sender / UDP-Receiver commands manually?

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

                                      @BedCruncher said:

                                      Just realized maybe you were referring to have me run the UDP-Sender / UDP-Receiver commands manually?

                                      Nope, I was asking you to run the command ps ax | grep udp and show the output to us. From what I get you don’t seem to have any udp-sender processes running after you started multicast task. Please make sure you have a valid image on your server: ls -al /images/<img-name> (please post the output here as well!)…

                                      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

                                      B 1 Reply Last reply Reply Quote 0
                                      • B
                                        BedCruncher @Sebastian Roth
                                        last edited by BedCruncher

                                        @Sebastian-Roth

                                        Here’s the result of the

                                        ls -al
                                        
                                        ls -al /images/
                                        total 4
                                        drwxrwxrwx.  5 root root   81 Apr 27 10:39 .
                                        dr-xr-xr-x. 20 root root 4096 Apr 27 10:08 ..
                                        drwxrwxrwx.  2 root root   22 Apr 27 10:39 dev
                                        -rwxrwxrwx.  1 root root    0 Apr 27 08:48 .mntcheck
                                        drwxrwxrwx.  2 root root   29 Apr 27 08:48 postdownloadscripts
                                        drwxrwxrwx.  2 root root   69 Apr 27 10:39 W7Px64PreSysprep
                                        

                                        and

                                        ps -aux | grep udp
                                        
                                        ps aux | grep udp
                                        root     25751  0.0  0.0 112644   960 pts/1    S+   10:45   0:00 grep --color=auto udp
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by Sebastian Roth

                                          @BedCruncher No UDP-sender processes… please check you multicast.log to see if it actually starts any…

                                          As stated in one of my earlier posts I see this in my multicast.log:

                                          [04-26-16 9:46:58 pm]  | CMD: cat /images/foo/d1p1.img | /usr/local/sbin/udp-sender --interface ens4 ...
                                          

                                          You might want to upgrade to the latest version as Tom has fixed a bug which truncated the log file every so often. So you might miss the output. Upgrade and then see what you have in the logfile!

                                          As well, show us what you have in the image directory: ls -al /images/W7Px64PreSysprep

                                          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

                                          B 1 Reply Last reply Reply Quote 0
                                          • B
                                            BedCruncher @Sebastian Roth
                                            last edited by

                                            @Sebastian-Roth
                                            Results of

                                             ls -al /images/W7Px64PreSysprep/
                                            total 22338008
                                            drwxrwxrwx. 2 root root          69 Apr 27 10:39 .
                                            drwxrwxrwx. 5 root root          81 Apr 27 10:39 ..
                                            -rwxrwxrwx. 1 root root     1048576 Apr 27 10:12 d1.mbr
                                            -rwxrwxrwx. 1 root root     8561702 Apr 27 10:12 d1p1.img
                                            -rwxrwxrwx. 1 root root 22864501047 Apr 27 10:39 d1p2.img
                                            -rwxrwxrwx. 1 root root         190 Apr 27 10:12 d1.partitions
                                            

                                            On a side note, I went in earlier and completely wiped out my current install according to Uninstall Fog and then reinstalled earlier this morning and the multicast portion didn’t show up at all until manually ran touch /opt/fog/log/multicast.log and the selection was also missing from the Log Viewer menu. I verified the file permissions of that file compared to the other longs under that directory.

                                            Just downloaded build 7348 and am now getting
                                            0_1461777264325_upload-aaa9be64-165d-4547-9748-779c94f5ade1

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • First post
                                              Last post

                                            155

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project