Upgrade syncd to buster. (#6106)
- Why I did it To upgrade brcm syncd to buster - How I did it Updated BCM SAI using kernel version 4.19.0-12 and debian 10 to support buster. Updated syncd docker from stretch to buster in sonic-buildimage - How to verify it Ensured docker is running synd buster. After upgrade, ensured all BGP peers and ip interfaces are up. Ping to BGP neighbors is working fine.
This commit is contained in:
parent
a5e0c11dc0
commit
a624aa01c7
@ -4,9 +4,8 @@ DOCKER_SAISERVER_BRCM = docker-saiserver-brcm.gz
|
|||||||
$(DOCKER_SAISERVER_BRCM)_PATH = $(PLATFORM_PATH)/docker-saiserver-brcm
|
$(DOCKER_SAISERVER_BRCM)_PATH = $(PLATFORM_PATH)/docker-saiserver-brcm
|
||||||
$(DOCKER_SAISERVER_BRCM)_DEPENDS += $(SAISERVER)
|
$(DOCKER_SAISERVER_BRCM)_DEPENDS += $(SAISERVER)
|
||||||
$(DOCKER_SAISERVER_BRCM)_FILES += $(DSSERVE) $(BCMCMD)
|
$(DOCKER_SAISERVER_BRCM)_FILES += $(DSSERVE) $(BCMCMD)
|
||||||
$(DOCKER_SAISERVER_BRCM)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_STRETCH)
|
$(DOCKER_SAISERVER_BRCM)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_BUSTER)
|
||||||
SONIC_DOCKER_IMAGES += $(DOCKER_SAISERVER_BRCM)
|
SONIC_DOCKER_IMAGES += $(DOCKER_SAISERVER_BRCM)
|
||||||
SONIC_STRETCH_DOCKERS += $(DOCKER_SAISERVER_BRCM)
|
|
||||||
|
|
||||||
$(DOCKER_SAISERVER_BRCM)_CONTAINER_NAME = saiserver
|
$(DOCKER_SAISERVER_BRCM)_CONTAINER_NAME = saiserver
|
||||||
$(DOCKER_SAISERVER_BRCM)_RUN_OPT += --net=host --privileged -t
|
$(DOCKER_SAISERVER_BRCM)_RUN_OPT += --net=host --privileged -t
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM docker-config-engine-stretch
|
FROM docker-config-engine-buster
|
||||||
|
|
||||||
ARG docker_container_name
|
ARG docker_container_name
|
||||||
RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%syslogtag%/;" /etc/rsyslog.conf
|
RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%syslogtag%/;" /etc/rsyslog.conf
|
||||||
|
@ -12,7 +12,6 @@ endif
|
|||||||
$(DOCKER_SYNCD_BRCM_RPC)_FILES += $(DSSERVE) $(BCMCMD) $(SUPERVISOR_PROC_EXIT_LISTENER_SCRIPT)
|
$(DOCKER_SYNCD_BRCM_RPC)_FILES += $(DSSERVE) $(BCMCMD) $(SUPERVISOR_PROC_EXIT_LISTENER_SCRIPT)
|
||||||
$(DOCKER_SYNCD_BRCM_RPC)_LOAD_DOCKERS += $(DOCKER_SYNCD_BASE)
|
$(DOCKER_SYNCD_BRCM_RPC)_LOAD_DOCKERS += $(DOCKER_SYNCD_BASE)
|
||||||
SONIC_DOCKER_IMAGES += $(DOCKER_SYNCD_BRCM_RPC)
|
SONIC_DOCKER_IMAGES += $(DOCKER_SYNCD_BRCM_RPC)
|
||||||
SONIC_STRETCH_DOCKERS += $(DOCKER_SYNCD_BRCM_RPC)
|
|
||||||
ifeq ($(ENABLE_SYNCD_RPC),y)
|
ifeq ($(ENABLE_SYNCD_RPC),y)
|
||||||
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_SYNCD_BRCM_RPC)
|
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_SYNCD_BRCM_RPC)
|
||||||
endif
|
endif
|
||||||
|
@ -11,9 +11,6 @@ $(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $(SYNCD_DBG) \
|
|||||||
$(LIBSAIMETADATA_DBG) \
|
$(LIBSAIMETADATA_DBG) \
|
||||||
$(LIBSAIREDIS_DBG)
|
$(LIBSAIREDIS_DBG)
|
||||||
|
|
||||||
SONIC_STRETCH_DOCKERS += $(DOCKER_SYNCD_BASE)
|
|
||||||
SONIC_STRETCH_DBG_DOCKERS += $(DOCKER_SYNCD_BASE_DBG)
|
|
||||||
|
|
||||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||||
|
|
||||||
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += bcmcmd:/usr/bin/bcmcmd
|
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += bcmcmd:/usr/bin/bcmcmd
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{% from "dockers/dockerfile-macros.j2" import install_debian_packages %}
|
{% from "dockers/dockerfile-macros.j2" import install_debian_packages %}
|
||||||
FROM docker-config-engine-stretch
|
FROM docker-config-engine-buster
|
||||||
|
|
||||||
ARG docker_container_name
|
ARG docker_container_name
|
||||||
RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%syslogtag%/;" /etc/rsyslog.conf
|
RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%syslogtag%/;" /etc/rsyslog.conf
|
||||||
|
@ -4,7 +4,7 @@ logfile_backups=2
|
|||||||
nodaemon=true
|
nodaemon=true
|
||||||
|
|
||||||
[eventlistener:dependent-startup]
|
[eventlistener:dependent-startup]
|
||||||
command=python2 -m supervisord_dependent_startup
|
command=python3 -m supervisord_dependent_startup
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=unexpected
|
autorestart=unexpected
|
||||||
startretries=0
|
startretries=0
|
||||||
@ -13,7 +13,7 @@ events=PROCESS_STATE
|
|||||||
buffer_size=25
|
buffer_size=25
|
||||||
|
|
||||||
[eventlistener:supervisor-proc-exit-listener]
|
[eventlistener:supervisor-proc-exit-listener]
|
||||||
command=python2 /usr/bin/supervisor-proc-exit-listener --container-name syncd
|
command=/usr/bin/supervisor-proc-exit-listener --container-name syncd
|
||||||
events=PROCESS_STATE_EXITED
|
events=PROCESS_STATE_EXITED
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=unexpected
|
autorestart=unexpected
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
BRCM_SAI = libsaibcm_4.2.1.5-6_amd64.deb
|
BRCM_SAI = libsaibcm_4.2.1.5-6_amd64.deb
|
||||||
$(BRCM_SAI)_URL = "https://sonicstorage.blob.core.windows.net/packages/bcmsai/4.2/master/libsaibcm_4.2.1.5-6_amd64.deb?sv=2015-04-05&sr=b&sig=%2BZXgixWQWbDP5gEEID4wmkAT2vB%2FW%2BAiDIHs9z1FuZQ%3D&se=2034-08-18T02%3A06%3A57Z&sp=r"
|
$(BRCM_SAI)_URL = "https://sonicstorage.blob.core.windows.net/packages/bcmsai/4.2/master/buster/libsaibcm_4.2.1.5-6_amd64.deb?sv=2019-12-12&st=2020-12-15T06%3A40%3A06Z&se=2035-12-16T06%3A40%3A00Z&sr=b&sp=r&sig=aux78f4Uhmh2AHJqZh1GMWPYdQDWI3fVLgLmFXrpbFQ%3D"
|
||||||
BRCM_SAI_DEV = libsaibcm-dev_4.2.1.5-6_amd64.deb
|
BRCM_SAI_DEV = libsaibcm-dev_4.2.1.5-6_amd64.deb
|
||||||
$(eval $(call add_derived_package,$(BRCM_SAI),$(BRCM_SAI_DEV)))
|
$(eval $(call add_derived_package,$(BRCM_SAI),$(BRCM_SAI_DEV)))
|
||||||
$(BRCM_SAI_DEV)_URL = "https://sonicstorage.blob.core.windows.net/packages/bcmsai/4.2/master/libsaibcm-dev_4.2.1.5-6_amd64.deb?sv=2015-04-05&sr=b&sig=fGd05XpZ%2FuIJ6UP7Cr39Ctz8%2Bnh4e6O6gqXFdgOTok0%3D&se=2034-08-18T02%3A06%3A24Z&sp=r"
|
$(BRCM_SAI_DEV)_URL = "https://sonicstorage.blob.core.windows.net/packages/bcmsai/4.2/master/buster/libsaibcm-dev_4.2.1.5-6_amd64.deb?sv=2019-12-12&st=2020-12-15T06%3A40%3A46Z&se=2035-12-16T06%3A40%3A00Z&sr=b&sp=r&sig=%2BnflSlIa9cIMPr%2BDmZLYtO2rhXwdDwv7Z%2BqY5MUlIM0%3D"
|
||||||
|
|
||||||
SONIC_ONLINE_DEBS += $(BRCM_SAI)
|
SONIC_ONLINE_DEBS += $(BRCM_SAI)
|
||||||
$(BRCM_SAI_DEV)_DEPENDS += $(BRCM_SAI)
|
$(BRCM_SAI_DEV)_DEPENDS += $(BRCM_SAI)
|
||||||
|
Loading…
Reference in New Issue
Block a user