How to use Channelized ports for stratum on wedge100bf-32x

22 views
Skip to first unread message

Xiaochou Chen

unread,
Feb 5, 2022, 2:31:36 AMFeb 5
to stratum-dev
I would like to use Channelized ports like 1/2, 1/3 in stratum.

bf-sde.pm> show -a 1/-    
-----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
PORT |MAC |D_P|P/PT|SPEED  |FEC |AN|KR|RDY|ADM|OPR|LPBK    |FRAMES RX       |FRAMES TX       |E
-----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-
1/0  |23/0|132|2/ 4|-------|----|--|--|YES|---|---|--------|----------------|----------------|-
1/1  |23/1|133|2/ 5|-------|----|--|--|YES|---|---|--------|----------------|----------------|-
1/2  |23/2|134|2/ 6|10G    |NONE|Au|Au|YES|ENB|UP |  NONE  |               4|               0|
1/3  |23/3|135|2/ 7|10G    |NONE|Au|Au|YES|ENB|UP |  NONE  |               2|               0|


I don't know how to modify the chassis.pb.txt to meet my need.
If I change the default chassis.pb.txt, I always get an error after running the following command.
start-stratum.sh  -bf_switchd_background=false

I hope someone could tell me how to change the configu file  chassis.pb.txt, and I also want to know if I need to change the other two files in the directory : /etc/stratum/x86-64-accton-wedge100bf-32x-r0: phal_config.pb.txt port_map.json


Or can someone tell me where I can get information about it.
Thank you very much!

Maximilian Pudelko

unread,
Feb 7, 2022, 9:48:13 PMFeb 7
to Xiaochou Chen, stratum-dev
Hi Xiaochou,

If you're using a switch with BSP support, no changes to the phal_config are necessary. The readme covers that topic, too.

Best,
Max


--
You received this message because you are subscribed to the Google Groups "stratum-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stratum-dev...@opennetworking.org.
To view this discussion on the web visit https://groups.google.com/a/opennetworking.org/d/msgid/stratum-dev/a63a0e65-efed-40fa-9708-e0030b042cf8n%40opennetworking.org.

CHEN Xiao chou

unread,
Feb 8, 2022, 7:27:31 AMFeb 8
to Maximilian Pudelko, stratum-dev

Hi Max ,

 

Thank you very much, the following command seems to work (refer to Appendix A) and I can see the channelized port now.

root@localhost:~# start-stratum.sh -enable_onlp=false

 

 

But I have a new problem, I can't connect to the grpc port.

If I add the parameter “--external_stratum_urls=0.0.0.0:28000” to the command, stratum crashes. Refer to Appendix B .

 

 

Is my stratum version too low?

stratumproject/stratum-bf   bf-sde-9.2.0.tar-linux-4.14.151-OpenNetworkLinux

 

 

docker pull stratumproject/stratum-bf:9.3.1

 

Afterwards, the following error occurs when starting stratum (refer to Appendix C).

2022-02-08 20:08:28.200309 BF_PLTFM ERROR - Error getting ipv6 address for interface usb0

 

CHSS MGMT ERROR: Failed to configure cdc_eth ipv6

2022-02-08 20:08:50.056749 BF_PLTFM ERROR - Error Getting the Board info from BMC. Hence exiting ****

 

 

Do I need to build stratum on my platform  myself?

 

 

Best Rgds

Xiao Chou

 

------Appendix A:-------------

I20220208 11:58:35.347477  3407 attribute_database.cc:213] PhalDB service is listening to localhost:28003...

I20220208 11:58:35.347515  3407 bf_chassis_manager.cc:1308] Successfully registered port status notification callback.

I20220208 11:58:35.350997  3407 bf_chassis_manager.cc:110] Added port 100 in node 1 (SDK Port 132).

I20220208 11:58:35.353957  3407 bf_chassis_manager.cc:146] Enabled port 100 in node 1 (SDK Port 132).

I20220208 11:58:35.358748  3407 bf_chassis_manager.cc:110] Added port 101 in node 1 (SDK Port 133).

I20220208 11:58:35.363005  3407 bf_chassis_manager.cc:146] Enabled port 101 in node 1 (SDK Port 133).

I20220208 11:58:35.367868  3407 bf_chassis_manager.cc:110] Added port 102 in node 1 (SDK Port 134).

I20220208 11:58:35.370967  3407 bf_chassis_manager.cc:146] Enabled port 102 in node 1 (SDK Port 134).

