Project

General

Profile

Actions

Bug #11918

closed

Incorrect detection of architecture 32/64 bits (breaking change)

Added by Nicolas CHARLES almost 7 years ago. Updated over 6 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Small
Priority:
65
Name check:
Fix check:
Regression:

Description

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
- 64-bit / 32-bit (windows) => x86_64 / x86
- things with x86_64 / x86 / ix86 in their name => x86_64 / x86 / ix86
- IA-64, i[3-9]86, x86, x86_64, arm.*, other => same name in lower 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

# arch
i686


Files

server-root.ocs (212 KB) server-root.ocs Nicolas CHARLES, 2018-01-03 15:27

Related issues 1 (1 open0 closed)

Related to Rudder - User story #11994: Add a "bitness" node inventory field to complete ARCH NewActions
Actions

Also available in: Atom PDF