Project

General

Profile

Bug #12026

When a network interface is deleted from a node, it is not removed on the Rudder server

Added by Nicolas CHARLES 11 months ago. Updated 10 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:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Small
Priority:
91

Description

If network interfaces are removed on a node (like, on a docker server), they don't disappear from the Rudder server - resulting in an ever growing list of network interface in Rudder for every nodes


Related issues

Related to Rudder - Bug #11912: VM list in a host doesn't match inventory listNew
Related to Rudder - Bug #12041: No Machine Inventory in nodes list while the details are completeReleased
Has duplicate Rudder - Bug #12539: Upgrading from a SP'ed SLES to a GA keeps the Service Pack fieldRejected

Associated revisions

Revision 542e8647 (diff)
Added by François ARMAND 11 months ago

Fixes #12026: When a network interface is deleted from a node, it is not removed on the Rudder server

History

#1 Updated by François ARMAND 11 months ago

  • Related to Bug #11912: VM list in a host doesn't match inventory list added

#2 Updated by Nicolas CHARLES 11 months ago

A workaround can be to delete all network interfaces with following script, then regenerating an inventory

ldapsearch  -o ldif-wrap=no -v -h localhost -p 1389  -x -D "cn=Manager,cn=rudder-configuration" -w secret -b "nodeId=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX,ou=Nodes,ou=Accepted Inventories,ou=Inventories,cn=rudder-configuration" -s one "(objectClass=networkInterfaceLogicalElement)" 1.1 | grep -e "^dn*" | sed -e "s/dn: //" > dn_to_delete.txt

ldapdelete -h localhost -p 1389 -D "cn=manager,cn=rudder-configuration" -w 'secret' -c -f dn_to_delete.txt

#3 Updated by François ARMAND 11 months ago

  • Status changed from New to In progress
  • Assignee set to François ARMAND

#4 Updated by François ARMAND 11 months ago

  • Severity set to Critical - prevents main use of Rudder | no workaround | data loss | security
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
  • Effort required set to Small
  • Priority changed from 0 to 91

So, it happens on any sub-ldap entries of node (i.e mountPoint or networkInterface) or machine (bios, cpu, controllers, etc). So it is critical, because obviously it can impact dyn-group consistancy.

#5 Updated by François ARMAND 11 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/ldap-inventory/pull/124

#6 Updated by François ARMAND 11 months ago

  • Status changed from Pending technical review to Pending release

#7 Updated by François ARMAND 11 months ago

  • Related to Bug #12041: No Machine Inventory in nodes list while the details are complete added

#8 Updated by Vincent MEMBRÉ 10 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.10 and 4.2.4 which were released today.

#9 Updated by François ARMAND 7 months ago

  • Has duplicate Bug #12539: Upgrading from a SP'ed SLES to a GA keeps the Service Pack field added

Also available in: Atom PDF