Project

General

Profile

Actions

Bug #4882

closed

FusionInventory may report duplicated Network interfaces on AIX system, causing Rudder to ignore them

Added by Nicolas CHARLES over 10 years ago. Updated almost 10 years ago.

Status:
Released
Priority:
1 (highest)
Assignee:
Jonathan CLARKE
Category:
Web - Nodes & inventories
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

We may have duplicate Network entries in the Inventory:

    <NETWORKS>
      <DESCRIPTION>en1</DESCRIPTION>
      <IPADDRESS>126.126.112.93</IPADDRESS>
      <IPDHCP>No</IPDHCP>
      <IPMASK>255.255.255.0</IPMASK>
      <IPSUBNET>126.246.112.0</IPSUBNET>
      <MACADDR>A6:85:84:CF:CA:2C</MACADDR>
      <STATUS>up</STATUS>
      <TYPE>ethernet</TYPE>
    </NETWORKS>
    <NETWORKS>
      <DESCRIPTION>en1</DESCRIPTION>
      <IPADDRESS>126.126.112.93</IPADDRESS>
      <IPDHCP>No</IPDHCP>
      <IPMASK>255.255.255.0</IPMASK>
      <IPSUBNET>126.246.112.0</IPSUBNET>
      <STATUS>up</STATUS>
    </NETWORKS>

From what I gather, first one is returned by command

lscfg -v -l en*

second by:
ifconfig -l
lsattr -E -l $interface->{DESCRIPTION}


Related issues 2 (0 open2 closed)

Related to Rudder - Bug #4883: Network interface sharing the ip adress are ignored by the inventory parserReleasedFrançois ARMAND2014-05-22Actions
Has duplicate Rudder - Bug #4724: Some network interfaces from AIX inventory don't appear in RudderRejectedMatthieu CERDA2014-04-02Actions
Actions #1

Updated by Nicolas CHARLES over 10 years ago

Ok, I guess I understood the issue:
  1. lscfg is done, and get all the ent* adresses, and fill them with en name in the list interfaces
  2. ifconfig -l is made, and pushed to the list interfaces
  3. then this list is enhanced with extra data

So, if ent1 is the physical name of en1, we have twice en1 in the list

Actions #2

Updated by Nicolas CHARLES over 10 years ago

  • Description updated (diff)
Actions #4

Updated by Matthieu CERDA over 10 years ago

Actions #5

Updated by Matthieu CERDA over 10 years ago

  • Status changed from New to In progress
  • Assignee set to Matthieu CERDA

Adding PR as a patch to our builds

Actions #6

Updated by Matthieu CERDA over 10 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Matthieu CERDA to Jonathan CLARKE
  • % Done changed from 0 to 100
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/325

PR is ready for rudder-agent :)

Actions #7

Updated by Matthieu CERDA over 10 years ago

  • Status changed from Pending technical review to Pending release

Applied in changeset packages:commit:72369806273696f22d093d5fed9c66285b8f00bc.

Actions #8

Updated by Jonathan CLARKE over 10 years ago

Applied in changeset packages:commit:4062bed3764cb38ce1ac9ef8f9623e6265b164cf.

Actions #9

Updated by Vincent MEMBRÉ over 10 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.10.1, which was released today.
Check out:

Actions #10

Updated by Benoît PECCATTE almost 10 years ago

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

Also available in: Atom PDF