Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[FRR] Create a separate script to wait zebra to be ready to receive connections #6519

Merged
merged 3 commits into from
Jan 27, 2021

Conversation

shi-su
Copy link
Contributor

@shi-su shi-su commented Jan 21, 2021

- Why I did it
The requirement for zebra to be ready to accept connections is a generic problem that is not specific to bgpd. Making the script to wait for zebra socket a separate script and let bgpd and staticd to wait for zebra socket.

- How I did it
Pull the script to wait for the zebra socket for bgpd as a separate one.

- How to verify it

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

  • 201811
  • 201911
  • 202006
  • 202012

- Description for the changelog

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

lguohan
lguohan previously approved these changes Jan 21, 2021
@shi-su shi-su marked this pull request as ready for review January 21, 2021 17:52
@lguohan
Copy link
Collaborator

lguohan commented Jan 21, 2021

@sudhanshukumar22, can you take a look to see if this address your issue on losing staticd routes?

@shi-su
Copy link
Contributor Author

shi-su commented Jan 23, 2021

retest vsimage please

1 similar comment
@shi-su
Copy link
Contributor Author

shi-su commented Jan 23, 2021

retest vsimage please

lguohan
lguohan previously approved these changes Jan 25, 2021
@shi-su
Copy link
Contributor Author

shi-su commented Jan 25, 2021

retest this please

1 similar comment
@shi-su
Copy link
Contributor Author

shi-su commented Jan 25, 2021

retest this please

@shi-su
Copy link
Contributor Author

shi-su commented Jan 26, 2021

It seems that quite a few warm-reboot tests conducted on Jenkins worker-w16 are failing. Need to find out what is going on there.

@shi-su
Copy link
Contributor Author

shi-su commented Jan 26, 2021

retest vsimage please

@lguohan
Copy link
Collaborator

lguohan commented Jan 26, 2021

let's not worry about the vsimage test on jenkins anymore, we are switching to azure pipeline which has more stable environment.

@lguohan
Copy link
Collaborator

lguohan commented Jan 26, 2021

can you rebase and push, I am not sure why Test vstest is always failing on jenkins pipeline.

@lguohan lguohan merged commit aab37b7 into sonic-net:master Jan 27, 2021
lguohan pushed a commit that referenced this pull request Jan 28, 2021
…onnections (#6519)

The requirement for zebra to be ready to accept connections is a generic problem that is not 
specific to bgpd. Making the script to wait for zebra socket a separate script and let bgpd and 
staticd to wait for zebra socket.
StormLiangMS pushed a commit that referenced this pull request Sep 25, 2023
Why I did it
Back port #6478 and #6519 to 201911 branch.

Work item tracking
Microsoft ADO (number only):
24978836
How I did it
Add checking the connection between zebra and bgp during bgpd start.

How to verify it
Modify start.h, add debug log and check the syslog

  _Sep 22 02:41:29.716356 str-a7060cx-acs-10 INFO bgp#root: ####: start zebra
  Sep 22 02:41:30.815341 str-a7060cx-acs-10 INFO bgp#root: ####: start check connection
  Sep 22 02:41:30.868784 str-a7060cx-acs-10 INFO bgp#root: ####: It took 0.029979 seconds to wait for zebra to be ready to accept connections
  Sep 22 02:41:30.873685 str-a7060cx-acs-10 INFO bgp#root: ####: start bgpd
  Sep 22 02:41:35.270569 str-a7060cx-acs-10 INFO bgp#root: ####: done_

  _Sep 22 03:28:02.423438 str-a7060cx-acs-10 INFO bgp#root: ####: start zebra
  Sep 22 03:28:03.731320 str-a7060cx-acs-10 INFO bgp#root: ####: start check connection
  Sep 22 03:28:33.749152 str-a7060cx-acs-10 INFO bgp#root: ####: Error: zebra is not ready to accept connections
  Sep 22 03:28:33.752490 str-a7060cx-acs-10 INFO bgp#root: ####: start bgpd
  Sep 22 03:28:34.259735 str-a7060cx-acs-10 INFO bgp#root: ####: start bgpd done
  Sep 22 03:28:34.755538 str-a7060cx-acs-10 INFO bgp#root: ####: start bgpcfgd
  Sep 22 03:28:35.800906 str-a7060cx-acs-10 INFO bgp#root: ####: done_
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.

3 participants