Description

The L2CPD was cored and with the message "%DAEMON-0: ../../../../../../src/junos/usr.sbin/l2cpd/erp/erp.c:erp_free_allocated_stp_inst:247: insist 'id>=ERP_STP_INSTANCE_START_VAL' failed"

Symptoms

After the ERP is deleted, the layer 2 control protocols crashed and cored. 

Aug 14 04:19:54.731 2024 MX960.RE0 mgd[21801]: %INTERACT-6-UI_CMDLINE_READ_LINE: User 'admin-user', command 'delete routing-instances ERPS-instances-1 '

Aug 14 04:19:54.751 2024 MX960.RE0 mgd[21801]: %INTERACT-6-UI_CMDLINE_READ_LINE: User 'admin-user', command 'delete routing-instances ERPS-instances-2 '

Aug 14 04:19:57.308 2024 MX960.RE0 mgd[21801]: %INTERACT-6-UI_CMDLINE_READ_LINE: User 'admin-user', command 'show | compare '

Aug 14 04:20:08.132 2024 MX960.RE0 mgd[21801]: %INTERACT-6-UI_CMDLINE_READ_LINE: User 'admin-user', command 'commit and-quit '

...

Aug 14 04:20:16.027 2024 MX960.RE0 l2cpd[22551]: %DAEMON-0: ../../../../../../src/junos/usr.sbin/l2cpd/erp/erp.c:erp_free_allocated_stp_inst:247: insist 'id>=ERP_STP_INSTANCE_START_VAL' failed

...

Aug 14 04:20:16.144 2024 MX960.RE0 mgd[21801]: %INTERACT-6-UI_COMMIT_PROGRESS: Commit operation in progress: commit complete

Aug 14 04:20:16.144 2024 MX960.RE0 mgd[21801]: %INTERACT-4-UI_COMMIT_COMPLETED: : commit complete

Aug 14 04:20:16.186 2024 MX960.RE0 mgd[21801]: %INTERACT-6-UI_COMMIT_PROGRESS: Commit operation in progress: cannot signal 'Web management gatekeeper process', signal 31, no pid

Aug 14 04:20:16.215 2024 MX960.RE0 mgd[21801]: %INTERACT-6-UI_COMMIT_PROGRESS: Commit operation in progress: signaling 'Alarm control process', pid 93841, signal 30, status 0 with notification errors enabled

Aug 14 04:20:16.236 2024 MX960.RE0 mgd[21801]: %INTERACT-5-UI_DBASE_LOGOUT_EVENT: User 'admin-user' exiting configuration mode

Aug 14 04:20:17.461 2024 MX960.RE0 jlaunchd: %AUTH-3: l2cpd-service (PID 22551) terminated by signal number 6. Core dumped!


[email protected]> show system core-dumps no-forwarding


/var/crash/*core*: No such file or directory

-rw-rw---- 1 root wheel  1952195 Jul 31 16:20 /var/tmp/l2cpd.core-tarball.0.tgz

-rw-rw---- 1 root wheel  1864310 Aug 14 04:20 /var/tmp/l2cpd.core-tarball.1.tgz

-rw-rw---- 1 root wheel  1339926 Aug 14 04:22 /var/tmp/l2cpd.core-tarball.2.tgz

-rw-rw---- 1 root wheel  1348275 Aug 14 04:23 /var/tmp/l2cpd.core-tarball.3.tgz

-rw-rw---- 1 root wheel  1355575 Aug 14 04:24 /var/tmp/l2cpd.core-tarball.4.tgz

/var/tmp/pics/*core*: No such file or directory

/var/crash/kernel.*: No such file or directory

/var/jails/rest-api/tmp/*core*: No such file or directory

/tftpboot/corefiles/*core*: No such file or directory

total files: 5

 

Solution

After the switchover, the new primary RE tries to read the ERP information when deleting it, which results in the crash of the l2cpd process.

The issue was tracked by PR1517458 and has been fixed.

Modification History

2024-08-16 : Article Created
2024-08-26: Formated. 

Related Information

https://prsearch.juniper.net/problemreport/PR1517458