Multi-asic support for snmp_queue_counters test#13637
Multi-asic support for snmp_queue_counters test#13637arlakshm merged 4 commits intosonic-net:masterfrom
Conversation
There was a problem hiding this comment.
Instead of getting the configuration only of asic0 always, should we run the test for randomly selected one asic_index using enum_rand_one_asic_index
There was a problem hiding this comment.
Modified the test to select random asic_index based on enum_rand_one_asic_index. Please check.
There was a problem hiding this comment.
def load_new_cfg(duthost, data):
duthost.copy(content=json.dumps(data, indent=4), dest=CFG_DB_PATH) -- This is only copying to /etc/sonic/config_db.json file, whereas the configuration change should be applied to the asic namespace config_db
config_reload(duthost, config_source='config_db', safe_reload=True)
There was a problem hiding this comment.
Modified the test to do configuration change based on specific asic namespace in case of multi-asic. Please check
There was a problem hiding this comment.
Does the test always expect to have queue configuration for Ethernet0 and delete that?
There was a problem hiding this comment.
Ethernet0 was chosen as a random arbitrary port when this test was added initially by Aryeh. Similarly, the current changes for multi-asic, Ethernet0 is being chosen for asic0 and Ethernet144 is being chosen for asic1.
There was a problem hiding this comment.
Can we find the asic interface dynamically?
Not all HwSKU might have Ethernet144, for example the multi-asic VS does not have Ethernet144 interface https://github.com/sonic-net/sonic-buildimage/blob/master/device/virtual/x86_64-kvm_x86_64_4_asic-r0/msft_four_asic_vs/1/port_config.ini
There was a problem hiding this comment.
can this test be added to multi-asic VS test file so that it run on multi-asic VS testbed?
There was a problem hiding this comment.
Added this test to 'multi-asic-t1-lag' section.
6cb39e1 to
3cae14f
Compare
3cae14f to
784dbdf
Compare
|
@SuvarnaMeenakshi, can you sign-off on this PR? |
There was a problem hiding this comment.
This is currently getting skipped in the PR checker for multi-asic VS
There was a problem hiding this comment.
seems like this is broken for multi-aisc and is being skipped. #14007
784dbdf to
4790e0d
Compare
Approach What is the motivation for this PR? Currently, 'test_snmp_queue_counters' test doesn't have multi-asic support and the test is failing for multi-asic chassis due to the lack of support. How did you do it? Added multi-asic support for test 'test_snmp_queue_counters' and made sure the current test logic is not affected. How did you verify/test it? Ran the above-mentioned test case on a T2 chassis and verified.
Approach What is the motivation for this PR? Currently, 'test_snmp_queue_counters' test doesn't have multi-asic support and the test is failing for multi-asic chassis due to the lack of support. How did you do it? Added multi-asic support for test 'test_snmp_queue_counters' and made sure the current test logic is not affected. How did you verify/test it? Ran the above-mentioned test case on a T2 chassis and verified.
|
viz @kevinwangsk . Please merge this to 202405 branch. |
Approach What is the motivation for this PR? Currently, 'test_snmp_queue_counters' test doesn't have multi-asic support and the test is failing for multi-asic chassis due to the lack of support. How did you do it? Added multi-asic support for test 'test_snmp_queue_counters' and made sure the current test logic is not affected. How did you verify/test it? Ran the above-mentioned test case on a T2 chassis and verified.
Approach What is the motivation for this PR? Currently, 'test_snmp_queue_counters' test doesn't have multi-asic support and the test is failing for multi-asic chassis due to the lack of support. How did you do it? Added multi-asic support for test 'test_snmp_queue_counters' and made sure the current test logic is not affected. How did you verify/test it? Ran the above-mentioned test case on a T2 chassis and verified.
|
Cherry-pick PR to 202405: #15220 |
|
hi @sanjair-git could you help to take a look on the cherry pick PR, which has a PR test failure. |
Sure @StormLiangMS, I will take a look. |
Approach What is the motivation for this PR? Currently, 'test_snmp_queue_counters' test doesn't have multi-asic support and the test is failing for multi-asic chassis due to the lack of support. How did you do it? Added multi-asic support for test 'test_snmp_queue_counters' and made sure the current test logic is not affected. How did you verify/test it? Ran the above-mentioned test case on a T2 chassis and verified.
Approach What is the motivation for this PR? Currently, 'test_snmp_queue_counters' test doesn't have multi-asic support and the test is failing for multi-asic chassis due to the lack of support. How did you do it? Added multi-asic support for test 'test_snmp_queue_counters' and made sure the current test logic is not affected. How did you verify/test it? Ran the above-mentioned test case on a T2 chassis and verified.
Approach What is the motivation for this PR? Currently, 'test_snmp_queue_counters' test doesn't have multi-asic support and the test is failing for multi-asic chassis due to the lack of support. How did you do it? Added multi-asic support for test 'test_snmp_queue_counters' and made sure the current test logic is not affected. How did you verify/test it? Ran the above-mentioned test case on a T2 chassis and verified.
Hi @StormLiangMS, for 202405 branch, the changes with the fix have been merged as part of #15735. Taken care. |


Description of PR
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
How did you do it?
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation