Skip to content

Fix saisrver startup process and dependencies#5

Merged
richardyu-ms merged 6 commits intorichardyu-ms:bfn_saiserverv2_supportfrom
msosyak:myron/saiserverv2_startup
Mar 16, 2022
Merged

Fix saisrver startup process and dependencies#5
richardyu-ms merged 6 commits intorichardyu-ms:bfn_saiserverv2_supportfrom
msosyak:myron/saiserverv2_startup

Conversation

@msosyak
Copy link

@msosyak msosyak commented Mar 7, 2022

Signed-off-by: Myron Sosyak [email protected]

Why I did it

To fix startup issue for saiververv2

How I did it

  • Added missed dependencies
  • Added startup script which make some pre config on startup

How to verify it

  1. build saiserver
NOJESSIE=1 NOSTRETCH=1 make configure PLATFORM=barefoot
NOJESSIE=1 NOSTRETCH=1 SAITHRIFT_V2=y make target/docker-saiserverv2-bfn.gz
  1. Copy and load saiserver on DUT.
  2. Run
SONIC_CFGGEN="sonic-cfggen"
SONIC_DB_CLI="sonic-db-cli"
PLATFORM=${PLATFORM:-`$SONIC_CFGGEN -H -v DEVICE_METADATA.localhost.platform`}
HWSKU=${HWSKU:-`$SONIC_CFGGEN -d -v 'DEVICE_METADATA["localhost"]["hwsku"]'`}
DOCKERNAME=saiserver
DOCKERIMG=docker-saiserverv2-bfn
docker create --privileged --net=host -v /host/machine.conf:/etc/machine.conf -v /var/run/redis$DEV:/var/run/redis:rw -v /usr/share/sonic/device/$PLATFORM/$HWSKU:/usr/share/sonic/hwsku:ro --name=$DOCKERNAME $DOCKERIMG
docker start $DOCKERNAME

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@msosyak
Copy link
Author

msosyak commented Mar 8, 2022

@richardyu-ms Please review and try to build saiserver for BFN with these changes.
Also take look to the following -v /host/machine.conf:/etc/machine.conf -v /var/run/redis$DEV:/var/run/redis:rw this mapping is needed for saiserver container

@richardyu-ms richardyu-ms force-pushed the bfn_saiserverv2_support branch from 9508855 to 3af6eb8 Compare March 9, 2022 05:57
@richardyu-ms richardyu-ms merged commit 608e84f into richardyu-ms:bfn_saiserverv2_support Mar 16, 2022
richardyu-ms pushed a commit that referenced this pull request Oct 22, 2022
richardyu-ms pushed a commit that referenced this pull request Dec 24, 2022
Added below commits:
9b30690 jcaiMR Fri Dec 16 fix handleSwssNotification crash in dhcp6relay (sonic-net#28)
047afb7 jcaiMR Wed Dec 14 14:08:58 2022 +0800 Fix multiple vlan issue (sonic-net#27)
ff6bec3 Vivek Thu Dec 8 09:44:15 2022 -0800 Made the Error log informative (sonic-net#22)
2fbe729 jcaiMR Wed Nov 30 14:41:53 2022 +0800 disable cfg dynamic change (sonic-net#25)
13d0805 Liu Shilong Wed Nov 30 10:54:11 2022 +0800 Use github code scanning instead of LGTM (sonic-net#26)
1e846f6 kellyyeh Wed Nov 23 14:36:02 2022 -0800 Fix packet range check for relay-reply packets (sonic-net#21)
4d19e13 kellyyeh Thu Nov 17 10:04:53 2022 -0800 Add unittest infrastructure (#5)
7f4fdab jcaiMR Fri Nov 11 14:47:51 2022 +0800 fix packet range check issue (sonic-net#20)
257ecdf kellyyeh Thu Nov 3 11:34:11 2022 -0700 Add client packet UDP header length check (sonic-net#19)
richardyu-ms pushed a commit that referenced this pull request Feb 8, 2023


advance dhcp relay for 202211

4bf1868 - (HEAD, origin/master, origin/HEAD, master) fix relay-reply dhcpv6 packet counter issue (add support for a7050 qx32 platform sonic-net#29) (2 weeks ago) [jcaiMR]
9b30690 - fix handleSwssNotification crash in dhcp6relay (Add libnl-nf-3-200 to docker-team sonic-net#28) (4 weeks ago) [jcaiMR]
047afb7 - Fix multiple vlan issue (Failure trying to run: chroot /sonic-buildimage/fsroot mount -t proc proc /proc sonic-net#27) (4 weeks ago) [jcaiMR]
ff6bec3 - Made the Error log informative (add python-tenjin as build dependency for p4-switch sonic-net#22) (5 weeks ago) [Vivek]
2fbe729 - disable cfg dynamic change (p4: fix build dependency for python-p4c-bm sonic-net#25) (6 weeks ago) [jcaiMR]
13d0805 - Use github code scanning instead of LGTM (Removed sx-libnl from Mellanox containers dependencies. sonic-net#26) (6 weeks ago) [Liu Shilong]
1e846f6 - Fix packet range check for relay-reply packets (update sonic-swss and p4-switch submodule to fix docker sonic p4 bug sonic-net#21) (7 weeks ago) [kellyyeh]
4d19e13 - Add unittest infrastructure (Cavium customization for docker containers #5) (8 weeks ago) [kellyyeh]
7f4fdab - fix packet range check issue (Makefile: add build dependency for python-p4c-bm sonic-net#20) (9 weeks ago) [jcaiMR]
257ecdf - Add client packet UDP header length check (change port_config.ini directory for s6000 sonic-net#19) (2 months ago) [kellyyeh]
richardyu-ms pushed a commit that referenced this pull request Feb 28, 2023
Why I did it
Advance sonic-dhcp-relay submodule head on 202012 branch

How I did it
Added the following commits:
a4b15d8 jcaiMR Thu Dec 29 14:18:28 2022 +0800 fix relay-reply dhcpv6 packet counter issue (sonic-net#29)
677543f jcaiMR Sat Dec 17 00:24:32 2022 +0800 fix handleSwssNotification crash in dhcp6relay (sonic-net#28)
ed86546 jcaiMR Wed Dec 14 14:08:58 2022 +0800 Fix multiple vlan issue (sonic-net#27)
5ec1f5b Vivek Thu Dec 8 09:44:15 2022 -0800 Made the Error log informative (sonic-net#22)
063d41b jcaiMR Wed Nov 30 14:41:53 2022 +0800 disable cfg dynamic change (sonic-net#25)
d4a51f6 kellyyeh Tue Jan 31 18:09:08 2023 -0800 Add unittest infrastructure (#5) (sonic-net#31)

How to verify it
Ran full dhcpv6 test suite on lab device
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.

2 participants