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

    Mounting File System Failed - No route to host

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    18
    3.4k
    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
      Bobbyfrank
      last edited by

      I’ve looked at https://forums.fogproject.org/topic/6898/fog-problem (also forgot to change my timezone), but was not able to fix the root problem.

      0_1519076380492_28309264_1540073036042527_1818643409_o.jpg

      This issue occurs on multiple computer models. I recently got done customizing a boot loader and am booting FOG through GRUB. We can successfully register hosts, but when testing image creating/deployment this popped up.

      As a part of the testing process I deleted the default storage node and storage group and created new ones.

      0_1519076569123_ad9ed2f3-5cd9-42b3-a804-54e885255dde-image.png

      The IP address is correct, but for a few other fields we have the FQDN instead of the IP. It doesn’t look like that made a difference here.

      0_1519076625209_4fa7e152-83b8-40f7-9fbb-0888498eb987-image.png

      Any ideas/tips?

      1 Reply Last reply Reply Quote 0
      • C
        Culture20
        last edited by

        Figured it out!
        Short answer: disabled IPv6 (and allowed NFSv3)
        Long answer: On the server, set all the ports for nfsv3 to manual static ports, added the new iptables entries; Nada. Just for giggles, set a static address on the laptop with FOS USB, unplugged the server from the network and plugged both machines directly together, NIC-cable-NIC. Nada. Disabled the firewall on the server. Nada. Pings still worked, ssh from server to FOS USB worked, so the cable was working. Completely disabled IPv6 on a whim, and mounts from the debug console worked. Restarted iptables, and everything still worked. plugged the server back into the wall, walked the laptop to another location with a different subnet and several physical routers in between, and it still worked. Thanks for letting us know about the nfs version!

        george1421G 1 Reply Last reply Reply Quote 1
        • B
          Bobbyfrank
          last edited by

          0_1519076965896_f43305cd-8fc3-4c4f-95c6-68e2a90c837d-image.png

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

            This appears to be an interesting issue. I might suspect that either the target computer either doesn’t have an IP network or something else is going on here.

            Is 149.166.139.13 the IP address of your fog server?
            If so then on your fog server key in the following command:
            showmount -e 127.0.0.1

            I see that you are using the https protocol? The ip address [149.166.139.13] points to in-info-fog.soic.iupui.edu?

            Is the target (pxe booting host) on the same subnet (vlan) as the fog server?

            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

              I just saw something, you are booting this target computer with a FOS USB drive [boottype=usb]?

              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
              • B
                Bobbyfrank
                last edited by

                @george1421 here are the results of showmount -e 127.0.0.1

                0_1519229351032_666ccf4b-36e3-4c01-8c5e-8fcd85d15a66-image.png

                HTTPS is being used. 149.166.139.13 does point to in-info-fog.soic.iupui.edu.

                Our current boot setup is using a FOS USB drive (TFTP issues, we’re working with our overarching network team on that). The target is not currently on the same subnet as the fog server. When testing targets on the 139 subnet, the boot process failed on the step where it verifies internet by running ‘curl -Ikfso /dev/null https://in-info-fog.soic.iupui.edu/fog/index.php --connect-timeout 5’ in init.d/S40Network, so I’m expecting our networking friends have something funky going on with the routing. I will be able to do more tests and update in the next few hours.

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

                  @bobbyfrank OK are you using the FOS usb boot device or something you created?

                  If you are using the FOS usb boot, pick option 6 to get a debug console on the target computer. That should drop you to a linux command prompt on the target computer. From there see if you can ping the FOG server by IP address and dns name. Make sure both work correctly. I can tell you that typically FOG doesn’t use the dns names, but instead uses the IP address for everything. that way FOS doesn’t have to deal with misconfigured dhcp dns settings.

                  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
                  • B
                    Bobbyfrank
                    last edited by

                    @george1421 I am using the FOS USB Boot Device.

                    I am able to ping the FOG server on a different subnet using both IP and FQDN.

                    Currently, my status is that I am able to register hosts, but not able to deploy/capture images. Here’s a pic of a GOOD error when registering a host with passed arguments (Registering works 100%).
                    0_1519243092885_28310315_1541790452537452_196907612_o.jpg

                    Here’s a pic of the BAD error when attempting to deploy/capture an image. I no longer see the message about no route to host. It is now a NULL message.
                    0_1519243143034_28340087_1541790549204109_849165634_o.jpg

                    The same arguments are being passed. What part is causing the first menu option to fail when the second menu option works?

                    Here’s a pic of my grub.cfg (/boot/grub/grub.cfg)

                    0_1519243260482_fad417a1-ed4f-40f9-a57a-077fe3b79bf2-image.png

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

                      @bobbyfrank OK the null message is a good thing, I think. The Null means that (translation provided) “You did not schedule anything for the FOS engine to do on the FOG server before you booted via USB” Please schedule a task on the fog server first then usb boot into FOS.

                      I really need to get that NULL message fixed so its a bit more meaningful. The FOS USB was only intended to be used for debugging, but now its being used a bit more.

                      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
                      • B
                        Bobbyfrank
                        last edited by

                        @george1421 We’re back to no route on host 🙂

                        0_1519243743217_28312301_1541797895870041_733153716_o.jpg

                        Going back a bit - no FQDNs are being used anymore and there is no difference between doing this on the same or different subnet. We tested trying this from a blocked subnet and the curl command came back with a similar message - no route to host.

                        What protocols/services are used to capture and deploy the image through the FOS USB? I can try testing those individually to see if our network friends are blocking them similar to how TFTP was blocked.

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

                          @Bobbyfrank No route to host just means that the client is not able to contact the server as it does not seem to be on the same subnet and routing is not setup properly. You need to tell us more about your network layout: network mask, client IP, gateway information sent to the client, DHCP server handing out the network settings.

                          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 0
                          • george1421G
                            george1421 Moderator @Bobbyfrank
                            last edited by

                            @bobbyfrank ok I’m seeing a pattern here.

                            The FOS engine uses tftp, (dhcp if using FOG as dhcp server), (proxydhcp if you have dnsmasq installed), http/https and NFS protocol (this is the point where its currently failing, making the NFS mount to the fog server).

                            Do you have some kind of screening router/firewall between the target computer and FOG server?

                            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!

                            C 1 Reply Last reply Reply Quote 0
                            • C
                              Culture20 @george1421
                              last edited by

                              @george1421, I’ve been working with @Bobbyfrank onsite with this problem the last two work days (2018-02-23/26) and FOG is new to me, but I’m definitely not new to Linux. Here’s an update:

                              The routing tables look fine.
                              We can definitely get NFS exports to mount if we use a different OS on the same client machine (Ubuntu 16.04 and 17.10 mount.nfs4 confirmed to work).
                              The server has ports for NFSv4 open to the subnets we’re needing. iptables has been quadruple checked by two people (and works fine with the other OSes as mentioned).
                              On the FOS USB, the debug console can ping to the server just fine, and curl works, but it doesn’t have the root certs needed to verify our server’s cert (easy to ignore for the moment).
                              Finally: NFS traffic isn’t seen via tcpdump on the server when the FOS USB attempts to NFS mount either auto or in the debug console (it definitely is when other OSes are mounted to the exports).
                              The only thing I can think of is this is an oddity with busybox mount vs regular mount[.nfs4] (FOS USB is using mount via busybox, yes?)

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

                                @culture20 first, FOS/FOG uses nfs v3 not v4. Not sure if there are different ports in play or not.

                                I would drop iptables as a test to ensure you have not missed a port.

                                If you usb boot into FOS, I would like to see if you can manually mount fog fog server. I’ll provide the command in a moment.

                                Something else not related to your nfs issue, but when booted into FOS, if you give root a password (any password like ‘hello’) and get the IP address of FOS, you can connect to it using putty allowing you the chance to remote debug FOS. Without setting root’s password the ssh server won’t allow remote connections.

                                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!

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

                                  @george1421 Looking in the inits FOS mounts the fog server with this command
                                  mount -o nolock,proto=tcp,rsize=32768,intr,noatime <fog_ip>:/images /images

                                  From a USB booted FOS image, make the /images directory in FOS and then see if you can mount it using the above command.

                                  The mount command can be found in /bin/fog.mount in the FOS environment.

                                  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!

                                  C 1 Reply Last reply Reply Quote 0
                                  • C
                                    Culture20 @george1421
                                    last edited by

                                    @george1421: Ah, NFSv3… I rejoiced when NFSv4 came to be. NFSv4 is TCP only and uses one static port. NFSv3 was from pre-firewall days and uses a port manager daemon on a static port and other daemons that open up on random ports to do the actual data transfers. I can see the allure of NFSv3 for the UDP connections if you have a dedicated network.

                                    How modifiable is the FOS USB? I’ve dealt with it for about 45 minutes total so far, but have made custom live CDs before.

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

                                      @culture20 While UDP is the “default” for NFS, we (fog/fos) are using TCP proto’s.

                                      Hence the proto=tcp in the mount -o nolock,proto=tcp,rsize=32768,intr,noatime <fog_ip>:/images /images statement

                                      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

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        Culture20
                                        last edited by

                                        Figured it out!
                                        Short answer: disabled IPv6 (and allowed NFSv3)
                                        Long answer: On the server, set all the ports for nfsv3 to manual static ports, added the new iptables entries; Nada. Just for giggles, set a static address on the laptop with FOS USB, unplugged the server from the network and plugged both machines directly together, NIC-cable-NIC. Nada. Disabled the firewall on the server. Nada. Pings still worked, ssh from server to FOS USB worked, so the cable was working. Completely disabled IPv6 on a whim, and mounts from the debug console worked. Restarted iptables, and everything still worked. plugged the server back into the wall, walked the laptop to another location with a different subnet and several physical routers in between, and it still worked. Thanks for letting us know about the nfs version!

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

                                          @culture20 FWIW, The developers put this document together a while ago. https://forums.fogproject.org/topic/6162/firewall-configuration

                                          There is also guidance on selinux: https://forums.fogproject.org/topic/6154/selinux-policy

                                          I have not heard of any issues having ipv6 enabled with FOG.

                                          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
                                          • 1 / 1
                                          • First post
                                            Last post

                                          206

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project