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

    FOG 1.5.6: Changing host MAC address can make hosts inaccessable

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    5
    8
    1.1k
    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.
    • Cheetah2003C
      Cheetah2003
      last edited by Cheetah2003

      So basically, do this:

      Create at least two hosts with different MAC addresses. Save this stuff.

      Now edit one of the hosts and add the MAC address from the other host to this one.

      The original host will stop appearing in your host list after doing this. You cannot recreate or edit the host, it’s stuck in limbo, with no mac address. There’s no way to get it back. And you can’t use the same name because it’ll complain that host already exists.

      The only way I could fix this was to jump on to my fog server, fire up mysql client and remove the record for that host by hand.

      Might wanna fix that. Great software otherwise.

      Also another suggestion: Make this stuff work on a multi-homed server. That would be really great.

      I do not need support for this issue. This is a bug report. I will not be following this thread in any way shape or form.

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

        [Mod note] Moved to bug reports forum

        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
        • Tom ElliottT
          Tom Elliott
          last edited by Tom Elliott

          Sure this can be unexpected though I don’t fully understand. Not that I don’t understand the reason this could be an issue, per se.

          First why would you need to create two hosts and use one of those hosts Mac on another host?

          This should be relatively easy to address but I really don’t understand how/why someone would do this. Create two hosts, then assign the Mac of one of those hosts to the other. Or more specifically, the primary Mac of one of the hosts being assigned to another already defined and primary Mac having host.

          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
          • Cheetah2003C
            Cheetah2003
            last edited by

            It wasn’t something I wanted to do, it was something I did by mistake.

            I was just pointing out it is a flaw in the software, it should be possible to get at the mac-address-less host to fix it or delete it.

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

              @Cheetah2003 in working-1.6 this was already addressed though I may rethink how to work it. This is somewhat easier for the 1.6 side as the pages and elements are much more modularized.

              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
              • S
                Sebastian Roth Moderator
                last edited by

                @Cheetah2003 Just in case you come along this alter on and wonder. While you are right that it’s not great that this can happen I reckon it’s very rarely the case anyway. We have highly generalized SQL queries that do the table updates (like adding the MAC) and it’s not easy to think about just any situations where people do strange things.

                We have database maintenance commands in the wiki which do clear the problem if you have created it: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_MySQL#Database_Maintenance_Commands

                ....
                DELETE FROM `hosts` WHERE `hostID` NOT IN (SELECT `hmHostID` FROM `hostMAC`);
                ...
                

                This line will clean out the lost/hidden) host entry for you.

                Also another suggestion: Make this stuff work on a multi-homed server. That would be really great.

                There are so many different scenarios around that it’s nearly impossible to make this generally possible. People would use this with different subnets across routers, also use VLANs and all that. So I think if we add multi-homing for one specific scenario we make three people happy but still while putting in a lot of work this won’t work for the other 20 guys wanting a kind of different multi-homed setup.

                We don’t encourage people to do multi-homed but still we try to help people set this up under some circumstances.

                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
                • S
                  snap7B
                  last edited by Sebastian Roth

                  @Cheetah2003 Have you tried to “Reset Encryption Data” after you update the MAC? List “all hosts”, click on the one MAC is changes, the select “Reset Encryption Data”.

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

                    @Cheetah2003 I know it’s been a long time. Sorry this has gone lost! I only got to look into this and fixed it.

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

                    249

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project