[Bug Fix] Properly Terminate Started but not yet Running NFs#88
Merged
koolzz merged 2 commits intosdnfv:developfrom Mar 30, 2019
Merged
[Bug Fix] Properly Terminate Started but not yet Running NFs#88koolzz merged 2 commits intosdnfv:developfrom
koolzz merged 2 commits intosdnfv:developfrom
Conversation
CI MessageYour results will arrive shortly |
This comment has been minimized.
This comment has been minimized.
Member
Author
|
PR review assigned to @kevindweb and @Arjun-Vijay |
kevindweb
approved these changes
Mar 22, 2019
Contributor
kevindweb
left a comment
There was a problem hiding this comment.
Tested with basic_monitor. Previously, exiting nf that has not started running messes with the manager, so that it has to exit those non-running NFs.
APP: Core 0: Notifying NF 1 to shut down
APP: Core 0: Notifying NF 3 to shut down
This PR works in that these issues do not happen when exiting before nf->status is set to RUNNING.
…fix_free_core_on_termination
Member
Author
|
@onvm how does it look now |
CI MessageYour results will arrive shortly |
CI MessageRun successful see results: Linter Passed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pr cleans up the NF termination cleanup and resolves a STARTED NF termination which has not entered the RUNNING state.
Summary:
Usage:
Tested with running 1 NF core for the manager, f.e.:
./go.sh 0,1,2 0 0x60Run the NF with bad args, causing it to quit before entering the RUNNING state:
cd basic_monitor ./go.sh 2 -d 1The above should fail, now run basic monitor with
./go.sh 2Before this pr it would fail, after this pr it should run fine.
Merging notes:
TODO before merging :
Test Plan:
Try to break this as hard as you can by running different NFs, with valid/invalid args and stopping them whenever your heart desires.
Review:
Review checklist:
Sanity checks, assigned to @kevindweb @Arjun-Vijay
/onvmand/examplesdirectoriesCode style, assigned to @kevindweb @Arjun-Vijay
Code design, assigned to @kevindweb @Arjun-Vijay
Performance, assigned to @kevindweb @Arjun-Vijay
Documentation, assigned to @kevindweb @Arjun-Vijay