<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[&quot;Join&quot; column empty after reimage + rejoin]]></title><description><![CDATA[<p dir="auto">Morning all.</p>
<p dir="auto">Small reporting inconsistency in Reports &gt; Directory Membership (FOG 1.6.0.158 stable, agent 0.1.28, AD join). Cosmetic, nothing breaks.</p>
<p dir="auto">The “Join” column comes from <code>hdJoinAt</code>. In <code>Directory_Membership::join()</code> an empty <code>hdJoinAt</code> 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.”</p>
<p dir="auto">But a host that was reimaged and joined through the rejoin protocol (the result carries an <code>attempt_id</code>, so <code>DirectoryJoin::report()</code> hands it to <code>DirectoryRejoin::report()</code>) never gets <code>hdJoinAt</code> written. On top of that, <code>TaskQueue::checkout()</code> calls <code>DirectoryJoin::forgetAttempt()</code> when a Deploy completes, which sets <code>hdJoinAt</code> back to NULL. So after every reinstall the host ends up like this:</p>
<ul>
<li><code>hdJoined=1</code>, <code>hdDomain</code> correct, Drift “ok”, <code>hdRejoinState</code> phase <code>verified</code></li>
<li><code>hdJoinAt</code> NULL, <code>hdJoinError</code> empty, so “Join” is blank</li>
</ul>
<p dir="auto">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”.</p>
<p dir="auto">I checked the unpatched <code>DirectoryRejoin.php</code> (before our local #2122 patch) and it has no <code>joinAt</code> either, so it is not caused by that.</p>
<p dir="auto">Thanks for the help.</p>
]]></description><link>http://forums.fogproject.org/topic/18328/join-column-empty-after-reimage-rejoin</link><generator>RSS for Node</generator><lastBuildDate>Mon, 23 Nov 2026 08:48:48 GMT</lastBuildDate><atom:link href="http://forums.fogproject.org/topic/18328.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Nov 2026 07:38:44 GMT</pubDate><ttl>60</ttl></channel></rss>