[crm] Add support for snat, dnat and ipmc crm resources#1511
[crm] Add support for snat, dnat and ipmc crm resources#1511arlakshm merged 5 commits intosonic-net:masterfrom
Conversation
b60d12f to
46e902e
Compare
|
Retest this please |
|
The tests depend on sonic-net/sonic-utilities/pull/1258 for the new commands and hence failing. Shall I remove the tests till the CLI commands gets merged? |
orchagent/crmorch.cpp
Outdated
| SWSS_LOG_ERROR("Failed to get switch attribute %u , rv:%d", attr.id, status); | ||
| if(status != SAI_STATUS_NOT_SUPPORTED) | ||
| { | ||
| SWSS_LOG_ERROR("Failed to get switch attribute %u , rv:%d", attr.id, status); |
There was a problem hiding this comment.
if it is not supported, i think it is better to remove query. otherwise, in the syslog, we are going to continously having this error log for this unsupported attribute. it will cause confusion.
There was a problem hiding this comment.
you mean to remove it from m_resourcesMap on the first failure with SAI_STATUS_NOT_SUPPORTED?
There was a problem hiding this comment.
please note that the default poll interval is 5 minutes and the logs will be observed once every 5 minutes (poll interval)
There was a problem hiding this comment.
@PrabhuSreenivasan , we change the polling interval to 1 sec while running tests and this can come pretty often in that case causing test failures.
46e902e to
be8bfaa
Compare
| for (const auto &cnt : m_resourcesMap.at(i.second).countersMap) | ||
| try | ||
| { | ||
| for (const auto &cnt : m_resourcesMap.at(i.second).countersMap) |
There was a problem hiding this comment.
Since you are erasing the unsupported resource, do we hit this case?
There was a problem hiding this comment.
The code iterates over the const map crmUsedCntsTableMap which includes the unsupported resources as well. The out_of_range exception will be hit when it tries to access m_resourcesMap.at(i.second).countersMap for any of the unsupported resources.
Signed-off-by: Prabhu Sreenivasan <[email protected]>
be8bfaa to
12e5b1e
Compare
|
retest this please |
|
@PrabhuSreenivasan , could you please look into the VS test errors for: test_crm.TestCrm.test_Configure_snat https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/job/sonic-swss-build-pr/2518/ |
@prsunny, The test relies on crm CLI commands for snat, dnat, ipmc and those commands will be available when the associated PR sonic-net/sonic-utilities/pull/1258 gets merged. |
|
All, @arlakshm - this has been quiet for 6 days - can we get some review input so we can move forwards please? The clock is ticking ... |
Signed-off-by: Prabhu Sreenivasan <[email protected]>
053fe31
|
This pull request introduces 3 alerts when merging 053fe31 into c39a4b1 - view on LGTM.com new alerts:
|
Signed-off-by: Prabhu Sreenivasan <[email protected]>
|
@PrabhuSreenivasan, the unit tests are failing. Please take a look. |
|
This pull request introduces 1 alert and fixes 7 when merging 59b19a7 into 9ed3026 - view on LGTM.com new alerts:
fixed alerts:
|
Signed-off-by: Prabhu Sreenivasan <[email protected]>
59b19a7 to
04ab199
Compare
|
@PrabhuSreenivasan, majority of the Unit tests are commented out. Please re-enable them so that this PR can be merged. |
Signed-off-by: Prabhu Sreenivasan <[email protected]>
|
Looks like it picked up 532 which did not have CRM changes. The latest one https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/job/buildimage-vs-all/533/ has the changes. will trigger test again. |
|
retest vs please |
Done. |
* [config][vxlan]fix 'vxlan evpn_nvo add' command error Remove extra 'CONFIG_DB' argument from db.cfgdb.get_keys() Signed-off-by: shikenghua <[email protected]>
What I did Added support for snat, dnat and ipmc resources under CRM module. Why I did it New feature NAT adds new resources snat_enty and dnat_entry that needs to be monitored. ipmc_entry tracks IP multicast resources used by switch. Associated PRs sonic-net/sonic-utilities/pull/1258 sonic-net/sonic-buildimage#6012 Signed-off-by: Prabhu Sreenivasan <[email protected]>
Signed-off-by: Prabhu Sreenivasan [email protected]
What I did
Added support for snat, dnat and ipmc resources under CRM module.
Why I did it
New feature NAT adds new resources snat_enty and dnat_entry that needs to be monitored. ipmc_entry tracks IP multicast resources used by switch.
Associated PRs
sonic-net/sonic-utilities/pull/1258
sonic-net/sonic-buildimage#6012
How I verified it
Details if related