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

Problems multicasting fog on different vlans

Scheduled Pinned Locked Moved
Linux Problems
4
35
14.0k
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.
  • Y
    Yamakazi
    last edited by Yamakazi May 29, 2016, 8:41 AM May 29, 2016, 2:40 PM

    Hi guys,

    I made a setup with a FOG server to distribute multicast images.
    Just made a big post on the gns3 forums, but maybe it’s not gns3 thats not properly working but fog. So hence i’m posting here aswell.

    My setup (and problem) can be viewed at the gns3 forum which have a lot of images
    https://www.gns3.com/qa/fog-won-t-multicast-in-vlan-setu

    I recently discovered some other problems

    Multicast seems to be working if i test it.
    0_1464532658218_1.png
    0_1464532668477_2.png

    Altough Fog is not multicasting properly
    0_1464532674845_3.png
    0_1464532682454_4.png

    Do i need a storage node for each different vlan? i would like to avoid that though. Unicast is working fine, so not sure why multicast can’t find the image.

    Any help or tips are appreciated. If you need more information, just ask and i’ll upload it!

    Greets,
    Bert

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Wayne Workman May 29, 2016, 9:19 AM May 29, 2016, 2:58 PM

      The errors in the log say image file:/images/Debian image not found!

      Can you go into that directory and ensure files are there? Also - try to unicast using this image and see what happens, as part of troubleshooting.

      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 May 29, 2016, 3:09 PM

        @Yamakazi The iperf multicast test you’re doing. Is this from one VLAN to another? If yes, then I think we need to take a closer look at how FOG is calling the udp-sender/-receiver commands to see why it is not working. But if you cannot make the multicast test with iperf work across VLANs then you need to check your network setup. Have you read through this already?

        Looking at the configs pictures you posted I see “Incoming Interface: Null”. Not sure if this is right. Although I have to admit that I don’t do cisco-multicast-VLAN-configs on a daily basis. So I’d need to read the manuals. to see how this should actually be setup. So I am just pointing out what jumps to my eye.

        192.168.x.1 might be a default router address within those networks. Not sure what cisco OSPF config is really doing. The TCP dup ACKs are definitely not nice. Not sure if this is somehow related - TCP is definitely not directly connected to UDP multicast but it might have the same root cause?! To be able to further check I’d need to take a look at the full pcap file. Feel free to upload here and I’ll have a look. Or send me a private message with a download link in case you feel this is to sensitive for the public eye.

        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

        Y 1 Reply Last reply May 29, 2016, 3:26 PM Reply Quote 0
        • Y
          Yamakazi @Sebastian Roth
          last edited by Yamakazi May 29, 2016, 9:36 AM May 29, 2016, 3:26 PM

          @Sebastian-Roth

          The iperf multicast is from the fog server (cloud1) to vlan 11 (host7) and seems to be working. So i’m thinking my setup is alright…
          Dhcp is reaching my hosts, i can unicast images to them so that all seems to be working properly.

          “incomming interface: Null” where exactly are you seeing this?

          My cisco knowledge is better then my fog knowledge, so i’m thinking i might not have properly setup fog?
          OSPF is working fine and shouldn’t give any problems in this case. The TCP dub ACKs are indeed troublesome, but i’m not sure what they mean in this case.

          what you mean with the full pcap file? where is it located? i’ll upload it right after.

          @Wayne-Workman

          Image is present and unicast is working. Could it have anything to do with permissions?
          0_1464535994342_2.PNG

          W 1 Reply Last reply May 29, 2016, 3:49 PM Reply Quote 0
          • W
            Wayne Workman @Yamakazi
            last edited by May 29, 2016, 3:49 PM

            @Yamakazi Permissions on the images directory for troubleshooting purposes should be 777 (which you have), and ownership should be fog:root

            chown -R fog:root /images

            However I doubt this is the cause of the problems.

            One serious question that I have is - for the VLAN where the fog server resides, does multicasting work there?

            Have you looked through this article yet?
            https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_Downloading_-_Multicast

            There’s also this one:
            https://wiki.fogproject.org/wiki/index.php?title=Multicast

            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/

            Y 1 Reply Last reply May 29, 2016, 4:34 PM Reply Quote 0
            • Y
              Yamakazi @Wayne Workman
              last edited by Yamakazi May 29, 2016, 10:35 AM May 29, 2016, 4:34 PM

              @Wayne-Workman

              Just tested it and multicasting is also not working in the same subnet /vlan. This means i somehow didn’t properly setup fog.

              I’ve been through those websites a bunch of times already.

              Maybe i should go for a complete reinstall 😞

              any particular things i should focus on when setting fog up for multicasting?

              W 2 Replies Last reply May 29, 2016, 5:42 PM Reply Quote 0
              • W
                Wayne Workman @Yamakazi
                last edited by Wayne Workman May 29, 2016, 11:43 AM May 29, 2016, 5:42 PM

                @Yamakazi in the first troubleshoot multicast link, there are some commands to clear stuff out of the DB for it, and then try to restart the FOGMulticastManager and see what happens.

                systemctl restart FOGMulticastManager or service FOGMulticastManager restart

                For now, focus on multicasting on the VLAN the fog server is on.

                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/

                Y 1 Reply Last reply May 29, 2016, 6:14 PM Reply Quote 0
                • W
                  Wayne Workman @Yamakazi
                  last edited by May 29, 2016, 5:46 PM

                  @Yamakazi Also, it appears you’re using 1.2.0 ? There are some improvements in the Multicast area in FOG Trunk, the developmental version. Well worth the move in my opinion. Something specifically added is the ability to define a custom multicast and port address, should you want to customize it. Without those, the default broadcast address of the broadcast domain that the fog server resides within is used.

                  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
                  • Y
                    Yamakazi @Wayne Workman
                    last edited by Yamakazi May 29, 2016, 12:15 PM May 29, 2016, 6:14 PM

                    @Wayne-Workman
                    0_1464545636089_upload-cb30d58d-d8df-4b3e-89b1-bdf77da2dca7

                    I know when you install fog it asks for a mysql password, but i’ve left that blank.

                    Can i upgrade to the newer version? or do i need to do a fresh install?

                    W 1 Reply Last reply May 29, 2016, 6:16 PM Reply Quote 0
                    • W
                      Wayne Workman @Yamakazi
                      last edited by May 29, 2016, 6:16 PM

                      @Yamakazi You can do either. Both work. You’re using bert Switch to root with sudo -i and then try.

                      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/

                      Y 1 Reply Last reply May 29, 2016, 6:17 PM Reply Quote 0
                      • Y
                        Yamakazi @Wayne Workman
                        last edited by May 29, 2016, 6:17 PM

                        @Wayne-Workman

                        I also tried as root user. Check the image 🙂

                        W 2 Replies Last reply May 29, 2016, 6:19 PM Reply Quote 0
                        • W
                          Wayne Workman @Yamakazi
                          last edited by May 29, 2016, 6:19 PM

                          @Yamakazi sudo -i

                          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
                          • W
                            Wayne Workman @Yamakazi
                            last edited by Wayne Workman May 29, 2016, 2:26 PM May 29, 2016, 6:24 PM

                            @Yamakazi Well if no password is set, root should have permission. Also - if root didn’t have permission, the fog web interface wouldn’t even work, as it uses local root access to MySQL.

                            Check if you have a password set on the DB, the credentials FOG uses to access it are in /opt/fog/.fogsettings

                            Also, you can check what’s set inside of config.class.php:
                            cat /var/www/html/fog/lib/fog/config.class.php

                            Additional reading:
                            https://wiki.fogproject.org/wiki/index.php?title=Password_Central
                            and
                            https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_MySQL

                            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/

                            Y 1 Reply Last reply May 30, 2016, 5:13 PM Reply Quote 0
                            • Y
                              Yamakazi @Wayne Workman
                              last edited by Yamakazi May 30, 2016, 11:45 AM May 30, 2016, 5:13 PM

                              @Wayne-Workman

                              I did a fresh install and managed to get multicast working in the same subnet but not in different vlans.
                              This is what i get when i’m in the database excuting those commands.

                              0_1464628730218_Knipsel.PNG

                              The .fogsettings file seems to be empty?
                              Config file is below
                              0_1464630238071_100.PNG
                              0_1464630243183_101.PNG
                              0_1464630247635_103.PNG

                              Q 1 Reply Last reply May 30, 2016, 6:12 PM Reply Quote 0
                              • Q
                                Quazz Moderator @Yamakazi
                                last edited by May 30, 2016, 6:12 PM

                                @Yamakazi Just a guess, but try manually typing those commands, since I’m guessing mysql only accepts either ` or ’ and not both.

                                Could also simply do

                                TRUNCATE TABLE multicastSessions;
                                TRUNCATE TABLE multicastSessionsAssoc;
                                DELETE FROM tasks WHERE taskTypeID=8;
                                

                                if you don’t care about any current multicast tasks.

                                Y 1 Reply Last reply May 30, 2016, 6:40 PM Reply Quote 0
                                • Y
                                  Yamakazi @Quazz
                                  last edited by Yamakazi May 30, 2016, 12:50 PM May 30, 2016, 6:40 PM

                                  @Quazz
                                  0_1464634235818_foggg.PNG
                                  hmmm it keeps giving these syntax errors

                                  i also tried troubleshooting by sending an udp packet as explained in link text

                                  And i the same subnet it is working. When i try it with a client in a different subent i get this

                                  0_1464633615348_udp.PNG
                                  The udp packet seems to stop there.

                                  Y Q 2 Replies Last reply May 30, 2016, 7:43 PM Reply Quote 0
                                  • Y
                                    Yamakazi @Yamakazi
                                    last edited by May 30, 2016, 7:43 PM

                                    I Made a new very basic setup with just the fog server a router and a host. I configured the router to allow multicast.

                                    I get the same result, everything is working: dhcp, unicast etc. Just not multicast. So i think fog is causing the problems. I’m just really lost what is wrong. FOGMulticastmanger is active and working, the multicast settings in the webinterface are all correct. Dhcp and the image are working fine. Mysql still remains a mystery to me though. I’ve got no experiecne with it on linux so.

                                    Y 1 Reply Last reply May 30, 2016, 7:53 PM Reply Quote 0
                                    • Y
                                      Yamakazi @Yamakazi
                                      last edited by Yamakazi May 30, 2016, 1:54 PM May 30, 2016, 7:53 PM

                                      From one of the wiki pages of fog it makes you check these files.

                                      “Check the MySQL details in “/opt/fog/service/etc/config.php” are correct.
                                      If not, correct them (they should be the same as in /var/www/fog/commons/config.php) and restart the service”

                                      0_1464637923863_11.PNG
                                      *
                                      0_1464637968878_12.PNG

                                      this can’t be right. There is not much in the first config.php file and the 2nd under commons doesn’t even exist.

                                      Q 1 Reply Last reply May 30, 2016, 8:05 PM Reply Quote 0
                                      • Q
                                        Quazz Moderator @Yamakazi
                                        last edited by May 30, 2016, 8:05 PM

                                        @Yamakazi That wiki is outdated due to relatively recent changes I believe

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by May 30, 2016, 10:45 PM

                                          @Yamakazi said:

                                          FOGMulticastmanger is active and working, the multicast settings in the webinterface are all correct.

                                          Checked the multicast.log? Do you see udp-sender processes in ps ax | grep udp?

                                          I might be wrong but I feel that this is not a general FOG issue as we have a lot of users who are running multicast imaging just fine. What if you connect one FOG server and two or three clients just with one simple dumb mini switch? Not router!

                                          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

                                          Y 1 Reply Last reply May 31, 2016, 9:48 AM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            6/35
                                            Last post

                                          168

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project