Project

General

Profile

Actions

Bug #15422

closed

Some inventories are not correctly noticed by inotify file watcher

Bug #15422: Some inventories are not correctly noticed by inotify file watcher

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

Status:
Released
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Error - Blocking
Regression:

Description

After installing a 5.1, the server received a .ocs.gz inventory

root@server:/var/rudder/inventories# ls -alh incoming/
total 32K
drwxrwx---. 2 rudder apache  122 Aug  7 08:29 .
drwxr-x--x. 8 root   root    113 Aug  7 08:39 ..
-rw-r--r--. 1 apache apache  25K Aug  7 08:27 relay-6b73b256-8626-45bc-a698-a7e8ebe138c2.ocs.gz
-rw-r--r--. 1 apache apache 1.2K Aug  7 08:27 relay-6b73b256-8626-45bc-a698-a7e8ebe138c2.ocs.sign

and it completely ignored it

resending the inventory from the node solved the issue, as it was uncompressed

root@server:/var/rudder/inventories# ls -alh incoming/
total 216K
drwxrwx---. 2 rudder apache  119 Aug  7 08:41 .
drwxr-x--x. 8 root   root    113 Aug  7 08:39 ..
-rw-rw----. 1 root   root   210K Aug  7 08:41 relay-6b73b256-8626-45bc-a698-a7e8ebe138c2.ocs
-rw-r--r--. 1 apache apache 1.2K Aug  7 08:41 relay-6b73b256-8626-45bc-a698-a7e8ebe138c2.ocs.sign


Subtasks 1 (0 open1 closed)

Bug #17479: cannot upgrade Rudder from 6.0-nightly to 6.1-nightly on debian9RejectedActions

Related issues 2 (0 open2 closed)

Has duplicate Rudder - Bug #17390: Root inventory is not processed after installRejectedFrançois ARMANDActions
Has duplicate Rudder - Bug #15433: Sometimes, somes inventories are received as .ocs.gz, and not handled by the webappRejectedActions

Updated by Vincent MEMBRÉ over 6 years ago Actions #1

  • Target version changed from 6.0.0~beta1 to 6.0.0

Updated by François ARMAND over 6 years ago Actions #2

  • Target version changed from 6.0.0 to 6.0.0~beta1

Updated by François ARMAND over 6 years ago Actions #3

  • Related to Bug #15433: Sometimes, somes inventories are received as .ocs.gz, and not handled by the webapp added

Updated by François ARMAND over 6 years ago Actions #4

  • Target version changed from 6.0.0~beta1 to 6.0.0

It's most likelly a ducplicate of #15433.

The problem doesn't seems to be with the fact that file is zipped (other .gz inventories are correctly processed, and the code does know what to do with compressed files), but more likelly the file watcher is missing some events.

We need to implement a periodic full scan of inventories to avoid that problem.
Can go in beta2

Updated by François ARMAND over 6 years ago Actions #5

  • Subject changed from Some inventories are not handled in 5.1 to Some inventories are not correctly noticed by inotify file watcher

Updated by Alexis Mousset about 6 years ago Actions #6

  • Target version changed from 6.0.0 to 6.0.1

Updated by Vincent MEMBRÉ about 6 years ago Actions #7

  • Target version changed from 6.0.1 to 6.0.2

Updated by Vincent MEMBRÉ about 6 years ago Actions #8

  • Target version changed from 6.0.2 to 6.0.3

Updated by Vincent MEMBRÉ almost 6 years ago Actions #9

  • Target version changed from 6.0.3 to 6.0.4

Updated by Vincent MEMBRÉ almost 6 years ago Actions #10

  • Target version changed from 6.0.4 to 6.0.5

Updated by Vincent MEMBRÉ almost 6 years ago Actions #11

  • Target version changed from 6.0.5 to 6.0.6

Updated by Vincent MEMBRÉ almost 6 years ago Actions #12

  • Target version changed from 6.0.6 to 6.0.7

Updated by François ARMAND over 5 years ago Actions #13

  • Related to Bug #17390: Root inventory is not processed after install added

Updated by François ARMAND over 5 years ago Actions #14

  • Status changed from New to In progress
  • Assignee set to François ARMAND

Updated by François ARMAND over 5 years ago Actions #15

  • Target version changed from 6.0.7 to 6.1.0~rc1

Updated by François ARMAND over 5 years ago Actions #16

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/2982

Updated by François ARMAND over 5 years ago Actions #17

  • Related to deleted (Bug #17390: Root inventory is not processed after install)

Updated by François ARMAND over 5 years ago Actions #18

  • Has duplicate Bug #17390: Root inventory is not processed after install added

Updated by François ARMAND over 5 years ago Actions #19

  • Related to deleted (Bug #15433: Sometimes, somes inventories are received as .ocs.gz, and not handled by the webapp)

Updated by François ARMAND over 5 years ago Actions #20

  • Has duplicate Bug #15433: Sometimes, somes inventories are received as .ocs.gz, and not handled by the webapp added

Updated by François ARMAND over 5 years ago Actions #21

  • Status changed from Pending technical review to Pending release

Updated by Nicolas CHARLES over 5 years ago Actions #22

  • Fix check changed from To do to Error - Blocking

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

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.1.0~rc1 which was released today.

Actions

Also available in: PDF Atom