https://issues.rudder.io/https://issues.rudder.io/themes/rudder7/favicon/favicon.ico?17096450182016-03-08T14:26:42ZIssue TrackerRudder - Bug #8045: Using Rudder server 3.x + rudder agent 2.11.x, a node doesn't properly detect its change of relay serverhttps://issues.rudder.io/issues/8045?journal_id=528602016-03-08T14:26:42ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-16 priority-default closed parent" href="/issues/2443">Bug #2443</a>: Policy Server UUID in /var/rudder/tmp</i> added</li></ul> Rudder - Bug #8045: Using Rudder server 3.x + rudder agent 2.11.x, a node doesn't properly detect its change of relay serverhttps://issues.rudder.io/issues/8045?journal_id=528622016-03-08T15:29:54ZJanos Mattyasovszky
<ul></ul><p>Additional information:<br />- In Agent 2.11.X (X<13) the Rudder.pm adds the Field <strong>POLICY_SERVER_UUID</strong> populated from <strong>tmp/uuid.txt</strong>.<br />- In the promises for 3.0.X FusionAgent.cf contains logic to add a <strong>POLICY_SERVER</strong> field via edit_line bundle, populated from <strong>${sys.workdir}/rudder-server-uuid.txt</strong></p>
<p>This results in an inventory like for example:<br /><pre>
<POLICY_SERVER_UUID>78169036-10f9-11e5-b8f7-afb7081228de</POLICY_SERVER_UUID>
<POLICY_SERVER>238ea28e-629c-11e5-acae-6a81cf67da3d</POLICY_SERVER>
</pre></p>
<p>From which apparently the POLICY_SERVER_UUID takes precedece over POLICY_SERVER (if that is set).</p>
<p>A solution is to remove the tmp/uuid.txt, which will result in a perl error, since the file being opened does not exist:<br /><pre>
Q: "...-inventory --lo": [error] Can't open file /var/rudder/tmp/uuid.txt: No such file or directory
Q: "...-inventory --lo": Use of uninitialized value $serverUuid in scalar chomp at
/opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Linux/Rudder.pm line 71.
Q: "...-inventory --lo": [info] Inventory saved in /var/rudder/tmp/inventory/linux-03ce7386-0c2d-11e5-a06b-25e1081228de.ocs
Q: "...-inventory --lo": [info] task WakeOnLan execution not requested
Q: "...-inventory --lo": [info] task NetDiscovery execution not requested
Q: "...-inventory --lo": [info] task NetInventory execution not requested
</pre></p>
<p>But the resulting inventory would reflect the change of PolicyServer in the WebUI.</p>
<p>However, this change is not reflected by starting a regeneration of policies for the node, see for that <a class="issue tracker-1 status-6 priority-6 priority-low2 closed" title="Bug: Change of Policy Server does not trigger a Policyupdate (Rejected)" href="https://issues.rudder.io/issues/8046">#8046</a></p> Rudder - Bug #8045: Using Rudder server 3.x + rudder agent 2.11.x, a node doesn't properly detect its change of relay serverhttps://issues.rudder.io/issues/8045?journal_id=530252016-03-16T15:22:32ZJonathan CLARKEjonathan.clarke@normation.com
<ul><li><strong>Translation missing: en.field_tag_list</strong> set to <i>Quick and important</i></li></ul> Rudder - Bug #8045: Using Rudder server 3.x + rudder agent 2.11.x, a node doesn't properly detect its change of relay serverhttps://issues.rudder.io/issues/8045?journal_id=538572016-04-08T14:51:46ZVincent MEMBRÉvme@rudder.io
<ul><li><strong>Target version</strong> changed from <i>3.0.15</i> to <i>3.0.16</i></li></ul> Rudder - Bug #8045: Using Rudder server 3.x + rudder agent 2.11.x, a node doesn't properly detect its change of relay serverhttps://issues.rudder.io/issues/8045?journal_id=550022016-05-18T11:24:52ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In progress</i></li><li><strong>Assignee</strong> set to <i>Nicolas CHARLES</i></li></ul> Rudder - Bug #8045: Using Rudder server 3.x + rudder agent 2.11.x, a node doesn't properly detect its change of relay serverhttps://issues.rudder.io/issues/8045?journal_id=550032016-05-18T11:28:39ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Status</strong> changed from <i>In progress</i> to <i>Pending technical review</i></li><li><strong>Assignee</strong> changed from <i>Nicolas CHARLES</i> to <i>Benoît PECCATTE</i></li><li><strong>Pull Request</strong> set to <i>https://github.com/Normation/rudder-techniques/pull/931</i></li></ul><p>PR <a class="external" href="https://github.com/Normation/rudder-techniques/pull/931">https://github.com/Normation/rudder-techniques/pull/931</a></p> Rudder - Bug #8045: Using Rudder server 3.x + rudder agent 2.11.x, a node doesn't properly detect its change of relay serverhttps://issues.rudder.io/issues/8045?journal_id=550092016-05-18T12:19:55ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Status</strong> changed from <i>Pending technical review</i> to <i>Pending release</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Fixes #8045: Using Rudder server 3.x + rudder agent 2.11.x, a node doesn't properly detect its ch..." href="https://issues.rudder.io/projects/rudder/repository/rudder-techniques/revisions/1f25c9aa37b49eea1c6fc438d8bc88ea89a9a17d">rudder-techniques|1f25c9aa37b49eea1c6fc438d8bc88ea89a9a17d</a>.</p> Rudder - Bug #8045: Using Rudder server 3.x + rudder agent 2.11.x, a node doesn't properly detect its change of relay serverhttps://issues.rudder.io/issues/8045?journal_id=567502016-06-08T11:14:06ZVincent MEMBRÉvme@rudder.io
<ul><li><strong>Status</strong> changed from <i>Pending release</i> to <i>Released</i></li></ul><p>This bug has been fixed in Rudder 3.0.16, 3.1.10 and 3.2.3 which were released on 2016-06-01, but not announced. </p>
<ul>
<li>2.11: <a href="http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog211" class="external">Changelog</a></li>
<li>3.0: <a href="http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog30" class="external">Changelog</a></li>
<li>3.1: <a href="http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog31" class="external">Changelog</a></li>
<li>3.2: <a href="http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog32" class="external">Changelog</a></li>
<li>Download: <a class="external" href="https://www.rudder-project.org/site/get-rudder/downloads/">https://www.rudder-project.org/site/get-rudder/downloads/</a></li>
</ul> Rudder - Bug #8045: Using Rudder server 3.x + rudder agent 2.11.x, a node doesn't properly detect its change of relay serverhttps://issues.rudder.io/issues/8045?journal_id=685342016-12-22T07:56:50ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-16 priority-default closed" href="/issues/9841">Bug #9841</a>: Error parsing inventory</i> added</li></ul>