I20220208 11:58:35.376066  3407 bf_chassis_manager.cc:110] Added port 103 in node 1 (SDK Port 135).

I20220208 11:58:35.380005  3407 bf_chassis_manager.cc:146] Enabled port 103 in node 1 (SDK Port 135).

I20220208 11:58:35.388013  3407 bf_chassis_manager.cc:110] Added port 2 in node 1 (SDK Port 140).

I20220208 11:58:35.388069  3407 bf_chassis_manager.cc:146] Enabled port 2 in node 1 (SDK Port 140).

I20220208 11:58:35.394533  3407 bf_chassis_manager.cc:110] Added port 3 in node 1 (SDK Port 148).

I20220208 11:58:35.394589  3407 bf_chassis_manager.cc:146] Enabled port 3 in node 1 (SDK Port 148).

I20220208 11:58:35.401041  3407 bf_chassis_manager.cc:110] Added port 4 in node 1 (SDK Port 156).

I20220208 11:58:35.401073  3407 bf_chassis_manager.cc:146] Enabled port 4 in node 1 (SDK Port 156).

I20220208 11:58:35.407073  3407 bf_chassis_manager.cc:110] Added port 5 in node 1 (SDK Port 164).

I20220208 11:58:35.407104  3407 bf_chassis_manager.cc:146] Enabled port 5 in node 1 (SDK Port 164).

I20220208 11:58:35.413599  3407 bf_chassis_manager.cc:110] Added port 6 in node 1 (SDK Port 172).

I20220208 11:58:35.413635  3407 bf_chassis_manager.cc:146] Enabled port 6 in node 1 (SDK Port 172).

I20220208 11:58:35.419705  3407 bf_chassis_manager.cc:110] Added port 7 in node 1 (SDK Port 180).

I20220208 11:58:35.419737  3407 bf_chassis_manager.cc:146] Enabled port 7 in node 1 (SDK Port 180).

I20220208 11:58:35.425617  3407 bf_chassis_manager.cc:110] Added port 8 in node 1 (SDK Port 188).

I20220208 11:58:35.425647  3407 bf_chassis_manager.cc:146] Enabled port 8 in node 1 (SDK Port 188).

I20220208 11:58:35.431856  3407 bf_chassis_manager.cc:110] Added port 9 in node 1 (SDK Port 56).

I20220208 11:58:35.431887  3407 bf_chassis_manager.cc:146] Enabled port 9 in node 1 (SDK Port 56).

I20220208 11:58:35.439669  3407 bf_chassis_manager.cc:110] Added port 10 in node 1 (SDK Port 48).

I20220208 11:58:35.439702  3407 bf_chassis_manager.cc:146] Enabled port 10 in node 1 (SDK Port 48).

I20220208 11:58:35.445933  3407 bf_chassis_manager.cc:110] Added port 11 in node 1 (SDK Port 40).

I20220208 11:58:35.445961  3407 bf_chassis_manager.cc:146] Enabled port 11 in node 1 (SDK Port 40).

I20220208 11:58:35.452210  3407 bf_chassis_manager.cc:110] Added port 12 in node 1 (SDK Port 32).

I20220208 11:58:35.452242  3407 bf_chassis_manager.cc:146] Enabled port 12 in node 1 (SDK Port 32).

I20220208 11:58:35.458536  3407 bf_chassis_manager.cc:110] Added port 13 in node 1 (SDK Port 24).

I20220208 11:58:35.458567  3407 bf_chassis_manager.cc:146] Enabled port 13 in node 1 (SDK Port 24).

I20220208 11:58:35.464816  3407 bf_chassis_manager.cc:110] Added port 14 in node 1 (SDK Port 16).

I20220208 11:58:35.464846  3407 bf_chassis_manager.cc:146] Enabled port 14 in node 1 (SDK Port 16).

I20220208 11:58:35.471144  3407 bf_chassis_manager.cc:110] Added port 15 in node 1 (SDK Port 8).

I20220208 11:58:35.471175  3407 bf_chassis_manager.cc:146] Enabled port 15 in node 1 (SDK Port 8).

I20220208 11:58:35.477342  3407 bf_chassis_manager.cc:110] Added port 16 in node 1 (SDK Port 0).

I20220208 11:58:35.477375  3407 bf_chassis_manager.cc:146] Enabled port 16 in node 1 (SDK Port 0).

I20220208 11:58:35.483985  3407 bf_chassis_manager.cc:110] Added port 17 in node 1 (SDK Port 4).

I20220208 11:58:35.484079  3407 bf_chassis_manager.cc:146] Enabled port 17 in node 1 (SDK Port 4).

I20220208 11:58:35.491093  3407 bf_chassis_manager.cc:110] Added port 18 in node 1 (SDK Port 12).

I20220208 11:58:35.491171  3407 bf_chassis_manager.cc:146] Enabled port 18 in node 1 (SDK Port 12).

I20220208 11:58:35.497869  3407 bf_chassis_manager.cc:110] Added port 19 in node 1 (SDK Port 20).

I20220208 11:58:35.497910  3407 bf_chassis_manager.cc:146] Enabled port 19 in node 1 (SDK Port 20).

I20220208 11:58:35.504184  3407 bf_chassis_manager.cc:110] Added port 20 in node 1 (SDK Port 28).

I20220208 11:58:35.504225  3407 bf_chassis_manager.cc:146] Enabled port 20 in node 1 (SDK Port 28).

I20220208 11:58:35.510478  3407 bf_chassis_manager.cc:110] Added port 21 in node 1 (SDK Port 36).

I20220208 11:58:35.510519  3407 bf_chassis_manager.cc:146] Enabled port 21 in node 1 (SDK Port 36).

I20220208 11:58:35.516767  3407 bf_chassis_manager.cc:110] Added port 22 in node 1 (SDK Port 44).

I20220208 11:58:35.516809  3407 bf_chassis_manager.cc:146] Enabled port 22 in node 1 (SDK Port 44).

I20220208 11:58:35.523437  3407 bf_chassis_manager.cc:110] Added port 23 in node 1 (SDK Port 52).

I20220208 11:58:35.523516  3407 bf_chassis_manager.cc:146] Enabled port 23 in node 1 (SDK Port 52).

I20220208 11:58:35.533104  3407 bf_chassis_manager.cc:110] Added port 24 in node 1 (SDK Port 60).

I20220208 11:58:35.533161  3407 bf_chassis_manager.cc:146] Enabled port 24 in node 1 (SDK Port 60).

I20220208 11:58:35.539502  3407 bf_chassis_manager.cc:110] Added port 25 in node 1 (SDK Port 184).

I20220208 11:58:35.539548  3407 bf_chassis_manager.cc:146] Enabled port 25 in node 1 (SDK Port 184).

I20220208 11:58:35.545722  3407 bf_chassis_manager.cc:110] Added port 26 in node 1 (SDK Port 176).

I20220208 11:58:35.545765  3407 bf_chassis_manager.cc:146] Enabled port 26 in node 1 (SDK Port 176).

I20220208 11:58:35.551926  3407 bf_chassis_manager.cc:110] Added port 27 in node 1 (SDK Port 168).

I20220208 11:58:35.551964  3407 bf_chassis_manager.cc:146] Enabled port 27 in node 1 (SDK Port 168).

I20220208 11:58:35.557896  3407 bf_chassis_manager.cc:110] Added port 28 in node 1 (SDK Port 160).

I20220208 11:58:35.557936  3407 bf_chassis_manager.cc:146] Enabled port 28 in node 1 (SDK Port 160).

I20220208 11:58:35.563937  3407 bf_chassis_manager.cc:110] Added port 29 in node 1 (SDK Port 144).

I20220208 11:58:35.563974  3407 bf_chassis_manager.cc:146] Enabled port 29 in node 1 (SDK Port 144).

I20220208 11:58:35.569919  3407 bf_chassis_manager.cc:110] Added port 30 in node 1 (SDK Port 152).

I20220208 11:58:35.569954  3407 bf_chassis_manager.cc:146] Enabled port 30 in node 1 (SDK Port 152).

I20220208 11:58:35.575971  3407 bf_chassis_manager.cc:110] Added port 31 in node 1 (SDK Port 128).

I20220208 11:58:35.576009  3407 bf_chassis_manager.cc:146] Enabled port 31 in node 1 (SDK Port 128).

I20220208 11:58:35.582015  3407 bf_chassis_manager.cc:110] Added port 32 in node 1 (SDK Port 136).

I20220208 11:58:35.582052  3407 bf_chassis_manager.cc:146] Enabled port 32 in node 1 (SDK Port 136).

I20220208 11:58:35.582108  3407 bf_switch.cc:65] Chassis config pushed successfully.

