Project

General

Profile

Actions

Bug #15827

closed

Job to clean unreference software may delete software for pending nodes

Added by Nicolas CHARLES over 1 year ago. Updated over 1 year 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 :(

Actions #1

Updated by Nicolas CHARLES over 1 year ago

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

Updated by Nicolas CHARLES over 1 year 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
Actions #3

Updated by Nicolas CHARLES over 1 year 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

Actions #4

Updated by Nicolas CHARLES over 1 year ago

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

Updated by François ARMAND over 1 year 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]


Actions #7

Updated by Vincent MEMBRÉ over 1 year ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 5.0.14 which was released today.

Actions

Also available in: Atom PDF