Skip to content

[Bug Fix] Add NF Cleanup after Critical Errors#131

Merged
koolzz merged 4 commits intosdnfv:developfrom
kevindweb:nf_error_cleanup
Jun 3, 2019
Merged

[Bug Fix] Add NF Cleanup after Critical Errors#131
koolzz merged 4 commits intosdnfv:developfrom
kevindweb:nf_error_cleanup

Conversation

@kevindweb
Copy link
Copy Markdown
Contributor

Speed test had some outstanding errors where we rte_exit without cleaning up context

Summary:

There were a few places where we would exit because of an error after registering the nf with the manager, but didn't clean up properly. This would cause the manager to think the nf was still running, even when it already exited.

Usage:
Speed test, when pcap was enabled, if you input an invalid pcap file, this would break manager. Also, when not enough packets could be created for speed_tester this happens. These are two odd edge cases that we've caught in the past, but didn't remember to verify after changing how we exit NFs. There might be other places, but these were the only other ones I found, and couldn't find other relevant ones in other NFs.

This PR includes
Resolves issues
Breaking API changes
Internal API changes
Usability improvements
Bug fixes 👍
New functionality
New NF/onvm_mgr args
Changes to starting NFs
Dependency updates
Web stats updates

Merging notes:

  • Dependencies: None

TODO before merging :

  • PR is ready for review
  • Make sure other NFs don't have a similar problem, firewall and scaling, most pertinently

Test Plan:

First test that the functionality works and doesn't break on the test cases. Also, I checked if other NFs had similar problems (rte_exit was called but onvm_nflib_stop(nf_local_ctx) was not). I did not see any places in other NFs like this, but I might have missed them. Something to keep in mind.

Review:

@koolzz @dennisafa

(optional) Subscribers: << @-mention people who probably care about these changes >>

@onvm
Copy link
Copy Markdown

onvm commented Jun 2, 2019

In response to PR creation

CI Message

Your results will arrive shortly

Copy link
Copy Markdown

@onvm onvm left a comment

Choose a reason for hiding this comment

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

In response to PR creation

CI Message

Run successful see results:
✔️ PR submitted to develop branch
✔️ Speed tester performance check passed
❌ Linter Failed (please fix style errors)

[Results from nimbnode30]

  • Median TX pps for Speed Tester: 39335955
  • Performance rating - 112.39% (compared to 35000000 average)

Linter Output

examples/speed_tester/speed_tester.c:331: Missing space before { [whitespace/braces] [5]
examples/speed_tester/speed_tester.c:511: Missing space before { [whitespace/braces] [5]
Total errors found: 2

@kevindweb
Copy link
Copy Markdown
Contributor Author

@onvm I fixed it

@onvm
Copy link
Copy Markdown

onvm commented Jun 2, 2019

@onvm I fixed it

CI Message

Your results will arrive shortly

Copy link
Copy Markdown

@onvm onvm left a comment

Choose a reason for hiding this comment

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

@onvm I fixed it

CI Message

Run successful see results:
✔️ PR submitted to develop branch
✔️ Speed tester performance check passed
✔️ Linter passed

[Results from nimbnode30]

  • Median TX pps for Speed Tester: 39317033
  • Performance rating - 112.33% (compared to 35000000 average)

@onvmstats
Copy link
Copy Markdown
Collaborator

@onvmTest test this

@onvmstats
Copy link
Copy Markdown
Collaborator

@onvmTest again

@onvmstats
Copy link
Copy Markdown
Collaborator

@onvmTest data here

@onvmstats
Copy link
Copy Markdown
Collaborator

@onvmTest last time rn

@onvm
Copy link
Copy Markdown

onvm commented Jun 3, 2019

@onvmTest last time rn

CI Message

The current user is true

@onvm
Copy link
Copy Markdown

onvm commented Jun 3, 2019

@onvmTest last time rn

CI Message

Your results will arrive shortly

Copy link
Copy Markdown

@onvm onvm left a comment

Choose a reason for hiding this comment

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

@onvmTest last time rn

CI Message

Run successful see results:
✔️ PR submitted to develop branch
✔️ Linter passed

@koolzz koolzz changed the title NF cleanup on error [Bug Fix] Add NF Cleanup after Critical Errors Jun 3, 2019
@koolzz koolzz added this to the ONVM 19.05 Release milestone Jun 3, 2019
@onvmstats
Copy link
Copy Markdown
Collaborator

@onvmTest will you work

@onvmstats
Copy link
Copy Markdown
Collaborator

@onvmTest I should have saved the file

@onvm
Copy link
Copy Markdown

onvm commented Jun 3, 2019

@onvmTest I should have saved the file

CI Message

Your results will arrive shortly

Copy link
Copy Markdown

@onvm onvm left a comment

Choose a reason for hiding this comment

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

@onvmTest I should have saved the file

CI Message

Run successful see results:
✔️ PR submitted to develop branch
✔️ Linter passed

@onvmstats
Copy link
Copy Markdown
Collaborator

@onvm no way

@onvm
Copy link
Copy Markdown

onvm commented Jun 3, 2019

@onvm no way

CI Message

Your results will arrive shortly

Copy link
Copy Markdown

@onvm onvm left a comment

Choose a reason for hiding this comment

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

@onvm no way

CI Message

Run successful see results:
✔️ PR submitted to develop branch
✔️ Linter passed

@kevindweb
Copy link
Copy Markdown
Contributor Author

@onvm testing now

@onvm
Copy link
Copy Markdown

onvm commented Jun 3, 2019

@onvm testing now

CI Message

Your results will arrive shortly

Copy link
Copy Markdown

@onvm onvm left a comment

Choose a reason for hiding this comment

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

@onvm testing now

CI Message

Run successful see results:
✔️ PR submitted to develop branch
✔️ Speed tester performance check passed
✔️ Linter passed

[Results from nimbnode30]

  • Median TX pps for Speed Tester: 39313593
  • Performance rating - 112.32% (compared to 35000000 average)

@koolzz koolzz merged commit e7c6dfd into sdnfv:develop Jun 3, 2019
@kevindweb kevindweb deleted the nf_error_cleanup branch June 4, 2019 23:47
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.

4 participants