I20220208 11:58:35.594755  3407 p4_service.cc:121] Pushing the saved forwarding pipeline configs read from /etc/stratum/pipeline_cfg.pb.txt...

W20220208 11:58:35.594887  3407 p4_service.cc:142] Empty forwarding pipeline configs file: /etc/stratum/pipeline_cfg.pb.txt.

E20220208 11:58:35.595249  3407 hal.cc:231] Stratum external facing services are listening to 0.0.0.0:9339, 0.0.0.0:9559, localhost:9559...

E20220208 11:58:35.640619  3407 hal.cc:386] StratumErrorSpace::ERR_INTERNAL: Failed to check in with procmon: failed to connect to all addresses

E20220208 11:58:35.640985  3407 hal.cc:241] Error when checking in with procmon: Failed to check in with procmon: failed to connect to all addresses.

I20220208 11:58:37.166895  3449 bf_chassis_manager.cc:1192] State of port 102 in node 1 (SDK port 134): UP.

I20220208 11:58:37.176811  3449 bf_chassis_manager.cc:1192] State of port 103 in node 1 (SDK port 135): UP.

 

bf-sde> pm

bf-sde.pm> show

-----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-

PORT |MAC |D_P|P/PT|SPEED  |FEC |AN|KR|RDY|ADM|OPR|LPBK    |FRAMES RX       |FRAMES TX       |E

-----+----+---+----+-------+----+--+--+---+---+---+--------+----------------+----------------+-

1/0  |23/0|132|2/ 4|10G    |NONE|Au|Au|YES|ENB|DWN|  NONE  |               0|               0|

1/1  |23/1|133|2/ 5|10G    |NONE|Au|Au|YES|ENB|DWN|  NONE  |               0|               0|

1/2  |23/2|134|2/ 6|10G    |NONE|Au|Au|YES|ENB|UP |  NONE  |              20|               0|

1/3  |23/3|135|2/ 7|10G    |NONE|Au|Au|YES|ENB|UP |  NONE  |              20|               0|

2/0  |22/0|140|2/12|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

3/0  |21/0|148|2/20|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

4/0  |20/0|156|2/28|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

5/0  |19/0|164|2/36|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

6/0  |18/0|172|2/44|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

7/0  |17/0|180|2/52|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

8/0  |16/0|188|2/60|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

9/0  |15/0| 56|0/56|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

10/0 |14/0| 48|0/48|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

11/0 |13/0| 40|0/40|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

12/0 |12/0| 32|0/32|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

13/0 |11/0| 24|0/24|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

14/0 |10/0| 16|0/16|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

15/0 | 9/0|  8|0/ 8|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

16/0 | 8/0|  0|0/ 0|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

17/0 | 7/0|  4|0/ 4|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

18/0 | 6/0| 12|0/12|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

19/0 | 5/0| 20|0/20|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

20/0 | 4/0| 28|0/28|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

21/0 | 3/0| 36|0/36|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

22/0 | 2/0| 44|0/44|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

23/0 | 1/0| 52|0/52|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

24/0 | 0/0| 60|0/60|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

25/0 |31/0|184|2/56|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

26/0 |30/0|176|2/48|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

27/0 |29/0|168|2/40|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

28/0 |28/0|160|2/32|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

29/0 |26/0|144|2/16|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

30/0 |27/0|152|2/24|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

31/0 |24/0|128|2/ 0|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

32/0 |25/0|136|2/ 8|100G   |NONE|Au|Au|NO |ENB|DWN|  NONE  |               0|               0|

 

 

------Appendix B:-------------

I20220208 13:02:12.751183  7986 p4_service.cc:778] Controller (connection_id: 1, election_id: 1, uri: ipv4:a.b.c.d:44064) is connected as MASTER for node (aka device) with ID 1.

I20220208 13:02:12.752647  7986 p4_service.cc:805] Controller (connection_id: 1, election_id: 1, uri: ipv4:a.b.c.d:44064) which was MASTER for node (aka device) with ID 1 is disconnected. The node is now orphan :(

I20220208 13:02:50.278349  7994 p4_service.cc:778] Controller (connection_id: 1, election_id: 180, uri: ipv4::33716) is connected as MASTER for node (aka device) with ID 1.

E20220208 13:02:50.365939  7996 bf_pipeline_utils.cc:43] StratumErrorSpace::ERR_INVALID_PARAM: Unknown format for p4_device_config.

