Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Upgrade brcm syncd to buster. #6106

Merged
merged 1 commit into from
Dec 17, 2020
Merged

Upgrade brcm syncd to buster. #6106

merged 1 commit into from
Dec 17, 2020

Conversation

vmittal-msft
Copy link
Contributor

@vmittal-msft vmittal-msft commented Dec 2, 2020

- Why I did it
To upgrade brcm syncd to buster

- How I did it

  1. Updated BCM SAI using kernel version 4.19.0-12 and debian 10 to support buster.
  2. Updated syncd docker from stretch to buster in sonic-buildimage

- How to verify it

  1. Verified change on S6000 Dell system. Ensured docker is running synd buster.
  2. After upgrade, ensured all BGP peers and ip interfaces are up.
  3. Ping to BGP neighbors is working fine.

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

  • 201811
  • 201911
  • 202006

- Description for the changelog

Upgrade syncd from stretch to buster

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

Copy link
Contributor

@jleveque jleveque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As part of this PR, please also switch to using Python 3 to run supervisord_dependent_startup and supervisor-proc-exit-listener. In the file platform/broadcom/docker-syncd-brcm/supervisord.conf, please change the line

command=python2 -m supervisord_dependent_startup

to

command=python3 -m supervisord_dependent_startup

And change the line

command=python2 /usr/bin/supervisor-proc-exit-listener --container-name syncd

to

command=/usr/bin/supervisor-proc-exit-listener --container-name syncd

@smaheshm
Copy link
Contributor

smaheshm commented Dec 3, 2020

retest vs please

@vmittal-msft
Copy link
Contributor Author

As part of this PR, please also switch to using Python 3 to run supervisord_dependent_startup and supervisor-proc-exit-listener. In the file platform/broadcom/docker-syncd-brcm/supervisord.conf, please change the line

command=python2 -m supervisord_dependent_startup

to

command=python3 -m supervisord_dependent_startup

And change the line

command=python2 /usr/bin/supervisor-proc-exit-listener --container-name syncd

to

command=/usr/bin/supervisor-proc-exit-listener --container-name syncd

Done.

@lguohan
Copy link
Collaborator

lguohan commented Dec 4, 2020

please add proper description of the pr.

@vmittal-msft vmittal-msft changed the title Upgrade syncd to buster. Upgrade brcm syncd to buster. Dec 4, 2020
@smaheshm
Copy link
Contributor

smaheshm commented Dec 4, 2020

can you also fill the questions in the description.

  • Why I did it
  • How I did it
  • How to verify it
  • Description for the changelog

@@ -5,4 +5,4 @@ $(DOCKER_PTF_BRCM)_PATH = $(DOCKERS_PATH)/docker-ptf-saithrift
$(DOCKER_PTF_BRCM)_DEPENDS += $(PYTHON_SAITHRIFT)
$(DOCKER_PTF_BRCM)_LOAD_DOCKERS += $(DOCKER_PTF)
SONIC_DOCKER_IMAGES += $(DOCKER_PTF_BRCM)
SONIC_STRETCH_DOCKERS += $(DOCKER_PTF_BRCM)
SONIC_BUSTER_DOCKERS += $(DOCKER_PTF_BRCM)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is necessary to append to SONIC_BUSTER_DOCKERS. I don't think we reference this variable anywhere. All Dockers are considered Buster by default, unless appended to SONIC_STRETCH_DOCKERS. @lguohan to confirm.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Will wait for @lguohan to confirm.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PTF stay on STRETCH.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jleveque , yes you are right.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@vmittal-msft
Copy link
Contributor Author

retest broadcom please

