Skip to content

[warm/fast reboot] fail fast/warm reboot test if BGP GR timeout is detected #805

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

Merged
merged 2 commits into from
Feb 12, 2019

Conversation

yxieca
Copy link
Collaborator

@yxieca yxieca commented Feb 12, 2019

  • [] Bug fix
  • [] Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Approach

How did you do it?

Watch VM log, if BGP graceful restart timeout is detected, fail the test.

How did you verify/test it?

  • warm reboot: pass
  • fast reboot: pass
  • add artificial delay after stopping bgp in warm reboot test: fail as expected:

======================================================================
FAIL: advanced-reboot.ReloadTest

Traceback (most recent call last):
File "ptftests/advanced-reboot.py", line 1003, in runTest
self.assertTrue(is_good, errors)
AssertionError:

Something went wrong. Please check output below:

    "FAILED:10.64.247.203:BGP route GR timeout: neighbor 10.0.0.38 (ASN 4200065100)", 
    "FAILED:10.64.247.203:BGP route GR timeout: neighbor fc00::2d (ASN 4200065100)", 
    "FAILED:10.64.247.202:BGP route GR timeout: neighbor fc00::29 (ASN 4200065100)", 
    "FAILED:10.64.247.202:BGP route GR timeout: neighbor 10.0.0.36 (ASN 4200065100)", 
    "FAILED:10.64.247.201:BGP route GR timeout: neighbor 10.0.0.34 (ASN 4200065100)", 
    "FAILED:10.64.247.201:BGP route GR timeout: neighbor fc00::25 (ASN 4200065100)", 
    "FAILED:10.64.247.200:BGP route GR timeout: neighbor fc00::21 (ASN 4200065100)", 
    "FAILED:10.64.247.200:BGP route GR timeout: neighbor 10.0.0.32 (ASN 4200065100)", 

Copy link
Contributor

@pavel-shirshov pavel-shirshov left a comment

Choose a reason for hiding this comment

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

comments

Copy link
Contributor

@pavel-shirshov pavel-shirshov left a comment

Choose a reason for hiding this comment

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

approved

@yxieca yxieca merged commit e1a46f6 into master Feb 12, 2019
@yxieca yxieca deleted the bgp_gr_timeout branch February 12, 2019 19:47
yxieca added a commit that referenced this pull request Feb 12, 2019
…tected (#805)

* [warm/fast reboot] fail fast/warm reboot test if BGP GR timeout is detected

Signed-off-by: Ying Xie <[email protected]>

* [warm/fast reboot] get the actual ASN for printing

Signed-off-by: Ying Xie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants