Project

General

Profile

Actions

Bug #3626

closed

When a node has two intefaces with the same IP, it does not appear as pending node in Rudder WebUI and can't be accepted

Added by François ARMAND about 9 years ago. Updated over 6 years ago.

Status:
Released
Priority:
3
Category:
Web - Nodes & inventories
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:

Description

In some configuration, a server may have two interface with the same IP, for example:

eth0      Link encap:Ethernet  HWaddr 78:E7:D1:F6:F9:14
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          ....

eth1      Link encap:Ethernet  HWaddr 78:E7:D1:F6:F9:14
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          ....

That leads to a "duplicate attribute valie" error in LDAP, like:

[2013-05-27 16:01:11] INFO  com.normation.inventory.provisioning.endpoint.FusionReportEndpoint - New input report: 'xxxx-2013-05-27-13-19-31.ocs'
[2013-05-27 16:01:12] INFO  com.normation.inventory.provisioning.endpoint.FusionReportEndpoint - Report 'xxxx-2013-05-27-13-19-31.ocs' parsed in 493 milliseconds, sending to save engine.
[2013-05-27 16:01:13] ERROR com.normation.ldap.sdk.RwLDAPConnection - Exception ignored (by configuration) when trying to add entry 'nodeId=44446623-a36a-429a-8b19-bdf6fc250ae3,ou=Nodes,ou=Pending Inventories,ou=Inventories,cn=rudder-configuration'.  
Reported exception was: ipHostNumber: value #2 provided more than once

com.unboundid.ldap.sdk.LDAPException: ipHostNumber: value #2 provided more than once
        at com.unboundid.ldap.sdk.LDAPConnection.add(LDAPConnection.java:1648) ~[unboundid-ldapsdk-2.3.1.jar:2.3.1]

The problem (that we don't have for mac address) is that we summurize all ips in the Node entry, and in that case, we have a duplicate one.
Solution: just add distinct IP, we don't loose any information.

Actions #1

Updated by Vincent MEMBRÉ about 9 years ago

  • Status changed from 8 to Pending technical review
  • Assignee set to François ARMAND
  • Pull Request set to https://github.com/Normation/ldap-inventory/pull/20
Actions #2

Updated by Vincent MEMBRÉ about 9 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

Applied in changeset ldap-inventory:commit:713809d8e6ff74b7a9bc1c356f633701b5e982cc.

Actions #3

Updated by Anonymous about 9 years ago

Applied in changeset ldap-inventory:commit:4f44a7432521ba3670064c559bcbedc00714c344.

Actions #4

Updated by Nicolas PERRON about 9 years ago

  • Subject changed from When a node has two intefaces with the same IP, it can't be accpted to When a node has two intefaces with the same IP, it does not appear as pending node in Rudder WebUI and can't be accepted
Actions #5

Updated by Nicolas PERRON about 9 years ago

  • Status changed from Pending release to Released
Actions #6

Updated by Benoît PECCATTE over 7 years ago

  • Category changed from 26 to Web - Nodes & inventories
Actions #7

Updated by Benoît PECCATTE over 6 years ago

  • Target version changed from 2.3.13 to 2.4.6
Actions

Also available in: Atom PDF