Skip to content
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

Initial version of Debian Bookworm Dockers #243

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

IGordynskyi
Copy link
Contributor

Build and run SAI Challenger in standalone mode:

$ ./build.sh -a trident2 -t saivs -o bookworm --nosnappi
...
===========================================
     SAI Challenger build options
===========================================

 Docker image type  : standalone
 Base OS            : bookworm
 ASIC name          : trident2
 ASIC target        : saivs
 Platform path      : ./npu/broadcom/trident2
 SAI interface      : redis

===========================================

$ ./run.sh -a trident2 -t saivs -o bookworm
3ecfb925a97c13355a11ae4f1ae5f70beb747e5985cd1b7bf3c6d068993afe5e

===========================================
     SAI Challenger start options
===========================================

 Docker image type  : standalone
 Base OS            : bookworm
 ASIC name          : trident2
 ASIC target        : saivs
 Platform path      : ./npu/broadcom/trident2
 SAI interface      : redis

===========================================

$ ./exec.sh -t saivs pytest --testbed=saivs_standalone -v -k "test_l2_basic"
...
=================================================================== 13 passed, 1360 deselected, 3 warnings in 22.69s ===================================================================

===========================================
     SAI Challenger run options
===========================================

 Docker image type  : standalone
 ASIC name          : trident2
 ASIC target        : saivs
 Platform path      : ./npu/broadcom/trident2
 SAI interface      : redis
 Container name     : sc-trident2-saivs-run
 Command            : pytest --testbed=saivs_standalone -v -k test_l2_basic

===========================================
$ docker ps -a
CONTAINER ID   IMAGE                        COMMAND                  CREATED              STATUS              PORTS     NAMES
3ecfb925a97c   sc-trident2-saivs:bookworm   "/usr/bin/supervisord"   About a minute ago   Up About a minute             sc-trident2-saivs-run
$ docker images
REPOSITORY          TAG        IMAGE ID       CREATED         SIZE
sc-trident2-saivs   bookworm   3476fe4c84ba   2 minutes ago   1.58GB
sc-base             bookworm   bdc4b00b41fe   6 minutes ago   1.34GB

Build and run SAI Challenger in client-server mode:

$ ./build.sh -i client -s thrift -o bookworm --nosnappi
...
===========================================
     SAI Challenger build options
===========================================

 Docker image type  : client
 Base OS            : bookworm
 ASIC name          : 
 ASIC target        : 
 Platform path      : 
 SAI interface      : thrift

===========================================

$ ./build.sh -i server -s thrift -a trident2 -t saivs -o bookworm --nosnappi
...
===========================================
     SAI Challenger build options
===========================================

 Docker image type  : server
 Base OS            : bookworm
 ASIC name          : trident2
 ASIC target        : saivs
 Platform path      : ./npu/broadcom/trident2
 SAI interface      : thrift

===========================================

$ ./run.sh -i client -s thrift -o bookworm
3c45acea4845e761008aa7ada48a03257e97105527c62c45cbdeaf4fd6fcca73

===========================================
     SAI Challenger start options
===========================================

 Docker image type  : client
 Base OS            : bookworm
 ASIC name          : 
 ASIC target        : 
 Platform path      : 
 SAI interface      : thrift

===========================================

$ ./run.sh -i server -s thrift -a trident2 -t saivs -o bookworm
c946f8c7e241c0301748d1889173b615ec110454cbb2d44949df78e7f8d29752

===========================================
     SAI Challenger start options
===========================================

 Docker image type  : server
 Base OS            : bookworm
 ASIC name          : trident2
 ASIC target        : saivs
 Platform path      : ./npu/broadcom/trident2
 SAI interface      : thrift

===========================================

