Skip to content

Commit

Permalink
[teamd] update teamd docker to stretch and fix teamd_init failure
Browse files Browse the repository at this point in the history
* update teamd docker to stretch
* teamsyncd should be started before teammgrd,
  since teamsyncd needs to listen to netlink msgs
  when portchannel is created by teammgrd
  sonic-net#2655
  • Loading branch information
hzheng5 committed Apr 1, 2019
1 parent b73f9a5 commit a8e5802
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dockers/docker-teamd/Dockerfile.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker-config-engine
FROM docker-config-engine-stretch

ARG docker_container_name
RUN [ -f /etc/rsyslog.conf ] && sed -ri "s/%syslogtag%/$docker_container_name#%syslogtag%/;" /etc/rsyslog.conf
Expand Down
4 changes: 2 additions & 2 deletions dockers/docker-teamd/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ mkdir -p /var/warmboot/teamd

supervisorctl start rsyslogd

supervisorctl start teammgrd

supervisorctl start teamsyncd

supervisorctl start teammgrd
3 changes: 2 additions & 1 deletion rules/docker-teamd.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
DOCKER_TEAMD = docker-teamd.gz
$(DOCKER_TEAMD)_PATH = $(DOCKERS_PATH)/docker-teamd
$(DOCKER_TEAMD)_DEPENDS += $(SWSS) $(LIBTEAMDCT) $(LIBTEAM_UTILS) $(REDIS_TOOLS)
$(DOCKER_TEAMD)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE)
$(DOCKER_TEAMD)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_STRETCH)
SONIC_DOCKER_IMAGES += $(DOCKER_TEAMD)
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_TEAMD)
SONIC_STRETCH_DOCKERS += $(DOCKER_TEAMD)

$(DOCKER_TEAMD)_CONTAINER_NAME = teamd
$(DOCKER_TEAMD)_RUN_OPT += --net=host --privileged -t
Expand Down

0 comments on commit a8e5802

Please sign in to comment.