Project

General

Profile

Bug #6718

If the agent schedule is not every 5 minutes, inventory may not be sent anymore

Added by Nicolas CHARLES over 5 years ago. Updated over 5 years ago.

Status:
Released
Priority:
N/A
Assignee:
Matthieu CERDA
Category:
System techniques
Target version:
Severity:
User visibility:
Effort required:
Priority:

Description

If we don't have a 5 minutes schedume, inventory may never get updated anymore. Indeed, we only rely on splayclass(hourly), that is valid for 5 minutes every hours; so it is probably not ok for most schedule


Subtasks

Bug #7149: correct the condition for schedule defined in #6718ReleasedMatthieu CERDA2015-08-31Actions
Bug #7224: Add missing system vars in inventory system techniqueReleasedBenoît PECCATTE2015-09-23Actions

Related issues

Related to Rudder - Bug #6121: Some nodes may have outdated inventories on the serverRejectedNicolas CHARLES2015-01-14Actions
Related to Rudder - Bug #7290: Inventory upload is not distributed uniformlyReleasedBenoît PECCATTEActions
#1

Updated by Nicolas CHARLES over 5 years ago

hum, this is tricky, as it should work on 3.5
Idea: if schedule is standart, keep the splayclass, otherwise unconditionnaly execute the inventory ?

#2

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.15 to 2.10.16
#3

Updated by Nicolas CHARLES over 5 years ago

Does anyone has an idea on how to nicely fix that?

#4

Updated by Matthieu CERDA over 5 years ago

I'd advise either to:
  • Compute the classes that define when to send the inventory ourselves in Rudder and generate them in the policies in accordance with the current agent execution
  • Let something else that CFEngine handle the inventories (but I dislike this approach)

I don't have any other idea atm

#5

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.16 to 2.10.17
#6

Updated by Nicolas CHARLES over 5 years ago

  • Related to Bug #6121: Some nodes may have outdated inventories on the server added
#7

Updated by Nicolas CHARLES over 5 years ago

This is most likely causing #6121

#8

Updated by Nicolas CHARLES over 5 years ago

Ok, an idea:
  1. use select_class to select between midnight and 6am
  2. compare run_interval:
    if == 5, keep splayclass + select class
    if between 5 and 60; keep only the select class
    if more than 60, no condition
#9

Updated by Nicolas CHARLES over 5 years ago

  • Status changed from New to Pending technical review
  • Assignee set to Matthieu CERDA
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/739/files
#10

Updated by Nicolas CHARLES over 5 years ago

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

Updated by Matthieu CERDA over 5 years ago

#12

Updated by Vincent MEMBRÉ over 5 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.10.17, 2.11.14, 3.0.9 and 3.1.2 which were released today.

#13

Updated by Nicolas CHARLES almost 2 years ago

  • Related to Bug #7290: Inventory upload is not distributed uniformly added

Also available in: Atom PDF