bf_switchd: starting warm init for dev_id 0 mode 1 serdes_upgrade 0

bf_switchd: agent[0] library unloaded for dev_id 0

bf_switchd: library /usr/lib/libpltfm_mgr.so loaded

bf_switchd: agent[0] initialized

Tcl server started..

Tcl server: listen socket created

Tcl server: bind done on port 8008, listening...

Tcl server: waiting for incoming connections...

Health monitor started

Skip diag lib deinit

2022-02-08 13:02:51.389354 BF_PIPE ERROR - /tmp/bf_sde.TkmzVh/pkgsrc/bf-drivers/src/ctx_json/ctx_json_utils.c:525: Invalid ContextJSON format: could not find cJSON property "direct_resources".

2022-02-08 13:02:51.389441 BF_PIPE ERROR - /tmp/bf_sde.TkmzVh/pkgsrc/bf-drivers/src/pipe_mgr/pipe_mgr_ctx_json_rmt_cfg.c:4097: An error has occurred while parsing the Context JSON. Function ctx_json_parse_rmt_cfg_default_spec cannot continue.

2022-02-08 13:02:51.389467 BF_PIPE ERROR - /tmp/bf_sde.TkmzVh/pkgsrc/bf-drivers/src/pipe_mgr/pipe_mgr_ctx_json_rmt_cfg.c:4965: An error has occurred. Function ctx_json_parse_rmt_cfg_match_table_json cannot continue.

2022-02-08 13:02:51.389487 BF_PIPE ERROR - Dev 0 Failed to parse profile 0 table tbl_act

2022-02-08 13:02:51.389511 BF_PIPE ERROR - /tmp/bf_sde.TkmzVh/pkgsrc/bf-drivers/src/pipe_mgr/pipe_mgr_ctx_json_rmt_cfg.c:5999: An error has occurred. Function ctx_json_parse_rmt_cfg_tables_json cannot continue.

2022-02-08 13:02:51.389536 BF_PIPE ERROR - ctx_json_parse:6659: Failed to RMT table information from ContextJSON.

2022-02-08 13:02:51.398013 BF_PIPE ERROR - pipe_mgr_rmt_import : Error in parsing the context jSON file

2022-02-08 13:02:51.398078 BF_PIPE ERROR - pipe_mgr_add_rmt_device: failed to import rmt config

*** Aborted at 1644325371 (unix time) try "date -d @1644325371" if you are using GNU date ***

PC: @                0x0 (unknown)

*** SIGSEGV (@0x0) received by PID 7938 (TID 0x7fccbefdd700) from PID 0; stack trace: ***

    @     0x7fccdfa7a0e0 (unknown)

    @     0x7fcce177671b bf_map_destroy

    @     0x7fcce11db61a pipe_mgr_add_rmt_device

    @     0x7fcce11a0c25 (unknown)

    @     0x7fcce10d9dd0 bf_drv_notify_clients_dev_add

    @     0x7fcce10d6e05 bf_device_add

    @     0x55e59527b769 (unknown)

    @     0x55e59527c197 (unknown)

    @     0x7fcce1764b85 _pi_update_device_start

    @     0x55e5952fbe18 (unknown)

    @     0x55e5952c475f (unknown)

    @     0x55e5952c4fc4 (unknown)

    @     0x55e5952b033a (unknown)

    @     0x55e5952875c4 (unknown)

    @     0x55e5955340f3 (unknown)

    @     0x55e595592407 (unknown)

    @     0x55e595594bc5 (unknown)

    @     0x55e595597abd (unknown)

    @     0x55e5957b7611 (unknown)

    @     0x55e5957b9c9f (unknown)

    @     0x55e5957c5a85 (unknown)

    @     0x55e5957c5c14 (unknown)

    @     0x55e59595d975 (unknown)

    @     0x7fccdfa704a4 start_thread

    @     0x7fccdf397d0f clone

    @                0x0 (unknown)

Segmentation fault

 

 

 

------Appendix C :-------------

root@localhost:~# ./start_stratum.9.3.1.sh

+ [[ -z '' ]]

+ [[ -f /etc/onl/platform ]]

++ cat /etc/onl/platform

+ PLATFORM=x86-64-accton-wedge100bf-32x-r0

+ '[' -d /etc/onl ']'

++ awk '{print "-v " $1 ":" $1 " " }'

