Bug #15422
closed
Some inventories are not correctly noticed by inotify file watcher
Added by Nicolas CHARLES over 5 years ago.
Updated over 4 years ago.
Category:
Web - Nodes & inventories
Fix check:
Error - Blocking
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
- Target version changed from 6.0.0~beta1 to 6.0.0
- Target version changed from 6.0.0 to 6.0.0~beta1
- Related to Bug #15433: Sometimes, somes inventories are received as .ocs.gz, and not handled by the webapp added
- 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
- Subject changed from Some inventories are not handled in 5.1 to Some inventories are not correctly noticed by inotify file watcher
- Target version changed from 6.0.0 to 6.0.1
- Target version changed from 6.0.1 to 6.0.2
- Target version changed from 6.0.2 to 6.0.3
- Target version changed from 6.0.3 to 6.0.4
- Target version changed from 6.0.4 to 6.0.5
- Target version changed from 6.0.5 to 6.0.6
- Target version changed from 6.0.6 to 6.0.7
- Related to Bug #17390: Root inventory is not processed after install added
- Status changed from New to In progress
- Assignee set to François ARMAND
- Target version changed from 6.0.7 to 6.1.0~rc1
- 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
- Related to deleted (Bug #17390: Root inventory is not processed after install)
- Has duplicate Bug #17390: Root inventory is not processed after install added
- Related to deleted (Bug #15433: Sometimes, somes inventories are received as .ocs.gz, and not handled by the webapp)
- Has duplicate Bug #15433: Sometimes, somes inventories are received as .ocs.gz, and not handled by the webapp added
- Status changed from Pending technical review to Pending release
- Fix check changed from To do to Error - Blocking
- Status changed from Pending release to Released
This bug has been fixed in Rudder 6.1.0~rc1 which was released today.
Also available in: Atom
PDF