@FlareImp Thank you. This is a different problem from the storage nodes. Nothing that finds a host by its MAC, or saves the primary MAC, changed between 1.6.0.167 and the current dev-branch. My lab runs the current dev-branch, and its hosts boot as registered and keep their primary MAC. So I need to see what your server has.
Please post these:
- The version on the main server: open
http://<your-fog-server>/fog/service/getversion.php. - The MAC flags in the database. On the main server, run:
sudo mysql fog -e "SELECT hmPrimary, hmPending, COUNT(*) FROM hostMAC GROUP BY hmPrimary, hmPending; SHOW COLUMNS FROM hostMAC;" - The web server error log right after you set a primary MAC and refresh. Mark a primary on one host, then post the last 30 lines of the PHP error log. On Debian or Ubuntu with Apache, that is
/var/log/apache2/error.log. On Rocky, Alma or RHEL, it is/var/log/php-fpm/www-error.log. - Did the installer finish on the main server, with no error at the end?
When you save a primary MAC, FOG first clears the primary flag on all of the host’s MACs, then sets the one you chose. You see nothing selected after a refresh, so the second step fails on your server. The error log should say why.