++ ls /lib/x86_64-linux-gnu/libonlp-platform-defaults.so /lib/x86_64-linux-gnu/libonlp-platform-defaults.so.1 /lib/x86_64-linux-gnu/libonlp-platform.so /lib/x86_64-linux-gnu/libonlp-platform.so.1 /lib/x86_64-linux-gnu/libonlp.so /lib/x86_64-linux-gnu/libonlp.so.1 /lib/x86_64-linux-gnu/libonlp-x86-64-accton-wedge100bf-32x.so.1

+ ONLP_MOUNT='-v /lib/x86_64-linux-gnu/libonlp-platform-defaults.so:/lib/x86_64-linux-gnu/libonlp-platform-defaults.so

-v /lib/x86_64-linux-gnu/libonlp-platform-defaults.so.1:/lib/x86_64-linux-gnu/libonlp-platform-defaults.so.1

-v /lib/x86_64-linux-gnu/libonlp-platform.so:/lib/x86_64-linux-gnu/libonlp-platform.so

-v /lib/x86_64-linux-gnu/libonlp-platform.so.1:/lib/x86_64-linux-gnu/libonlp-platform.so.1

-v /lib/x86_64-linux-gnu/libonlp.so:/lib/x86_64-linux-gnu/libonlp.so

-v /lib/x86_64-linux-gnu/libonlp.so.1:/lib/x86_64-linux-gnu/libonlp.so.1

-v /lib/x86_64-linux-gnu/libonlp-x86-64-accton-wedge100bf-32x.so.1:/lib/x86_64-linux-gnu/libonlp-x86-64-accton-wedge100bf-32x.so.1 '

+ ONLP_MOUNT='-v /lib/x86_64-linux-gnu/libonlp-platform-defaults.so:/lib/x86_64-linux-gnu/libonlp-platform-defaults.so

-v /lib/x86_64-linux-gnu/libonlp-platform-defaults.so.1:/lib/x86_64-linux-gnu/libonlp-platform-defaults.so.1

-v /lib/x86_64-linux-gnu/libonlp-platform.so:/lib/x86_64-linux-gnu/libonlp-platform.so

-v /lib/x86_64-linux-gnu/libonlp-platform.so.1:/lib/x86_64-linux-gnu/libonlp-platform.so.1

-v /lib/x86_64-linux-gnu/libonlp.so:/lib/x86_64-linux-gnu/libonlp.so

-v /lib/x86_64-linux-gnu/libonlp.so.1:/lib/x86_64-linux-gnu/libonlp.so.1

-v /lib/x86_64-linux-gnu/libonlp-x86-64-accton-wedge100bf-32x.so.1:/lib/x86_64-linux-gnu/libonlp-x86-64-accton-wedge100bf-32x.so.1                -v /lib/platform-config:/lib/platform-config               -v /etc/onl:/etc/onl'

+ '[' -n '' ']'

+ '[' -n '' ']'

+ LOG_DIR=/var/log

+ SDE_VERSION=9.2.0

++ uname -r

+ KERNEL_VERSION=4.14.151-OpenNetworkLinux

+ DOCKER_IMAGE=stratumproject/stratum-bf

+ DOCKER_IMAGE_TAG=9.3.1

++ uname -r

++ uname -r

+ docker run -it --rm --privileged -v /dev:/dev -v /sys:/sys -v /lib/modules/4.14.151-OpenNetworkLinux:/lib/modules/4.14.151-OpenNetworkLinux --env PLATFORM=x86-64-accton-wedge100bf-32x-r0 -v /lib/x86_64-linux-gnu/libonlp-platform-defaults.so:/lib/x86_64-linux-gnu/libonlp-platform-defaults.so -v /lib/x86_64-linux-gnu/libonlp-platform-defaults.so.1:/lib/x86_64-linux-gnu/libonlp-platform-defaults.so.1 -v /lib/x86_64-linux-gnu/libonlp-platform.so:/lib/x86_64-linux-gnu/libonlp-platform.so -v /lib/x86_64-linux-gnu/libonlp-platform.so.1:/lib/x86_64-linux-gnu/libonlp-platform.so.1 -v /lib/x86_64-linux-gnu/libonlp.so:/lib/x86_64-linux-gnu/libonlp.so -v /lib/x86_64-linux-gnu/libonlp.so.1:/lib/x86_64-linux-gnu/libonlp.so.1 -v /lib/x86_64-linux-gnu/libonlp-x86-64-accton-wedge100bf-32x.so.1:/lib/x86_64-linux-gnu/libonlp-x86-64-accton-wedge100bf-32x.so.1 -v /lib/platform-config:/lib/platform-config -v /etc/onl:/etc/onl -p 28000:28000 -p 9339:9339 -p 9559:9559 -v /var/log:/var/log/stratum stratumproject/stratum-bf:9.3.1

