https://issues.rudder.io/https://issues.rudder.io/themes/rudder7/favicon/favicon.ico?17096450182017-05-05T11:24:08ZIssue TrackerRudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=761802017-05-05T11:24:08ZJanos Mattyasovszky
<ul></ul><p>This could be "quickly" worked around if using <code>length</code> to check if it's zero and not define it then.</p> Rudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=761812017-05-05T11:49:36ZJanos Mattyasovszky
<ul></ul><p>This patch helped me (it would obviously needed to be patched in the .st not the .cf):</p>
<pre>
--- fusionAgent.cf.orig 2017-05-05 13:46:06.121623362 +0200
+++ fusionAgent.cf 2017-05-05 13:29:21.043705057 +0200
@@ -530,6 +530,7 @@
{
vars:
"inventory_file" slist => findfiles("${g.rudder_var_tmp}/inventory/*.ocs");
+ "inventory_file_count" int => length("inventory_file");
!windows.has_rudder_perl::
"perl_command" string => "/opt/rudder/bin/perl -I /opt/rudder/lib/perl5";
!windows.!has_rudder_perl::
@@ -538,7 +539,7 @@
"perl_command" string => "C:\Program Files\FusionInventory-Agent\perl\bin\perl.exe";
classes:
- "inventory_file_exist" expression => filesexist("@{inventory_file}");
+ "inventory_file_exist" expression => isgreaterthan("${inventory_file_count}", "0");
"has_rudder_perl" expression => fileexists("/opt/rudder/bin/perl");
pass1.inventory_file_exist.!windows::
"inventory_valid" expression => returnszero("${perl_command} ${this.promise_dirname}/test-inventory.pl ${inventory_file}", "noshell"),
</pre> Rudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=761822017-05-05T11:50:47ZJanos Mattyasovszky
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/76182/diff?detail_id=96770">diff</a>)</li></ul> Rudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=762672017-05-15T12:36:28ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Severity</strong> set to <i>Major - prevents use of part of Rudder | no simple workaround</i></li><li><strong>User visibility</strong> set to <i>Getting started - demo | first install | level 1 Techniques</i></li><li><strong>Effort required</strong> set to <i>Very Small</i></li><li><strong>Priority</strong> changed from <i>0</i> to <i>72</i></li></ul> Rudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=769482017-05-23T12:23:21ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-16 priority-default closed child" href="/issues/10753">Bug #10753</a>: No generation of inventory at installation </i> added</li></ul> Rudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=769502017-05-23T12:23:52ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Assignee</strong> set to <i>Nicolas CHARLES</i></li><li><strong>Target version</strong> set to <i>4.0.6</i></li></ul> Rudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=769512017-05-23T12:23:58ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In progress</i></li></ul> Rudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=769522017-05-23T12:25:08ZNicolas 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/1146</i></li></ul><p>PR <a class="external" href="https://github.com/Normation/rudder-techniques/pull/1146">https://github.com/Normation/rudder-techniques/pull/1146</a></p> Rudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=769552017-05-23T12:47:44ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Status</strong> changed from <i>Pending technical review</i> to <i>New</i></li><li><strong>Assignee</strong> deleted (<del><i>Benoît PECCATTE</i></del>)</li></ul><p>Fix was not for the explained issue</p> Rudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=769642017-05-23T13:10:16ZVincent MEMBRÉvme@rudder.io
<ul><li><strong>Target version</strong> changed from <i>4.0.6</i> to <i>4.0.7</i></li></ul> Rudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=770572017-05-23T14:00:17ZVincent MEMBRÉvme@rudder.io
<ul><li><strong>Subject</strong> changed from <i>Inventory created even if inventory_path not defined</i> to <i>Improve generated inventory checks when inventory is missing</i></li></ul><p>The fix provided in <a class="issue tracker-1 status-5 priority-16 priority-default closed" title="Bug: During install, inventory generated into bad file path: /var/rudder/${inventory_path} (Released)" href="https://issues.rudder.io/issues/10774">#10774</a> should prevent that bug to happen in most cases.</p>
<p>We decided to keep that issue to improve the way we check that the generated inventory is correct!</p> Rudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=770692017-05-24T08:53:42ZBenoît PECCATTEbenoit.peccatte@rudder.io
<ul><li><strong>Assignee</strong> set to <i>Nicolas CHARLES</i></li><li><strong>User visibility</strong> changed from <i>Getting started - demo | first install | level 1 Techniques</i> to <i>Operational - other Techniques | Technique editor | Rudder settings</i></li><li><strong>Priority</strong> changed from <i>72</i> to <i>54</i></li></ul> Rudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=771822017-05-29T16:23:56ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In progress</i></li></ul> Rudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=771832017-05-29T16:28:23ZNicolas 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> changed from <i>https://github.com/Normation/rudder-techniques/pull/1146</i> to <i>https://github.com/Normation/rudder-techniques/pull/1148</i></li></ul><p>PR <a class="external" href="https://github.com/Normation/rudder-techniques/pull/1148">https://github.com/Normation/rudder-techniques/pull/1148</a></p> Rudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=771842017-05-29T16:36:16ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Status</strong> changed from <i>Pending technical review</i> to <i>Pending release</i></li></ul><p>Applied in changeset <a class="changeset" title="Fixes #10711: Improve generated inventory checks when inventory is missing" href="https://issues.rudder.io/projects/rudder/repository/rudder-techniques/revisions/b9cd4340e4f2bac1440ffe83be12cfd50ff3f282">rudder-techniques|b9cd4340e4f2bac1440ffe83be12cfd50ff3f282</a>.</p> Rudder - Bug #10711: Improve generated inventory checks when inventory is missinghttps://issues.rudder.io/issues/10711?journal_id=784732017-06-22T13:01:16ZAlexis Moussetalexis.mousset@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 4.0.7 which was released today.</p>
<ul>
<li>4.0.7: <a href="http://www.rudder-project.org/pipermail/rudder-announce/2017-June/000236.html" class="external">Announce</a> <a href="http://www.rudder-project.org/changelog-4.0" 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>