Project

General

Profile

Actions

Bug #6718

closed

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

Added by Nicolas CHARLES over 9 years ago. Updated about 9 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 CERDA2015-08-31Actions
Bug #7224: Add missing system vars in inventory system techniqueReleasedBenoît PECCATTE2015-09-23Actions

Related issues 2 (0 open2 closed)

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
Actions #1

Updated by Nicolas CHARLES over 9 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 ?

Actions #2

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.10.15 to 2.10.16
Actions #3

Updated by Nicolas CHARLES over 9 years ago

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

Actions #4

Updated by Matthieu CERDA over 9 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

Actions #5

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.10.16 to 2.10.17
Actions #6

Updated by Nicolas CHARLES about 9 years ago

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

Updated by Nicolas CHARLES about 9 years ago

This is most likely causing #6121

Actions #8

Updated by Nicolas CHARLES about 9 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
Actions #9

Updated by Nicolas CHARLES about 9 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
Actions #10

Updated by Nicolas CHARLES about 9 years ago

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

Updated by Matthieu CERDA about 9 years ago

Actions #12

Updated by Vincent MEMBRÉ about 9 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.

Actions #13

Updated by Nicolas CHARLES over 5 years ago

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

Also available in: Atom PDF