Mounting hugepages...

Skipping kernel module installation.

I20220208 19:58:58.802929     1 logging.cc:63] Stratum version deddede3f8c5c643c21f8ece5f3c453e3ec659fd built at 2021-12-13T22:16:42+00:00 on host 07446f4305cd by user brian.

I20220208 19:58:58.806056     1 bf_sde_wrapper.cc:1737] bf_sysfs_fname: /sys/class/bf/bf0/device/dev_add

Install dir: /usr (0x5564903bc028)

bf_switchd: system services initialized

bf_switchd: loading conf_file /usr/share/stratum/tofino_skip_p4.conf...

bf_switchd: processing device configuration...

Configuration for dev_id 0

  Family        : Tofino

  pci_sysfs_str : /sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0

  pci_domain    : 0

  pci_bus       : 5

  pci_fn        : 0

  pci_dev       : 0

  pci_int_mode  : 1

  sbus_master_fw: /usr/

  pcie_fw       : /usr/

  serdes_fw     : /usr/

  sds_fw_path   : /usr/

  microp_fw_path:

bf_switchd: processing P4 configuration...

P4 profile for dev_id 0

  p4_name: dummy

    libpd:

    libpdthrift:

    context:

    config:

  Agent[0]: /usr/lib/libpltfm_mgr.so

  diag:

  accton diag:

  non_default_port_ppgs: 0

  SAI default initialize: 1

bf_switchd: library /usr/lib/libpltfm_mgr.so loaded

bf_switchd: agent[0] initialized

Tcl server started..

Tcl server: listen socket created

Tcl server: bind done on port 8008, listening...

Tcl server: waiting for incoming connections...

2022-02-08 19:58:58.863841 BF_PLTFM ERROR - Error getting ipv6 address for interface usb0

 

CHSS MGMT ERROR: Failed to configure cdc_eth ipv6

2022-02-08 19:59:20.784062 BF_PLTFM ERROR - Error Getting the Board info from BMC. Hence exiting ****

 

发件人: Maximilian Pudelko <m...@opennetworking.org>
发送时间: 202228 10:48
收件人: CHEN Xiao chou <xcc...@xmu.edu.my>
抄送: stratum-dev <strat...@opennetworking.org>
主题: Re: [stratum-dev] How to use Channelized ports for stratum on wedge100bf-32x

DISCLAIMER: This email and any attachments to it may contain privileged and confidential information and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of this email is strictly prohibited and may be unlawful. If you have received this email and any accompanying attachments in error, please delete them and all copies from your system and notify the sender. Any opinion in this email may not necessarily represent the opinion of XMU Jiageng Education Development Sdn Bhd and/or its subsidiaries, related companies or entities (“XMU”) . XMU neither warrants the integrity of the information transmitted nor accepts liability (including , but not limited to , all liabilities for computer viruses) arising out of, or in respect of this email or its attachments.

CHEN Xiao chou

unread,
Feb 8, 2022, 7:31:19 AMFeb 8
to Maximilian Pudelko, stratum-dev

Additional note: At the beginning, ONOS was able to connect to the stratum switch via grpc when I used the default chassis_config.pb.txt and when I did not use enable_onlp=false.

 

发件人: strat...@opennetworking.org <strat...@opennetworking.org> 代表 CHEN Xiao chou
发送时间: 202228 20:27
收件人: Maximilian Pudelko <m...@opennetworking.org>
抄送: stratum-dev <strat...@opennetworking.org>
主题: 答复: [stratum-dev] How to use Channelized ports for stratum on wedge100bf-32x

Maximilian Pudelko

unread,
Feb 12, 2022, 3:11:51 PMFeb 12
to CHEN Xiao chou, stratum-dev
Hi Chen,

stratum-bf is deprecated and SDE 9.3.1 is not supported anymore. I'd suggest you try stratum-bfrt and a newer SDE.

The crash happens inside PI, out of our control. PI does not fully support TNA and is not recommended for use.


Max


Reply all
Reply to author
Forward
0 new messages