Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2016337

Summary: Intel LLDP Agent keeps information of deleted interfaces in its configuration file
Product: Red Hat Enterprise Linux 7 Reporter: Flos Qi Guo <qguo>
Component: lldpadAssignee: Aaron Conole <aconole>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.9CC: dchong, mleitner, snemec
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2021401 (view as bug list) Environment:
Last Closed: 2021-12-02 18:43:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2021401    

Description Flos Qi Guo 2021-10-21 10:31:18 UTC
> Description of problem:
lldpad service fails to start due to loading a huge configuration file full of interfaces that have been removed.

> Version-Release number of selected component (if applicable):
RHEL8(1.0.1-16.git036e314), RHEL7(lldpad-1.0.1-5.git036e314) and upstream all affected

> How reproducible:
Always

> Steps to Reproduce:
1. Fresh install a RHEL7.9/RHEL8.4

2. Install the latest lldpad package

# yum install lldpad

3. Enable the lldpad service

# systemctl enable lldpad

4. Reboot the system

5. Ensure the lldpad service is running and check the recorded interfaces:

# systemctl status lldpad
# cat /var/lib/lldpad/lldpad.conf | grep ':' | grep '^[[:space:]]\{2\}[a-z]' | sort -u

6. Create virtual ethernet tunnels and make it up:

# for i in {1..50}; do ip link add vetha$i type veth peer name vethb$i; ip link set vetha$i up; ip link set vethb$i up; done

7. Delete all these interfaces:

# for i in {1..50}; do ip link set vetha$i down; ip link del vetha$i; done

8. Check the recorded interfaces again:

# cat /var/lib/lldpad/lldpad.conf | grep ':' | grep '^[[:space:]]\{2\}[a-z]' | sort -u

9. Reboot the server

10. Check lldpad service status and the recorded interfaces:

# systemctl status lldpad
# cat /var/lib/lldpad/lldpad.conf | grep ':' | grep '^[[:space:]]\{2\}[a-z]' | sort -u

> Actual results:
The /var/lib/lldpad/lldpad.conf recorded all interfaces information though the veth ones have been deleted.

> Expected results:
The lldpad should only check for the valid interfaces dynamically.

> Additional info:
With a huge config file, e.g. with more than 136k interfaces, the lldpad process will consume lots of CPU during its startup and fails to start at last.

NO upstream fix at this moment.

Comment 3 Flos Qi Guo 2021-10-21 10:33:18 UTC
Ah.. sorry for the wrong version selection, as I first tested on RHEL7, however, it's also valid for RHEL8 and upstream.

Comment 5 Aaron Conole 2021-11-08 13:48:40 UTC
Please move to rhel8.  I will not fix in rhel7.

Note that I've proposed a fix upstream, but haven't gotten any feedback:
https://github.com/intel/openlldp/pull/81

Comment 6 Aaron Conole 2021-11-08 13:49:54 UTC
Err, sorry I misread.

I have not addressed anything like this upstream yet.  Need the above done first.

Comment 7 Flos Qi Guo 2021-11-09 07:08:57 UTC
Thanks Aaron! I'm cloning this bug to RHEL8.

Comment 8 Marcelo Ricardo Leitner 2021-12-02 18:43:06 UTC
Per last comments, closing the rhel7 one. Thanks.