$ ./exec.sh -i client -s thrift pytest --testbed=saivs_client_server -v -k "test_l2_basic"
=============================================================================== short test summary info ================================================================================
ERROR test_l2_basic.py::test_l2_access_to_access_vlan - AssertionError: Redis server has not started yet...                      
ERROR test_l2_basic.py::test_l2_trunk_to_trunk_vlan - AssertionError: Redis server has not started yet...                  
ERROR test_l2_basic.py::test_l2_access_to_trunk_vlan - AssertionError: Redis server has not started yet...    
ERROR test_l2_basic.py::test_l2_trunk_to_access_vlan - AssertionError: Redis server has not started yet...                                    
ERROR test_l2_basic.py::test_l2_flood - AssertionError: Redis server has not started yet...                                                                                             
ERROR test_l2_basic.py::test_l2_lag - AssertionError: Redis server has not started yet...
ERROR test_l2_basic.py::test_l2_lag_hash_seed - AssertionError: Redis server has not started yet...
ERROR test_l2_basic.py::test_l2_vlan_bcast_ucast - AssertionError: Redis server has not started yet...
ERROR test_l2_basic.py::test_l2_mtu - AssertionError: Redis server has not started yet...
ERROR test_l2_basic.py::test_fdb_bulk_create - AssertionError: Redis server has not started yet...
ERROR test_l2_basic.py::test_fdb_bulk_remove - AssertionError: Redis server has not started yet...
ERROR test_l2_basic.py::test_l2_mac_move_1 - AssertionError: Redis server has not started yet...
ERROR test_l2_basic_dd.py::test_l2_trunk_to_trunk_vlan_dd - AssertionError: Redis server has not started yet...
=================================================================== 1360 deselected, 2 warnings, 13 errors in 10.52s ===================================================================
ERROR: "docker exec ${TTY} ${CONTAINER} bash -c "${EXEC_CMD}"" command filed with exit code 1.

===========================================
     SAI Challenger run options
===========================================

 Docker image type  : client
 Container name     : sc-thrift-client-run
 Command            : pytest --testbed=saivs_client_server -v -k test_l2_basic

===========================================
...
root@c946f8c7e241:/# tail /var/log/syslog 
2024-11-28T15:09:04.483992+00:00 c946f8c7e241 supervisord: saiserver insert: SAI_VS_INTERFACE_LANE_MAP_FILE:/usr/share/sonic/hwsku/lanemap.ini
2024-11-28T15:09:04.483994+00:00 c946f8c7e241 supervisord: saiserver Failed to initialize SAI api: -15
2024-11-28T15:09:07.510412+00:00 c946f8c7e241 supervisord: saiserver port map file: /usr/share/sonic/hwsku/port_config.ini
2024-11-28T15:09:07.510418+00:00 c946f8c7e241 supervisord: saiserver profile map file: /usr/share/sonic/hwsku/sai.profile
2024-11-28T15:09:07.510419+00:00 c946f8c7e241 supervisord: saiserver insert: SAI_WARM_BOOT_READ_FILE:/var/cache/sai_warmboot.bin
2024-11-28T15:09:07.510420+00:00 c946f8c7e241 supervisord: saiserver insert: SAI_WARM_BOOT_WRITE_FILE:/var/cache/sai_warmboot.bin
2024-11-28T15:09:07.510422+00:00 c946f8c7e241 supervisord: saiserver insert: SAI_VS_SWITCH_TYPE:SAI_VS_SWITCH_TYPE_BCM56850
2024-11-28T15:09:07.510423+00:00 c946f8c7e241 supervisord: saiserver insert: SAI_VS_HOSTIF_USE_TAP_DEVICE:true
2024-11-28T15:09:07.510425+00:00 c946f8c7e241 supervisord: saiserver insert: SAI_VS_INTERFACE_LANE_MAP_FILE:/usr/share/sonic/hwsku/lanemap.ini
2024-11-28T15:09:07.510427+00:00 c946f8c7e241 supervisord: saiserver Failed to initialize SAI api: -15

$ docker images
REPOSITORY                        TAG        IMAGE ID       CREATED          SIZE
sc-thrift-server-trident2-saivs   bookworm   ab5ff0eb5c0f   33 minutes ago   2.12GB
sc-thrift-server-base             bookworm   149a8009d44b   34 minutes ago   2.12GB
sc-thrift-client                  bookworm   a1c0e06f2a24   43 minutes ago   1.15GB
sc-client                         bookworm   5d486c69e4ad   46 minutes ago   1.03GB

build.sh Outdated Show resolved Hide resolved
Signed-off-by: Yurii Hordynskyi <[email protected]>
@andriy-kokhan andriy-kokhan merged commit 2ffef6a into opencomputeproject:main Nov 28, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants