[orchagent, cfgmgr] Add response publisher and state recording#1992
[orchagent, cfgmgr] Add response publisher and state recording#1992prsunny merged 1 commit intosonic-net:masterfrom
Conversation
|
This pull request introduces 1 alert and fixes 4 when merging 988c7ff into e92c1df - view on LGTM.com new alerts:
fixed alerts:
|
|
This pull request introduces 1 alert and fixes 4 when merging e4658d0 into e92c1df - view on LGTM.com new alerts:
fixed alerts:
|
|
@prsunny , all comments have been addressed now. Please take a look. Thanks. |
|
/azpw run |
|
I think Brian and I will need to revisit this tomorrow. We obviously pulled
forward some stuff when we squashed and rebased
…On Wed, Nov 17, 2021 at 6:27 PM StephenWangGoogle ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In orchagent/orch.cpp
<#1992 (comment)>:
> }
catch (const std::logic_error& e)
{
- SWSS_LOG_ERROR("Logic error: %s", e.what());
+ rc = ReturnCode(StatusCode::SWSS_RC_INTERNAL)
+ << "Logic error: " << e.what();
+ SWSS_LOG_ERROR("%s", rc.message().c_str());
+ SWSS_RAISE_CRITICAL_STATE(rc.message());
@mint570 <https://github.com/mint570> - is this intended? Did we add the
critical state API in?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1992 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJ4SJMXNHDKJ7J376MY4ILUMQ27VANCNFSM5G36W3CA>
.
|
|
Hi @prsunny , the PR is updated and all comments should be addressed. It can't be tested now since the swss-common 545 PR is not in yet but can you do another pass of review now? |
|
please revert the last commit.. it has introduced a lot of unwanted changes.. Please fix the few lines thats newly added to main.cpp |
|
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@bocon13 , i'm not sure why this PR has consistent failure on the VS tests - Can you please take a look at this pipeline and check if its due to code change? |
|
@prsunny I wasn't able to reproduce this today, but here's the error: It might be related to the responsepublisher files that get created for each test? It might be as simple as bumping up the file limit. I'll continue to look... |
But I thought its not enabled by default. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
vs tests are failing because we are missing the APPL_STATE_DB from the database_config.json: This PR depends on: sonic-net/sonic-buildimage#9082 Update: rebased to master and tests are re-running |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
* Add response publisher.
* Add APPL STATE DB recording.
* Add response path into vrforch.
Submission containing materials of a third party:
Copyright Google LLC; Licensed under Apache 2.0
Co-authored-by: Runming Wu <runmingwu@google.com>
Co-authored-by: Yilan Ji <yilanji@google.com>
Co-authored-by: Akarsh Gupta <akarshgupta@google.com>
Co-authored-by: Jay Hu <jiarenhu@google.com>
Signed-off-by: Don Newton don@opennetworking.org
9b8a1b0 to
071a06b
Compare
|
@prsunny |
|
Thanks @prsunny! |
691c37b [Route bulk] Fix bugs in case a SET operation follows a DEL operation in the same bulk (sonic-net/sonic-swss#2086) a4c80c3 patch for issue sonic-net/sonic-swss#1971 - enable Rx Drop handling for cisco-8000 (sonic-net/sonic-swss#2041) 71751d1 [macsec] Support setting IPG by gearbox_config.json (sonic-net/sonic-swss#2051) 5d5c169 [bulk mode] Fix bulk conflict when in case there are both remove and set operations (sonic-net/sonic-swss#2071) 8bbdbd2 Fix SRV6 NHOP CRM object type (sonic-net/sonic-swss#2072) ef5b35f [vstest] VS test failure fix after fabric port orch PR merge (sonic-net/sonic-swss#1811) 89ea538 Supply the missing ingress/egress port profile list in document (sonic-net/sonic-swss#2064) 8123437 [pfc_detect] fix RedisReply errors (sonic-net/sonic-swss#2040) b38f527 [swss][CRM][MPLS] MPLS CRM Nexthop - switch back to using SAI OBJECT rather than SWITCH OBJECT ae061e5 create debug_shell_enable config to enable debug shell (sonic-net/sonic-swss#2060) 45e446d [cbf] Fix max FC value (sonic-net/sonic-swss#2049) b1b5b29 Initial p4orch pytest code. (sonic-net/sonic-swss#2054) d352d5a Update default route status to state DB (sonic-net/sonic-swss#2009) 24a64d6 Orchagent: Integrate P4Orch (sonic-net/sonic-swss#2029) 15a3b6c Delete the IPv6 link-local Neighbor when ipv6 link-local mode is disabled (sonic-net/sonic-swss#1897) ed783e1 [orchagent] Add trap flow counter support (sonic-net/sonic-swss#1951) e9b05a3 [vnetorch] ECMP for vnet tunnel routes with endpoint health monitor (sonic-net/sonic-swss#1955) bcb7d61 P4Orch: inital add of source (sonic-net/sonic-swss#1997) f6f6f86 [mclaglink] fix acl out ports (sonic-net/sonic-swss#2026) fd887bf [Reclaim buffer] Reclaim unused buffer for dynamic buffer model (sonic-net/sonic-swss#1910) 9258978 [orchagent, cfgmgr] Add response publisher and state recording (sonic-net/sonic-swss#1992) 3d862a7 Fixing subport vs test script for subport under VNET (sonic-net/sonic-swss#2048) fb0a5fd Don't handle buffer pool watermark during warm reboot reconciling (sonic-net/sonic-swss#1987) 16d4bcd Routed subinterface enhancements (sonic-net/sonic-swss#1907) 9639db7 [vstest/subintf] Add vs test to validate sub interface ingress to a vnet (sonic-net/sonic-swss#1642) Signed-off-by: Stephen Sun stephens@nvidia.com
691c37b [Route bulk] Fix bugs in case a SET operation follows a DEL operation in the same bulk (sonic-net/sonic-swss#2086) a4c80c3 patch for issue sonic-net/sonic-swss#1971 - enable Rx Drop handling for cisco-8000 (sonic-net/sonic-swss#2041) 71751d1 [macsec] Support setting IPG by gearbox_config.json (sonic-net/sonic-swss#2051) 5d5c169 [bulk mode] Fix bulk conflict when in case there are both remove and set operations (sonic-net/sonic-swss#2071) 8bbdbd2 Fix SRV6 NHOP CRM object type (sonic-net/sonic-swss#2072) ef5b35f [vstest] VS test failure fix after fabric port orch PR merge (sonic-net/sonic-swss#1811) 89ea538 Supply the missing ingress/egress port profile list in document (sonic-net/sonic-swss#2064) 8123437 [pfc_detect] fix RedisReply errors (sonic-net/sonic-swss#2040) b38f527 [swss][CRM][MPLS] MPLS CRM Nexthop - switch back to using SAI OBJECT rather than SWITCH OBJECT ae061e5 create debug_shell_enable config to enable debug shell (sonic-net/sonic-swss#2060) 45e446d [cbf] Fix max FC value (sonic-net/sonic-swss#2049) b1b5b29 Initial p4orch pytest code. (sonic-net/sonic-swss#2054) d352d5a Update default route status to state DB (sonic-net/sonic-swss#2009) 24a64d6 Orchagent: Integrate P4Orch (sonic-net/sonic-swss#2029) 15a3b6c Delete the IPv6 link-local Neighbor when ipv6 link-local mode is disabled (sonic-net/sonic-swss#1897) ed783e1 [orchagent] Add trap flow counter support (sonic-net/sonic-swss#1951) e9b05a3 [vnetorch] ECMP for vnet tunnel routes with endpoint health monitor (sonic-net/sonic-swss#1955) bcb7d61 P4Orch: inital add of source (sonic-net/sonic-swss#1997) f6f6f86 [mclaglink] fix acl out ports (sonic-net/sonic-swss#2026) fd887bf [Reclaim buffer] Reclaim unused buffer for dynamic buffer model (sonic-net/sonic-swss#1910) 9258978 [orchagent, cfgmgr] Add response publisher and state recording (sonic-net/sonic-swss#1992) 3d862a7 Fixing subport vs test script for subport under VNET (sonic-net/sonic-swss#2048) fb0a5fd Don't handle buffer pool watermark during warm reboot reconciling (sonic-net/sonic-swss#1987) 16d4bcd Routed subinterface enhancements (sonic-net/sonic-swss#1907) 9639db7 [vstest/subintf] Add vs test to validate sub interface ingress to a vnet (sonic-net/sonic-swss#1642) Signed-off-by: Stephen Sun stephens@nvidia.com
691c37b [Route bulk] Fix bugs in case a SET operation follows a DEL operation in the same bulk (sonic-net/sonic-swss#2086) a4c80c3 patch for issue sonic-net/sonic-swss#1971 - enable Rx Drop handling for cisco-8000 (sonic-net/sonic-swss#2041) 71751d1 [macsec] Support setting IPG by gearbox_config.json (sonic-net/sonic-swss#2051) 5d5c169 [bulk mode] Fix bulk conflict when in case there are both remove and set operations (sonic-net/sonic-swss#2071) 8bbdbd2 Fix SRV6 NHOP CRM object type (sonic-net/sonic-swss#2072) ef5b35f [vstest] VS test failure fix after fabric port orch PR merge (sonic-net/sonic-swss#1811) 89ea538 Supply the missing ingress/egress port profile list in document (sonic-net/sonic-swss#2064) 8123437 [pfc_detect] fix RedisReply errors (sonic-net/sonic-swss#2040) b38f527 [swss][CRM][MPLS] MPLS CRM Nexthop - switch back to using SAI OBJECT rather than SWITCH OBJECT ae061e5 create debug_shell_enable config to enable debug shell (sonic-net/sonic-swss#2060) 45e446d [cbf] Fix max FC value (sonic-net/sonic-swss#2049) b1b5b29 Initial p4orch pytest code. (sonic-net/sonic-swss#2054) d352d5a Update default route status to state DB (sonic-net/sonic-swss#2009) 24a64d6 Orchagent: Integrate P4Orch (sonic-net/sonic-swss#2029) 15a3b6c Delete the IPv6 link-local Neighbor when ipv6 link-local mode is disabled (sonic-net/sonic-swss#1897) ed783e1 [orchagent] Add trap flow counter support (sonic-net/sonic-swss#1951) e9b05a3 [vnetorch] ECMP for vnet tunnel routes with endpoint health monitor (sonic-net/sonic-swss#1955) bcb7d61 P4Orch: inital add of source (sonic-net/sonic-swss#1997) f6f6f86 [mclaglink] fix acl out ports (sonic-net/sonic-swss#2026) fd887bf [Reclaim buffer] Reclaim unused buffer for dynamic buffer model (sonic-net/sonic-swss#1910) 9258978 [orchagent, cfgmgr] Add response publisher and state recording (sonic-net/sonic-swss#1992) 3d862a7 Fixing subport vs test script for subport under VNET (sonic-net/sonic-swss#2048) fb0a5fd Don't handle buffer pool watermark during warm reboot reconciling (sonic-net/sonic-swss#1987) 16d4bcd Routed subinterface enhancements (sonic-net/sonic-swss#1907) 9639db7 [vstest/subintf] Add vs test to validate sub interface ingress to a vnet (sonic-net/sonic-swss#1642) Signed-off-by: Stephen Sun stephens@nvidia.com
…-net#1992) * Add response publisher , Add APPL STATE DB recording. Co-authored-by: PINS Working Group <sonic-pins-subgroup@googlegroups.com>
…-net#1992) * Add response publisher , Add APPL STATE DB recording. Co-authored-by: PINS Working Group <sonic-pins-subgroup@googlegroups.com>
Submission containing materials of a third party:
Copyright Google LLC; Licensed under Apache 2.0
Co-authored-by: Runming Wu runmingwu@google.com
Co-authored-by: Yilan Ji yilanji@google.com
Co-authored-by: Akarsh Gupta akarshgupta@google.com
Co-authored-by: Jay Hu jiarenhu@google.com
Signed-off-by: Don Newton don@opennetworking.org
Depends on pins/sonic-swss-common-public#2
See the Response path HLD for more details:
https://github.com/pins/SONiC/blob/master/doc/pins/appl_state_db_response_path_hld.md