Comments (7)
MLNX related. Liat please help to assign to the right dev. thanks.
from sonic-swss.
The root cause of the issue is in both orchagent implementation and Mellanox SAI:
- Mellanox SAI:
It is not possible to set next hop for routes with actions drop. And not possible to set action forward for routes without next hops:
Dec 5 10:42:04 arc-switch1028 docker[9153]: Dec 05 10:42:04 NOTICE SAI_UTILS: mlnx_sai_utils.c[465]- set_dispatch_attrib_handler: Set Route next hop ID, key:route 0.0.0.0 0.0.0.0, val:Nex
t hop,2,000000
Dec 5 10:42:04 arc-switch1028 docker[9153]: Dec 05 10:42:04 NOTICE SAI_UTILS: mlnx_sai_utils.c[465]- set_dispatch_attrib_handler: Set Route packet action, key:route 0.0.0.0 0.0.0.0, val:1
Dec 5 10:42:04 arc-switch1028 docker[9153]: Dec 05 10:42:04 ERROR SX_API_ROUTER: sx_api_router.c[1368]- sx_api_router_uc_route_set: Next hop uc route must have a valid next_hop_cnt or a
valid ecmp_id
Dec 5 10:42:04 arc-switch1028 docker[9153]: Dec 05 10:42:04 ERROR SAI_ROUTE: mlnx_sai_route.c[577]- mlnx_modify_route: Failed to set route - Parameter Error.
Dec 5 10:42:04 arc-switch1028 docker[9153]: Dec 05 10:42:04 ERROR SAI_UTILS: mlnx_sai_utils.c[586]- sai_set_attribute: Failed set attrib dispatch
Dec 5 10:42:04 arc-switch1028 syncd: :- processEvent: failed to execute api: set, key: SAI_OBJECT_TYPE_ROUTE_ENTRY:{"dest":"0.0.0.0/0","vr":"oid:0x3000000000022"}, status: SAI_STATUS_INVAL
ID_PARAMETER
Dec 5 10:42:04 arc-switch1028 syncd: :- processEvent: field: SAI_ROUTE_ATTR_PACKET_ACTION, value: SAI_PACKET_ACTION_FORWARD
Dec 5 10:42:04 arc-switch1028 syncd: :- exit_and_notify: sending switch_shutdown_request notification to OA
- Orchagent:
Missing functionality that changes route packet action from drop to forward for default route.
from sonic-swss.
@oleksandrivantsiv the functionality of switching the packet action from drop to forward is in pull request #138. Once the SAI supports this, we will need to re-open #138 and merge it.
from sonic-swss.
from sonic-swss.
In order to verify the solution works, it is okay to just cherry-pick the #138 change on top of the current master to build a new orchagent daemon.
from sonic-swss.
opencomputeproject/SAI#324
I have updated SAI v0.9.4 with comments to describe the scenario we meet here.
from sonic-swss.
#145 resolves this.
from sonic-swss.
Related Issues (20)
- L2 ACL Missing from SWSS
- Orchagent crashed with SEGV when Flexcounter enabled for queue watermark, pg-drop HOT 1
- DASH: test_outbound_vnet_direct[no-underlay-route] test fails on an attempt to apply the configuration
- Is there any problem with the conditions for deleting sidtable?
- Failed to start Docker Virtual Switch container
- [macsec] Additional support to configure the pfc_encrypt mode
- CounterCheckOrch should be in sync with FlexCounterOrch
- Dynamic port breakout before warm reboot would cause swss to crash.
- [Flex counter] A buffer pool object can be removed before its counter is removed even if orchagent removes the counter first HOT 1
- [RouteOrch] dotask method is accessing multiple vectors without boundaries check HOT 4
- [orchagent] orchagent crashes as implemenation missing for SAI_API_TUNNEL in handleSaiCreateStatus function HOT 1
- [orchagent] RouteOrch cannot consume new routes if there are enough routes being tried in the m_toSync HOT 1
- [bfdorch] bfdorch needs to query SAI_BFD_SESSION_ATTR_PORT before programming it when port is not default HOT 7
- DASH: configuration reordering leads to incorrect ACL configuration
- Add VS Test to catch newlines in REDIS values
- Matching SCI in ACL Using SAI_ACL_ENTRY_ATTR_FIELD_MACSEC_SCI Not Supported on Some Platforms
- FABRIC_MONITOR_TABLE_KEY_SET in APPL_DB when fabric link monitoring feature get disabled
- [teamsyncd] The TeamSync::addLag method does not update field "oper_status" of LAG_TABLE in state_db
- Not able to update QOS, ENI object after initial config
- orchagent applies QOS config out of order on breakout ports while executing "config interface breakout with -l option"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonic-swss.