Project

General

Profile

Actions

Bug #5419

closed

FusionInventory version check not handling version number correctly

Added by Matthieu C over 10 years ago. Updated about 10 years ago.

Status:
Released
Priority:
N/A
Assignee:
Jonathan CLARKE
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

This was observed with rudder-agent-thin-2.11.2.release-1.FC.18.i386, but I think is present in all rudder-agent-thin versions.

# cf-agent -KID force_inventory
...
2014-08-25T13:18:02+0000   notice: /default/doInventory/methods/'any'/default/fusionAgent/commands/'/opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory --scan-homedirs'[0]: Q: "...-inventory --lo": /opt/rudder/bin/run-inventory: line 35: [: FusionInventory Agent (23101): integer expression expected
Q: "...-inventory --lo": [ERROR] The system FusionInventory version is too old to be used. (Found = FusionInventory Agent (2.3.10.1), Expected >= 2.2)
...
# fusioninventory-agent --version
FusionInventory Agent (2.3.10.1)

In /opt/rudder/bin/run-inventory, line 34:

SYSTEM_FUSINV_VERSION=$(fusioninventory-agent --version | sed 's%.*(\([0-9]*\)\.\([0-9]*\)\.[0-9]*).*%\1.\2%')

The regex used will only match version number in the form of x.y.z. In our case the version number as a fourth component so the SYSTEM_FUSINV_VERSION variable is not valid and the version check fails.

Actions #1

Updated by Nicolas CHARLES over 10 years ago

  • Category set to System integration
  • Status changed from New to Pending technical review
  • Assignee set to Jonathan CLARKE
  • Target version set to 2.11.3
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/467
Actions #2

Updated by Nicolas CHARLES over 10 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

Applied in changeset packages:commit:33156c803b3ffd47b551234db2c226aba8802a43.

Actions #3

Updated by Nicolas CHARLES over 10 years ago

Applied in changeset packages:commit:adca99b27b4b03707aefbc63e9115a3a680283a3.

Actions #4

Updated by Vincent MEMBRÉ about 10 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.3, which was released on the 25/09/2014.

Actions

Also available in: Atom PDF