Project

General

Profile

Actions

Enhancement #19512

closed

When hostname is invalid in an inventory the log message says the tag is missing

Added by Alexis Mousset over 3 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
N/A
Assignee:
-
Category:
Web - Nodes & inventories
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
To do
Fix check:
To do
Regression:
No

Description

Modify share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Generic/Rudder.pm with:

HOSTNAME => 'toto<b>truc</b>',

Then the inventory is refused but the log does not really explain why:

[2021-07-07 09:23:28+0000] INFO  inventory-processing - Watch new inventory file 'server-root.ocs' with signature available: process.
[2021-07-07 09:23:28+0000] ERROR inventory-processing - Error when trying to process inventory 'server-root.ocs'; cause was: Can't parse the input inventory, aborting; cause was: Error when post processing report with 'post_process_inventory:check_consistency', abort; cause was: Inconsistency: Missing hostname tags (RUDDER∕HOSTNAME and OPERATINGSYSTEM/FQDN) in report. Having at least one of Those tags is mandatory.
Actions #1

Updated by Alexis Mousset over 3 years ago

  • Subject changed from When hostname is invalid the log message says the tag is missing to When hostname is invalid in an inventory the log message says the tag is missing
Actions #2

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 6.1.15 to 6.1.16
Actions #3

Updated by Vincent MEMBRÉ about 3 years ago

  • Target version changed from 6.1.16 to 6.1.17
Actions #4

Updated by Vincent MEMBRÉ almost 3 years ago

  • Target version changed from 6.1.17 to 6.1.18
Actions #5

Updated by Vincent MEMBRÉ almost 3 years ago

  • Target version changed from 6.1.18 to 6.1.19
Actions #6

Updated by François ARMAND almost 3 years ago

  • Tracker changed from Bug to Enhancement
  • Priority deleted (0)
Actions #7

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 6.1.19 to 6.1.20
Actions #8

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 6.1.20 to 6.1.21
Actions #9

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 6.1.21 to old 6.1 issues to relocate
Actions #10

Updated by François ARMAND over 1 year ago

  • Status changed from New to Resolved
  • Regression set to No

So now, we are checking that the hostname in the certificate used for the signature is the same as the one in the inventory, so we get the "invalid signature" error. Then, if an user use a bad hostname (not rfc compatible), we get an error saying so. I consider it resolved in 7.2.

Actions

Also available in: Atom PDF