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

    "Join" column empty after reimage + rejoin

    Scheduled Pinned Locked Moved Unsolved FOG Problems
    2 Posts 2 Posters 26 Views
    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.
    • L
      lperoma
      last edited by

      Morning all.

      Small reporting inconsistency in Reports > Directory Membership (FOG 1.6.0.158 stable, agent 0.1.28, AD join). Cosmetic, nothing breaks.

      The “Join” column comes from hdJoinAt. In Directory_Membership::join() an empty hdJoinAt with no error is shown as empty, and the code comment says “Never attempted: the host is already joined, or it has never reported, or nothing has needed doing. Not a problem.”

      But a host that was reimaged and joined through the rejoin protocol (the result carries an attempt_id, so DirectoryJoin::report() hands it to DirectoryRejoin::report()) never gets hdJoinAt written. On top of that, TaskQueue::checkout() calls DirectoryJoin::forgetAttempt() when a Deploy completes, which sets hdJoinAt back to NULL. So after every reinstall the host ends up like this:

      • hdJoined=1, hdDomain correct, Drift “ok”, hdRejoinState phase verified
      • hdJoinAt NULL, hdJoinError empty, so “Join” is blank

      In our case two test VMs that we reinstall many times show a blank “Join” even though they joined correctly and automatically, while hosts joined with the older path (or by hand before) show “ok”. Looking at the report you can’t tell the two cases apart, and a blank reads as “never joined”.

      I checked the unpatched DirectoryRejoin.php (before our local #2122 patch) and it has no joinAt either, so it is not caused by that.

      Thanks for the help.

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

        @lperoma Thanks, your analysis is correct. A join through the rejoin protocol records its result in hdRejoinState, and the Join column read only hdJoinAt. So a reimaged host that joined correctly showed a blank cell.

        The fix is in https://github.com/FOGProject/fogproject/pull/2125. The Join column now also reads the rejoin result and labels it: “ok (rejoin)”, “rejoin failed”, “rejoin awaiting reboot” or “rejoin result unknown”. A plain join still shows “ok” or its error, so you can tell the two paths apart. Whichever result is newer is the one shown.

        It is merged to dev-branch now, and it reaches stable with the next stable merge.

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

        30

        Online

        12.8k

        Users

        17.7k

        Topics

        157.5k

        Posts
        Copyright © 2012-2026 FOG Project