@smaheshm smaheshm marked this pull request as ready for review December 10, 2020 22:13
@@ -40,4 +40,4 @@ DELTA_AGC032_PLATFORM_MODULE = platform-modules-agc032_$(DELTA_AGC032_PLATFORM_M
$(DELTA_AGC032_PLATFORM_MODULE)_PLATFORM = x86_64-delta_agc032-r0
$(eval $(call add_extra_package,$(DELTA_AG9032V1_PLATFORM_MODULE),$(DELTA_AGC032_PLATFORM_MODULE)))

SONIC_STRETCH_DEBS += $(DELTA_AG9032V1_PLATFORM_MODULE)
SONIC_BUSTER_DEBS += $(DELTA_AG9032V1_PLATFORM_MODULE)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can do that in a different pr.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. @lguohan Shall i open a different PR for check in these changes ? or is there already one i can use ?

@gechiang gechiang self-requested a review December 12, 2020 00:33
@lguohan lguohan mentioned this pull request Dec 14, 2020
3 tasks
lguohan
lguohan previously approved these changes Dec 15, 2020
@lguohan
Copy link
Collaborator

lguohan commented Dec 15, 2020

@jleveque , can you approve?

SONIC_DOCKER_IMAGES += $(DOCKER_SAISERVER_BRCM)
SONIC_STRETCH_DOCKERS += $(DOCKER_SAISERVER_BRCM)
SONIC_BUSTER_DOCKERS += $(DOCKER_SAISERVER_BRCM)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed in a previous comment, we do not reference a SONIC_BUSTER_DOCKERS variable. This line is unnecessary, correct, @lguohan?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, reverted the change.

Copy link
Contributor

@jleveque jleveque Dec 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should still delete the line, just not add the SONIC_BUSTER_DOCKERS line. This is now a Buster Docker, not Stretch, correct?

@@ -12,7 +12,7 @@ endif
$(DOCKER_SYNCD_BRCM_RPC)_FILES += $(DSSERVE) $(BCMCMD) $(SUPERVISOR_PROC_EXIT_LISTENER_SCRIPT)
$(DOCKER_SYNCD_BRCM_RPC)_LOAD_DOCKERS += $(DOCKER_SYNCD_BASE)
SONIC_DOCKER_IMAGES += $(DOCKER_SYNCD_BRCM_RPC)
SONIC_STRETCH_DOCKERS += $(DOCKER_SYNCD_BRCM_RPC)
SONIC_BUSTER_DOCKERS += $(DOCKER_SYNCD_BRCM_RPC)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed in a previous comment, we do not reference a SONIC_BUSTER_DOCKERS variable. This line is unnecessary, correct, @lguohan?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Reverted the change.

Copy link
Contributor

@jleveque jleveque Dec 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should still delete the line, just not add the SONIC_BUSTER_DOCKERS line. This is now a Buster Docker, not Stretch, correct?

@@ -4,7 +4,7 @@ DOCKER_SAISERVER_BRCM = docker-saiserver-brcm.gz
$(DOCKER_SAISERVER_BRCM)_PATH = $(PLATFORM_PATH)/docker-saiserver-brcm
$(DOCKER_SAISERVER_BRCM)_DEPENDS += $(SAISERVER)
$(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_STRETCH_DOCKERS += $(DOCKER_SAISERVER_BRCM)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't you still delete this line? This is now a Buster Docker, not Stretch, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just confirming that "$(DOCKER_SAISERVER_BRCM)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_STRETCH)" need to be removed too ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and not adding "$(DOCKER_SAISERVER_BRCM)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_BUSTER)" ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assumed you are now basing this container off Buster. If so, then I believe this section should read:

DOCKER_SAISERVER_BRCM = docker-saiserver-brcm.gz
$(DOCKER_SAISERVER_BRCM)_PATH = $(PLATFORM_PATH)/docker-saiserver-brcm
$(DOCKER_SAISERVER_BRCM)_DEPENDS += $(SAISERVER)
$(DOCKER_SAISERVER_BRCM)_FILES += $(DSSERVE) $(BCMCMD)
$(DOCKER_SAISERVER_BRCM)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_BUSTER)
SONIC_DOCKER_IMAGES += $(DOCKER_SAISERVER_BRCM)

@jleveque
Copy link
Contributor

@vmittal-msft: FYI, for future PRs, I suggest only using force-pushes when necessary (i.e., after a rebase), because we lose track of the commit history.

@vmittal-msft
Copy link
Contributor Author

retest vs please

@vmittal-msft
Copy link
Contributor Author

retest vsimage please

2 similar comments
@gechiang
Copy link
Collaborator

retest vsimage please

@gechiang
Copy link
Collaborator

retest vsimage please

@rlhui rlhui merged commit a624aa0 into sonic-net:master Dec 17, 2020
@vmittal-msft vmittal-msft deleted the 4215_syncd_buster branch December 17, 2020 21:13
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants