Project

General

Profile

Actions

Bug #6718

closed

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

Bug #6718: If the agent schedule is not every 5 minutes, inventory may not be sent anymore

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

Status:
Released
Priority:
N/A
Assignee:
Matthieu CERDA
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

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 2 (0 open2 closed)

Bug #7149: correct the condition for schedule defined in #6718ReleasedMatthieu CERDAActions
Bug #7224: Add missing system vars in inventory system techniqueReleasedBenoît PECCATTEActions

Related issues 2 (0 open2 closed)

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

Updated by Nicolas CHARLES over 10 years ago Actions #1

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

Updated by Vincent MEMBRÉ over 10 years ago Actions #2

  • Target version changed from 2.10.15 to 2.10.16

Updated by Nicolas CHARLES over 10 years ago Actions #3

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

Updated by Matthieu CERDA over 10 years ago Actions #4

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

Updated by Vincent MEMBRÉ over 10 years ago Actions #5

  • Target version changed from 2.10.16 to 2.10.17

Updated by Nicolas CHARLES over 10 years ago Actions #6

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

Updated by Nicolas CHARLES over 10 years ago Actions #7

This is most likely causing #6121

Updated by Nicolas CHARLES over 10 years ago Actions #8

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

Updated by Nicolas CHARLES over 10 years ago Actions #9

  • 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

Updated by Nicolas CHARLES over 10 years ago Actions #10

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

Updated by Matthieu CERDA over 10 years ago Actions #11

Updated by Vincent MEMBRÉ over 10 years ago Actions #12

  • 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.

Updated by Nicolas CHARLES over 6 years ago Actions #13

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

Also available in: PDF Atom