Bug #15827
closedJob to clean unreference software may delete software for pending nodes
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 :(
Updated by Nicolas CHARLES about 5 years ago
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
Updated by Nicolas CHARLES about 5 years ago
- 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
Updated by Nicolas CHARLES about 5 years ago
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
Updated by Nicolas CHARLES about 5 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|199fd98c6e323e19afb6cf1531ac5ffaf1bc295b.
Updated by Alexis Mousset about 5 years ago
- Name check changed from To do to Reviewed
Updated by François ARMAND about 5 years ago
- 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]
Updated by Vincent MEMBRÉ about 5 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 5.0.14 which was released today.