Bug #13916
closed
After changing node hostname, old inventory with incorrect name is not deleted and sent to Rudder server
Added by Alexis Mousset almost 6 years ago.
Updated over 2 years ago.
Category:
System techniques
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Very Small
Description
After changing a node's hostname, I get the following issue:
- The old inventory is kept in
/var/rudder/tmp/inventories
- When a new inventory is created, it is placed next to the old one in
/var/rudder/tmp/inventories
- Both inventories are sent to the server
- The wrong inventory is treated after the good, one, so the hostname (and possibly other changes) never gets updated in the server.
We need to clean old inventories on the agent to avoid such behavior.
Setting to major as it may hide important inventory updates.
- Translation missing: en.field_tag_list set to Sponsored
- Effort required set to Very Small
- User visibility set to Operational - other Techniques | Rudder settings | Plugins
- Priority changed from 0 to 113
A workaround is to remove the old inventory from /var/rudder/tmp/inventories
and run rudder agent inventory again
.
- Assignee set to Benoît PECCATTE
We wanted to keep one inventory for debuging. If hostname changes, then the newly generated inventory does not override the old one, and both are sent to Rudder. This cause chaos.
We need to specify the exhaustive list of filename to send to Rudder (ie inventory file + signature file).
We don't need to erase old file.
- Target version set to 5.0.4
- the fix will conflict with fusion < 2.3
- fusion < 2.3 is found in very old systems
- fusion >= 2.3 is found in not too old systems
- system fusion is used in rudder agent thin
- rudder agent thin is still supported until rudder 4.3
- rudder server 5.0 must support agent >= 4.1
So we choose to potentially break old agent only on 5.0
- Status changed from New to In progress
- Status changed from In progress to Pending technical review
- Assignee changed from Benoît PECCATTE to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1377
- Status changed from Pending technical review to Pending release
- Subject changed from Old incorrect inventory is still used on a node to After changing node hostanme, old inventory with incorrect name is not deleted and sent to Rudder server
- Priority changed from 113 to 112
- Status changed from Pending release to Released
This bug has been fixed in Rudder 5.0.4 which was released today.
Changelog
- Subject changed from After changing node hostanme, old inventory with incorrect name is not deleted and sent to Rudder server to After changing node hostname, old inventory with incorrect name is not deleted and sent to Rudder server
- Priority changed from 112 to 111
- Priority changed from 111 to 99
Also available in: Atom
PDF