Project

General

Profile

Actions

User story #8127

closed

On agent, check inventory before sending it to Rudder server

Added by François ARMAND over 8 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

As explain in http://www.rudder-project.org/redmine/issues/8022#note-9, we don't want to send to Rudder server inventory that will be refused FOR SURE, letting the agent think it is ok, where it is not.

So we have to do create a "check inventory" script, to execute before sending (or it is a "send inventory" script, with a pre-send part for checks), and that will ensure that the follwing attribute are filled:

- RUDDER/UUID
- RUDDER/HOSTNAME or OPERATINGSYSTEM/FQDN
- RUDDER/OWNER
- RUDDER/AGENT/POLICY_SERVER_UUID
- RUDDER/AGENT/AGENT_NAME
- OPERATINGSYSTEM/{FULL_NAME or KERNEL_NAME or NAME}
- OPERATINGSYSTEM/KERNEL_VERSION or if OPERATINGSYSTEM/KERNEL_NAME.toLowerCase aix: HARDWARE/OSVERSION

For information, the following rules are checked on Rudder side: they are less strict, but I'm almost sure it is for bad (i.e: code not cleaned) reasons:

- RUDDER/UUID (or else UUID anywhere - not sure we should do that)
- RUDDER/HOSTNAME or else HOSTNAME anywhere in 2.11,3.0 (not sure it's ok) or else in 3.1 OPERATINGSYSTEM/FQDN
- RUDDER/OWNER or else USER anywhere
- RUDDER/AGENT/POLICY_SERVER_UUID or else POLICY_SERVER anywhere
- RUDDER/AGENT/AGENT_NAME or else AGENTNAME anywhere
- OPERATINGSYSTEM/{FULL_NAME or KERNEL_NAME or NAME}
- OPERATINGSYSTEM/KERNEL_VERSION or if OPERATINGSYSTEM/KERNEL_NAME.toLowerCase aix: HARDWARE/OSVERSION


Subtasks 2 (0 open2 closed)

Bug #9388: Syntax error in fusion techniqueReleasedBenoît PECCATTE2016-10-17Actions
Bug #9508: Broken initial promises: rudder/cfengine-community/inputs/inventory/1.0/fusionAgent.cf:500:10: error: syntax errorReleasedAlexis Mousset2016-10-24Actions

Related issues 4 (0 open4 closed)

Related to Rudder - User story #8022: Allow users to specify node hostname (FQDN)ReleasedAlexis MoussetActions
Related to Rudder - Bug #8236: Examples in ldap-inventory are not real life examplesReleasedBenoît PECCATTE2016-05-03Actions
Related to Rudder - User story #8919: Remove modifications made to the inventory by the agentReleasedFrançois ARMANDActions
Has duplicate Rudder - User story #8077: Check generated inventory before sending itRejected2016-03-16Actions
Actions #1

Updated by François ARMAND over 8 years ago

  • Related to User story #8022: Allow users to specify node hostname (FQDN) added
Actions #2

Updated by Nicolas CHARLES over 8 years ago

  • Translation missing: en.field_tag_list set to sponsored
Actions #3

Updated by Alexis Mousset over 8 years ago

  • Has duplicate User story #8077: Check generated inventory before sending it added
Actions #4

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.20 to 2.11.21
Actions #5

Updated by Jonathan CLARKE over 8 years ago

  • Assignee set to Benoît PECCATTE
Actions #6

Updated by François ARMAND over 8 years ago

  • Description updated (diff)
Actions #7

Updated by Benoît PECCATTE over 8 years ago

  • Related to Bug #8236: Examples in ldap-inventory are not real life examples added
Actions #8

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.21 to 2.11.22
Actions #9

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.22 to 2.11.23
Actions #10

Updated by Benoît PECCATTE over 8 years ago

  • Status changed from New to In progress
Actions #11

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.23 to 2.11.24
Actions #12

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 2.11.24 to 308
Actions #13

Updated by François ARMAND about 8 years ago

  • Related to User story #8919: Remove modifications made to the inventory by the agent added
Actions #14

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 308 to 3.1.14
Actions #15

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.14 to 3.1.15
Actions #16

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.15 to 3.1.16
Actions #17

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.16 to 3.1.17
Actions #18

Updated by Benoît PECCATTE about 8 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1055
Actions #19

Updated by Benoît PECCATTE about 8 years ago

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

Updated by Nicolas CHARLES about 8 years ago

  • Related to Bug #9388: Syntax error in fusion technique added
Actions #21

Updated by Vincent MEMBRÉ almost 8 years ago

  • Tracker changed from Bug to User story
Actions #22

Updated by Vincent MEMBRÉ almost 8 years ago

  • Related to deleted (Bug #9388: Syntax error in fusion technique)
Actions #23

Updated by Vincent MEMBRÉ almost 8 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.0.1, 3.1.16 and 3.2.10 which were released today.

Actions

Also available in: Atom PDF