Project

General

Profile

Actions

Bug #15422

closed

Some inventories are not correctly noticed by inotify file watcher

Added by Nicolas CHARLES over 4 years ago. Updated almost 4 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
Actions #1

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 6.0.0~beta1 to 6.0.0
Actions #2

Updated by François ARMAND over 4 years ago

  • Target version changed from 6.0.0 to 6.0.0~beta1
Actions #3

Updated by François ARMAND over 4 years ago

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

Updated by François ARMAND over 4 years ago

  • 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

Actions #5

Updated by François ARMAND over 4 years ago

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

Updated by Alexis Mousset over 4 years ago

  • Target version changed from 6.0.0 to 6.0.1
Actions #7

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 6.0.1 to 6.0.2
Actions #8

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 6.0.2 to 6.0.3
Actions #9

Updated by Vincent MEMBRÉ about 4 years ago

  • Target version changed from 6.0.3 to 6.0.4
Actions #10

Updated by Vincent MEMBRÉ about 4 years ago

  • Target version changed from 6.0.4 to 6.0.5
Actions #11

Updated by Vincent MEMBRÉ about 4 years ago

  • Target version changed from 6.0.5 to 6.0.6
Actions #12

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 6.0.6 to 6.0.7
Actions #13

Updated by François ARMAND almost 4 years ago

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

Updated by François ARMAND almost 4 years ago

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

Updated by François ARMAND almost 4 years ago

  • Target version changed from 6.0.7 to 6.1.0~rc1
Actions #16

Updated by François ARMAND almost 4 years ago

  • 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
Actions #17

Updated by François ARMAND almost 4 years ago

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

Updated by François ARMAND almost 4 years ago

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

Updated by François ARMAND almost 4 years ago

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

Updated by François ARMAND almost 4 years ago

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

Updated by François ARMAND almost 4 years ago

  • Status changed from Pending technical review to Pending release
Actions #22

Updated by Nicolas CHARLES almost 4 years ago

  • Fix check changed from To do to Error - Blocking
Actions #23

Updated by Vincent MEMBRÉ almost 4 years ago

  • 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: Atom PDF