Skip to content

fix(mme): add config flag to control GTP-U echo#7980

Merged
pshelar merged 1 commit intomagma:masterfrom
pshelar:turn-off-echo
Jul 9, 2021
Merged

fix(mme): add config flag to control GTP-U echo#7980
pshelar merged 1 commit intomagma:masterfrom
pshelar:turn-off-echo

Conversation

@pshelar
Copy link
Copy Markdown
Contributor

@pshelar pshelar commented Jul 9, 2021

This is turned off by default to fix perf regression.

Signed-off-by: Pravin B Shelar [email protected]

Summary

Test Plan

validated it on vagrant test setup.

Additional Information

  • This change is backwards-breaking

@pshelar pshelar requested a review from a team as a code owner July 9, 2021 22:13
@pshelar pshelar requested review from a team, koolzz and ulaskozat July 9, 2021 22:13
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines. label Jul 9, 2021
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 9, 2021

Thanks for opening a PR! 💯 Please note that all commits must be signed off. This is enforced by the DCO check.

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@magmabot magmabot added the component: agw Access gateway-related issue label Jul 9, 2021
@themarwhal themarwhal requested a review from ardzoht July 9, 2021 22:14
Copy link
Copy Markdown
Contributor

@ardzoht ardzoht left a comment

Choose a reason for hiding this comment

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

There is a missing config value on yml file I think. Also for these type of changes I'd suggest including on your test plan an output that validates how this value gets updated (on mme.log for example)

UPLINK_PORT_NUM = {{ ovs_uplink_port_number }};
UPLINK_MAC = "{{ ovs_uplink_mac }}";
MULTI_TUNNEL = "{{ ovs_multi_tunnel }}";
GTP_ECHO = "{{ ovs_gtpu_echo_resp }}";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

where is this generated from? there should be a ovs_gtpu_echo_resp config param on spgw.yml that this value updates from.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

in case of missing value, the feature is off. thats why I did not add the variable to yml file.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok got your point, MME config is checking on the existence of the value.

I'd strongly advise against this, at least on MME and OAI configuration generation there is an explicit declaration for all configuration both on mme.yml and spgw.yml files which generate_oai_config parses the values and puts them on the given template.

My preference would be to declare the value on the yml file and use that to control the enablement/disablement of the feature, this way we also have expectations between what different versions of what service configs files should contain.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ok. updated the PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

cool, and thanks for the validation!

@pshelar
Copy link
Copy Markdown
Contributor Author

pshelar commented Jul 9, 2021

There is a missing config value on yml file I think. Also for these type of changes I'd suggest including on your test plan an output that validates how this value gets updated (on mme.log for example)

I ran test-attach-detach with this change. and it works. do you see any potential issue due to missing config in this case?

@ardzoht
Copy link
Copy Markdown
Contributor

ardzoht commented Jul 9, 2021

There is a missing config value on yml file I think. Also for these type of changes I'd suggest including on your test plan an output that validates how this value gets updated (on mme.log for example)

I ran test-attach-detach with this change. and it works. do you see any potential issue due to missing config in this case?

I just want to confirm validation that generate_oai_config is working as expected for this value, as I mentioned on my other comment generate_oai_config.py should be the manager for validating existence of config and not the MME service itself.

This is turned off by default to investigate perf
regression.

Signed-off-by: Pravin B Shelar <[email protected]>
@pshelar
Copy link
Copy Markdown
Contributor Author

pshelar commented Jul 9, 2021

There is a missing config value on yml file I think. Also for these type of changes I'd suggest including on your test plan an output that validates how this value gets updated (on mme.log for example)

I ran test-attach-detach with this change. and it works. do you see any potential issue due to missing config in this case?

I just want to confirm validation that generate_oai_config is working as expected for this value, as I mentioned on my other comment generate_oai_config.py should be the manager for validating existence of config and not the MME service itself.

MME restart and performs as per the config for the attach-detach-test. it does validate generate_oai_config, right?

Copy link
Copy Markdown
Contributor

@ardzoht ardzoht left a comment

Choose a reason for hiding this comment

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

lgtm

@pshelar pshelar merged commit 6fb7dc7 into magma:master Jul 9, 2021
amarpad pushed a commit to amarpad/magma that referenced this pull request Jul 13, 2021
This is turned off by default to investigate perf
regression.

Signed-off-by: Pravin B Shelar <[email protected]>
rmeleromira pushed a commit to rmeleromira/magma that referenced this pull request Jul 24, 2021
This is turned off by default to investigate perf
regression.

Signed-off-by: Pravin B Shelar <[email protected]>
Signed-off-by: Ramon Melero <[email protected]>
themarwhal pushed a commit that referenced this pull request Aug 16, 2021
This is turned off by default to investigate perf
regression.

Signed-off-by: Pravin B Shelar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apply-v1.6 backported-v1.5 backported-v1.6 component: agw Access gateway-related issue size/S Denotes a PR that changes 10-29 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants