-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sailibthrift is reading data from port_map.ini instead of config_db.json #14706
Closed
rraghav-cisco opened this issue
Apr 18, 2023
· 5 comments
· Fixed by opencomputeproject/SAI#1814 or #15831
Closed
sailibthrift is reading data from port_map.ini instead of config_db.json #14706
rraghav-cisco opened this issue
Apr 18, 2023
· 5 comments
· Fixed by opencomputeproject/SAI#1814 or #15831
Comments
Hi @abdosi , raised this issue for saithrift lib causing qos test case failure when using minigraph as port_config.ini is used to validate the link. |
@rraghav-cisco , @abdosi , can you provide more context? |
@neethajohn to sync with @Gfrom2016 to understand this issue |
abdosi
added a commit
to abdosi/SAI
that referenced
this issue
Jun 22, 2023
sonic-net/sonic-buildimage#14706 Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@Gfrom2016 have fixed this. Please check. |
abdosi
added a commit
to opencomputeproject/SAI
that referenced
this issue
Jul 3, 2023
…e from 400G to 100G Fixes: sonic-net/sonic-buildimage#14706
abdosi
added a commit
to abdosi/SAI
that referenced
this issue
Jul 12, 2023
sonic-net/sonic-buildimage#14706 Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
abdosi
added a commit
to abdosi/sonic-sairedis
that referenced
this issue
Jul 13, 2023
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
abdosi
added a commit
to abdosi/sonic-buildimage
that referenced
this issue
Jul 13, 2023
56aee6c0dfc4705584764edd35b7b2977bb762eb (HEAD -> 202205, origin/202205) [202205] Advance SAI submodule to fix issue sonic-net#14706 (sonic-net#1265) Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
yxieca
pushed a commit
that referenced
this issue
Jul 20, 2023
abdosi
added a commit
to abdosi/SAI
that referenced
this issue
Feb 15, 2024
sonic-net/sonic-buildimage#14706 Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
abdosi
added a commit
to opencomputeproject/SAI
that referenced
this issue
Feb 15, 2024
abdosi
added a commit
to abdosi/SAI
that referenced
this issue
Feb 16, 2024
sonic-net/sonic-buildimage#14706 Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
abdosi
added a commit
to opencomputeproject/SAI
that referenced
this issue
Feb 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We encountered an issue where the sai-thrift library in syncd-rpc container in the SONiC image is reading the port information(lanes, speed) etc from the port_config.ini instead of the /etc/sonic/config_db.json. My understanding is that config_db.json is the place to read this information once it has been created and saved.
When the issue happens, the sai thrift call returns an empty value for port OID. I have attached the packet trace during this call.
Steps done:
We configured the port speeds and lanes for 8 ports (Ethernet96 to Ethernet152) from 400G to 100G. This was done in config_db.json, and then config-reload or reboot. The port_config.ini was not changed. This caused the following issue:
The below is the syslog that appears that time:
Apr 13 03:10:44.818545 chu-dut INFO syncd#/supervisord: message repeated 2 times: [ dshell_client [03:10:44] {/usr/bin/dshell_client.py:1676} INFO - sai_thrift_get_port_id_by_front_port]
Apr 13 03:10:44.818545 chu-dut INFO syncd#/supervisord: dshell_client [03:10:44] {/usr/bin/dshell_client.py:1676} INFO - Didn't find port
Apr 13 03:10:44.819073 chu-dut INFO syncd#/supervisord: dshell_client [03:10:44] {/usr/bin/dshell_client.py:1676} INFO - sai_thrift_get_port_id_by_front_port
This causes qos/test_qos.py::TestQosSai::testQosSaiSharedReservationSize to fail. The sai-port-id from the DUT is 0 for Ethernet96(one of the new 100G ports). You can see that Ethernet0 is returning a valid port ID, but Ethernet96 is returning 0. This is causing the script to fail.
root@chu-dut:/home/cisco# show int stat | grep "96 "
Ethernet96 1536,1537,1538,1539 100G 9100 rs etp12 PortChannel102 up up QSFP28 or later off
Ethernet196 260,261,262,263 100G 9100 N/A etp24b routed up down QSFP-DD Double Density 8X Pluggable Transceiver off
(Pdb) client.sai_thrift_get_port_id_by_front_port("Ethernet96")
0
(Pdb) client.sai_thrift_get_port_id_by_front_port("Ethernet0")
72057594037927956
(Pdb)
This issue is happening in all the new 100G ports:
(Pdb) for i in range(96,153,8): client.sai_thrift_get_port_id_by_front_port("Ethernet"+str(i))
0
0
0
0
0
0
0
0
(Pdb) client.sai_thrift_get_port_id_by_front_port("Ethernet160") <<< Normal port.
72057594037927980
(Pdb)
The text was updated successfully, but these errors were encountered: