sonic-net / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
728 stars 1.4k forks source link

ERR logs from swss#orchagent during test test_monitor_config_tc1_suite - activate: Mirror rule references mirror session "mirror_session_dscp" that does not exist yet #19348

Open DavidZagury opened 3 months ago

DavidZagury commented 3 months ago

Description

Steps to reproduce the issue:

  1. Run of test test_monitor_config_tc1_suite from generic_config_updater

Describe the results you received:

It could be that during the run of the test, the MIRROR_SESSION will be created before the POLICER, which will cause ERROR log lines to be printed.

Jun 5 04:56:36.188385 mtvr-moose-04 ERR swss#orchagent: :- activate: Mirror rule references mirror session "mirror_session_dscp" that does not exist yet ... Jun 5 04:56:36.188858 mtvr-moose-04 ERR swss#orchagent: :- add: Failed to create ACL rule RULE_1 in table EVERFLOW_DSCP Jun 5 04:56:36.189201 mtvr-moose-04 ERR swss#orchagent: :- createEntry: Failed to get policer policer_dscp Jun 5 04:56:36.189236 mtvr-moose-04 ERR swss#orchagent: :- createEntry: Failed to get policer policer_dscp ... Jun 5 04:56:36.189991 mtvr-moose-04 ERR swss#orchagent: :- activate: Mirror rule references mirror session "mirror_session_dscp" that does not exist yet Jun 5 04:56:36.190466 mtvr-moose-04 ERR swss#orchagent: :- add: Failed to create ACL rule RULE_1 in table EVERFLOW_DSCP

The policer will be created after that, and the mirror session will be created when the MirrorOrch will retry ro create it.

Jun 5 04:56:36.191311 mtvr-moose-04 NOTICE swss#orchagent: :- doTask: Created policer policer_dscp ... Jun 5 04:56:36.196902 mtvr-moose-04 NOTICE swss#orchagent: :- getPolicerOid: Get policer policer_dscp oid:12000000000e28 ... Jun 5 04:56:36.198953 mtvr-moose-04 NOTICE swss#orchagent: :- activateSession: Activated mirror session mirror_session_dscp Jun 5 04:56:36.198967 mtvr-moose-04 NOTICE swss#orchagent: :- createEntry: Created mirror session mirror_session_dscp ... Jun 5 04:56:36.200546 mtvr-moose-04 NOTICE syncd#SDK: [SAI_ACL.NOTICE] ./src/mlnx_sai_acl.c[14363]- mlnx_create_acl_entry: Created ACL_ENTRY [OID:0x20008] [acl_db_entry[0]] Jun 5 04:56:36.200858 mtvr-moose-04 NOTICE swss#orchagent: :- add: Successfully created ACL rule RULE_1 in table EVERFLOW_DSCP

Describe the results you expected:

If this is an expected behavior and nothing is wrong with the system, there shouldn't be an ERROR log line in the log.

Output of show version:

(paste your output here)

Output of show techsupport:

(paste your output here or download and attach the file here )

Additional information you deem important (e.g. issue happens only occasionally):

prgeor commented 3 months ago

@DavidZagury OA seems to be complaining about mirror session not created. @qiluo-msft is this something you can fix in gcu test , seems OA was finally able to create the mirror sessions.