Bug #15827
closed
Job to clean unreference software may delete software for pending nodes
Added by Nicolas CHARLES about 5 years ago.
Updated about 5 years ago.
Category:
Web - Nodes & inventories
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
Description
we store all softwares in ou=Software, which can get pretty big over time
so we created job to purge unreferenced softwares, by looking at nodes in acceptedDit.NODES.dn.getParent - but this search within ou=Accepted inventories, so it missed Pending inventories :(
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/2497
impact is not very bad, as new inventory will fix data (it didn't break anything on my test platform), but it is quite sad
- Status changed from Pending technical review to Pending release
- Name check changed from To do to Reviewed
- Fix check changed from To do to Checked
Tested by having a server on debian, a node on centos still in pending (so we are sure soft are not in common).
After one hour, we can see:
[2019-10-09 09:45:34] INFO scheduledJob - Purged 0 unreferenced softwares
Then we delete the node, and after one more hour we can see:
Purged following software: [very long list of soft]
- Status changed from Pending release to Released
This bug has been fixed in Rudder 5.0.14 which was released today.
Also available in: Atom
PDF