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

fix(agw): restart mme as a single service for one single containerize… #14946

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

mpfirrmann
Copy link
Contributor

@mpfirrmann mpfirrmann commented Feb 2, 2023

…d AGW integ test

Signed-off-by: Marco Pfirrmann marco.pfirrmann@tngtech.com

Summary

Analyzing the failing S1AP integration tests based on a containerized AGW, s1aptests/test_3485_timer_for_default_bearer_with_mme_restart.py fails consistently. We suspect a race condition between the container restarts and the T3485 timer. For this test only, we only restart the MME container to mitigate the race condition.

Background information:
In the systemd-base AGW, magma services do have a cascading restart mechanism: if one of them restarts, several other restart as well. This was mirrored in the S1AP test framework for the containerized AGW case. In production, every container is on its own. We now restart the mme container on its own for this particular test.

Test Plan

Additional Information

  • The cascading restart dependencies are (possibly not fully) depicted in THIS drawing.

@pull-request-size pull-request-size bot added the size/L Denotes a Pull Request that changes 100-499 lines. label Feb 2, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2023

Thanks for opening a PR! 💯

A couple initial guidelines

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

@github-actions github-actions bot added the component: agw Access gateway-related issue label Feb 2, 2023
@pull-request-size pull-request-size bot added size/M Denotes a PR that changes 30-99 lines. and removed size/L Denotes a Pull Request that changes 100-499 lines. labels Feb 2, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2023

Oops! Looks like you failed the AGW Build & Format Python.

Howto

♻️ Updated: ✅ The check is passing the AGW Build & Format Python after the last commit.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2023

FeG Lint & Test

    2 files  203 suites   39s ⏱️
374 tests 374 ✔️ 0 💤 0
388 runs  388 ✔️ 0 💤 0

Results for commit a7aeddf.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2023

DP Lint & Test

14 tests   14 ✔️  2m 10s ⏱️
  1 suites    0 💤
  1 files      0

Results for commit a7aeddf.

♻️ This comment has been updated with latest results.

@mpfirrmann mpfirrmann requested a review from nstng February 2, 2023 16:58
@mpfirrmann mpfirrmann marked this pull request as ready for review February 2, 2023 16:58
@mpfirrmann mpfirrmann requested a review from a team as a code owner February 2, 2023 16:58
self._s1ap_wrapper.magmad_util.restart_services(

# MME is explicitly restarted as a single service here, see comment
# in the function.
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not ideal to refer to a comment in another function at this line. If the comment in restart_single_service ever goes away or changes, the comment in this file will be out of date. May be say instead e.g.

# MME is explicitly restarted as a single service here to avoid a race condition between the container restarts and the T3485 timer

# Since we hard code these intedependent container restarts for testing
# only, one test is executed with only a MME restart to keep it green;
# Test3485TimerForDefaultBearerWithMmeRestart.
#
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we move this comment to the document string above? That way it is more easily visible, e.g. if a developer uses the quick documentation lookup feature in an IDE?

@MoritzThomasHuebner
Copy link
Contributor

I successfully ran the tests locally and the changes LGTM.

Copy link
Contributor

@nstng nstng left a comment

Choose a reason for hiding this comment

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

lgtm % comments from @MoritzThomasHuebner

…d AGW integ test

Signed-off-by: Marco Pfirrmann <marco.pfirrmann@tngtech.com>
@mpfirrmann mpfirrmann enabled auto-merge (squash) February 6, 2023 08:06
@mpfirrmann mpfirrmann merged commit c236dd4 into magma:master Feb 6, 2023
@mpfirrmann mpfirrmann deleted the pr/mme_restart_3485 branch February 6, 2023 19:44
lucasgonze pushed a commit to lucasgonze/magma that referenced this pull request Feb 29, 2024
…d AGW integ test (magma#14946)

Signed-off-by: Marco Pfirrmann <marco.pfirrmann@tngtech.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: agw Access gateway-related issue size/M Denotes a PR that changes 30-99 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants