Project

General

Profile

Bug #15827

Job to clean unreference software may delete software for pending nodes

Added by Nicolas CHARLES 12 months ago. Updated 12 months ago.

Status:
Released
Priority:
N/A
Category:
Web - Nodes & inventories
Target version:
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
User visibility:
Effort required:
Priority:
0

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 :(

#1

Updated by Nicolas CHARLES 12 months ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
#2

Updated by Nicolas CHARLES 12 months 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
#3

Updated by Nicolas CHARLES 12 months 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

#4

Updated by Nicolas CHARLES 12 months ago

  • Status changed from Pending technical review to Pending release
#6

Updated by François ARMAND 12 months ago

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]


#7

Updated by Vincent MEMBRÉ 12 months ago

  • 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