https://issues.rudder.io/https://issues.rudder.io/themes/rudder7/favicon/favicon.ico?17096450182018-01-03T14:40:27ZIssue TrackerRudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=863922018-01-03T14:40:27ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Severity</strong> set to <i>Major - prevents use of part of Rudder | no simple workaround</i></li></ul><p>tag ARCHNAME is filed by output of command<br /><pre>
perl -V:archname
</pre></p>
<p>the system perl returns<br /><pre>
# perl -V:archname
archname='i686-linux-gnu-thread-multi-64int';
</pre></p>
<p>our perl is<br /><pre>
# /opt/rudder/bin/perl -V:archname
archname='x86_64-linux-thread-multi';
</pre></p>
<p>So (at least on debian like) we are misdetecting 32 and 64 bits</p>
<p>This is more problematic than just display error, as this info is used by FusionInventory to select which perl module to run for inventory</p> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=863932018-01-03T14:50:21ZNicolas CHARLESnicolas.charles@rudder.io
<ul><li><strong>Severity</strong> deleted (<del><i>Major - prevents use of part of Rudder | no simple workaround</i></del>)</li></ul><p>Also<br /><pre>
# file /opt/rudder/bin/perl
/opt/rudder/bin/perl: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=51e76f93b4baac55d41edfa7368ccf71c98e4b59, stripped
</pre></p> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=864312018-01-08T14:52:28ZBenoît PECCATTEbenoit.peccatte@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>Operational - other Techniques | Technique editor | Rudder settings</i></li><li><strong>Effort required</strong> set to <i>Small</i></li><li><strong>Priority</strong> changed from <i>0</i> to <i>67</i></li></ul> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=864562018-01-10T09:34:14ZFrançois ARMANDfrancois.armand@rudder.io
<ul></ul><p>Some more information:</p>
<p>In some (but not all, and for now we don't know exactly on which), the Fusion reports contains both:</p>
<pre>
<HARDWARE>
<ARCHNAME>x86_64-linux-thread-multi</ARCHNAME>
...
</HARDWARE>
</pre>
<p>And:</p>
<pre>
<OPERATINGSYSTEM>
<ARCH>i686</ARCH>
...
</OPERATINGSYSTEM>
</pre>
<p>So we could use the second one, which is what we need / want.</p>
<p>There is still three things to take care of in that case:</p>
<p>- 1/ we need to be sure that all supported agent version have a fusion that fill that ARCH attribute<br />- 2/ we need to be sure to correctly migrate existing groups using "ARCH" (with the case of API, and certainly a compatibility option to add for them)<br />- 3/ that does not solve the problem that Fusion is not using the correct information for its own internal decision making.</p> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=864892018-01-10T16:05:28ZFrançois ARMANDfrancois.armand@rudder.io
<ul></ul><p>In fact, I'm not sure we should port existing groups, perhaps just disable them because the are MOST LIKELY false, i.e the user is most likely not doing what he thinks he is doing. So perhaps we should just correct in next minor...</p> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=865072018-01-11T14:50:59ZFrançois ARMANDfrancois.armand@rudder.io
<ul></ul><p>So, after some more research:</p>
<p>- linux has the ARCH field at least since rudder 2.11, with the correct content (i686, x86_64)<br />- windows get 32-bits, 64-bits<br />- AIX does not have the field at all<br />- rasperry get the expected content ("armv7l")</p>
<p>So, I propose to just use the new field, with ppc64, i686, x86_64, etc. If the field ARCH is not present, try to infer the correct content from OS or HARDWARE/ARCHNAME.</p>
<p>The group search is a free input field, so nothing to change here.</p>
<p>We will need to make a breaking change annoucement in the release note for 4.1. <br />We will also need to look for "aix-thread-mutli, armv7l-linux-thread-multi, MSWin32-x64-multi-thread, (well, anything not looking like ".x64.*") and try to migrate it and make a big warning in logs.</p> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=865882018-01-16T09:53:59ZBenoît PECCATTEbenoit.peccatte@rudder.io
<ul><li><strong>Assignee</strong> set to <i>François ARMAND</i></li></ul><p>Probably a feature with a new inventory field "bitness"</p> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=866632018-01-17T15:42:50ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-1 priority-16 priority-default" href="/issues/11994">User story #11994</a>: Add a "bitness" node inventory field to complete ARCH </i> added</li></ul> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=866642018-01-17T15:43:20ZFrançois ARMANDfrancois.armand@rudder.io
<ul></ul><p>For the feature, I opened <a class="issue tracker-2 status-1 priority-16 priority-default" title="User story: Add a "bitness" node inventory field to complete ARCH (New)" href="https://issues.rudder.io/issues/11994">#11994</a>.</p> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=866652018-01-17T15:45:42ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In progress</i></li></ul> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=866772018-01-17T17:44:36ZFrançois ARMANDfrancois.armand@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>François ARMAND</i> to <i>Vincent MEMBRÉ</i></li><li><strong>Pull Request</strong> set to <i>https://github.com/Normation/ldap-inventory/pull/123</i></li></ul><p>PR <a class="external" href="https://github.com/Normation/ldap-inventory/pull/123">https://github.com/Normation/ldap-inventory/pull/123</a></p> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=867082018-01-18T09:41:41ZRudder Quality Assistant
<ul><li><strong>Assignee</strong> changed from <i>Vincent MEMBRÉ</i> to <i>François ARMAND</i></li></ul> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=867142018-01-18T09:58:14ZFrançois ARMANDfrancois.armand@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 #11918: Incorrect detection of architecture on Ubuntu 14.04 32 bits" href="https://issues.rudder.io/projects/rudder/repository/ldap-inventory/revisions/3f50c5589b394d894b6f93baa4af5b6d2151c183">ldap-inventory|3f50c5589b394d894b6f93baa4af5b6d2151c183</a>.</p> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=871412018-02-05T10:35:32ZVincent MEMBRÉvme@rudder.io
<ul><li><strong>Category</strong> changed from <i>Agent</i> to <i>Web - Nodes & inventories</i></li></ul> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=887952018-03-01T11:12:26ZVincent MEMBRÉvme@rudder.io
<ul><li><strong>Status</strong> changed from <i>Pending release</i> to <i>Released</i></li><li><strong>Priority</strong> changed from <i>67</i> to <i>66</i></li></ul><p>This bug has been fixed in Rudder 4.1.10 and 4.2.4 which were released today.</p>
<ul>
<li>4.1.10: <a href="http://www.rudder-project.org/pipermail/rudder-announce/2018-March/000262.html" class="external">Announce</a> <a href="http://www.rudder-project.org/changelog-4.1#4.1.10" class="external">Changelog</a></li>
<li>4.2.4: <a href="http://www.rudder-project.org/pipermail/rudder-announce/2018-March/000263.html" class="external">Announce</a> <a href="http://www.rudder-project.org/changelog-4.2#4.2.4" 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 #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=909272018-04-19T13:17:05ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Subject</strong> changed from <i>Incorrect detection of architecture on Ubuntu 14.04 32 bits</i> to <i>Incorrect detection of architecture 32/64 bits</i></li><li><strong>Priority</strong> changed from <i>66</i> to <i>65</i></li></ul> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=909282018-04-19T13:21:14ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/90928/diff?detail_id=116290">diff</a>)</li></ul> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=909292018-04-19T13:24:53ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/90929/diff?detail_id=116291">diff</a>)</li></ul> Rudder - Bug #11918: Incorrect detection of architecture 32/64 bits (breaking change)https://issues.rudder.io/issues/11918?journal_id=909882018-04-19T13:58:02ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Subject</strong> changed from <i>Incorrect detection of architecture 32/64 bits</i> to <i>Incorrect detection of architecture 32/64 bits (breaking change)</i></li><li><strong>Description</strong> updated (<a title="View differences" href="/journals/90988/diff?detail_id=116356">diff</a>)</li></ul>