Project

General

Profile

Bug #11918

Updated by François ARMAND almost 6 years ago

 
 We are not correctly detecting node architecture. What we really report on today is the architecture used to build the perl in the agent - and it is just by luck if most of the time, that match to architecture of the node.  

 So we need to change the way we get arch and report on it. We also need to normalise the result to make usable in group search.  


 We are going to use https://stackoverflow.com/questions/15036909/clang-how-to-list-supported-target-architectures as reference names. 

 Fusion provides // we change to: 

 - amd64 => *x86_64* 
 - PowerPC if OS == AIX => *ppc64* 
 - PowerPC (other cases) => *ppc* ppc 
 - 64-bit / 32-bit (windows) => *x86_64* x86_64 / *x86* x86  
 - things with x86_64 / x86 / ix86 i*86 in their name => *x86_64* x86_64 / *x86* x86 / *ix86* i*86 
 - IA-64, i[3-9]86, x86, x86_64, arm.*, other => *same same name in lower case* case 



 For reference, the trigger was:  

 An Ubuntu 14.04 32 bits is displayed as 
 "Operating System Architecture Description: x86_64-linux-thread-multi" 
 in the web interface 

 Processor architecture is correctly detected as i386 thought 

 Attached, the inventory 

 The command arch returns what is expected 
 <pre> 
 # arch 
 i686 
 </pre>

Back