Skip to content

11191 move ue context #23

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

Open
wants to merge 95 commits into
base: rsarwad_migrate_state_ue_ht_s1ap
Choose a base branch
from

Conversation

rsarwad
Copy link
Owner

@rsarwad rsarwad commented Aug 2, 2022

Modified code to replace C structure ue_description_t to protobuf structure UeDescription

Summary

Modified code to replace C structure ue_description_t to protobuf structure UeDescription

Test Plan

Tested both unit test cases and end2end test cases with s1ap sanity test suite

rsarwad added 2 commits July 25, 2022 12:47
…tobuf structure, UeDescription in s1ap module

Signed-off-by: Rashmi <[email protected]>
@github-actions
Copy link

github-actions bot commented Aug 2, 2022

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
Copy link

github-actions bot commented Aug 2, 2022

❌ The Semantic PR check ended with status failure. See instructions on formatting your commit and pull request titles.

void* parameterP, void** resultP) {
mme_ue_s1ap_id_t* mme_ue_s1ap_id_p = (mme_ue_s1ap_id_t*)parameterP;
ue_description_t* ue_ref = (ue_description_t*)elementP;
if (*mme_ue_s1ap_id_p == ue_ref->mme_ue_s1ap_id) {
UeDescription* ue_ref = (UeDescription*)elementP;
Copy link

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use reinterpret_cast<UeDescription*>(...) instead [readability/casting] [4]

void* parameterP, void** resultP) {
imsi64_t imsi64 = INVALID_IMSI64;
imsi64_t* target_imsi64 = (imsi64_t*)parameterP;
ue_description_t* ue_ref = (ue_description_t*)elementP;
UeDescription* ue_ref = (UeDescription*)elementP;
Copy link

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use reinterpret_cast<UeDescription*>(...) instead [readability/casting] [4]

@rsarwad rsarwad force-pushed the 11191_move_ue_context branch 2 times, most recently from f274d37 to d7925b0 Compare August 4, 2022 07:01
@rsarwad rsarwad force-pushed the 11191_move_ue_context branch from d7925b0 to fafd30f Compare August 4, 2022 09:51
@rsarwad rsarwad force-pushed the rsarwad_migrate_state_ue_ht_s1ap branch from 4d2837d to 68afe56 Compare August 4, 2022 13:59
rsarwad and others added 6 commits August 30, 2022 20:16
* chore(agw): Clean up unnecessary Make commands: build_c and test_c

Signed-off-by: Lars Kreutzer <[email protected]>

* chore(agw): Clean up unnecessary Make commands: clang_tidy_oai and clang_tidy_oai_upload

Signed-off-by: Lars Kreutzer <[email protected]>

* chore(agw): Clean up unnecessary Make commands: build_oai_clang and clang_warning_oai_upload

Signed-off-by: Lars Kreutzer <[email protected]>

* chore(agw): Clean up unnecessary Make commands: help

Signed-off-by: Lars Kreutzer <[email protected]>

* chore(agw): Clean up unnecessary Make commands: log, logs and status

Signed-off-by: Lars Kreutzer <[email protected]>

* chore(agw): Clean up unnecessary Make commands: precommit_sm and precommit_oai

Signed-off-by: Lars Kreutzer <[email protected]>

* chore(agw): Clean up unnecessary Make commands: scan_oai

Signed-off-by: Lars Kreutzer <[email protected]>

* chore(agw): Clean up unnecessary Make commands: smf_build

Signed-off-by: Lars Kreutzer <[email protected]>

Signed-off-by: Lars Kreutzer <[email protected]>
Modified code to replace hashtable with protobuf map for state_ue hash table in s1ap module
@@ -1,7 +1,7 @@
ARG ENV=standard
FROM python:3.9.2-slim-buster as protos-generator

RUN apt-get update && apt-get install -y --no-install-recommends curl=7.64.0-4+deb10u2 zip=3.0-11+b1 make=4.2.1-1.2 unzip=6.0-23+deb10u2
RUN apt-get update && apt-get install -y --no-install-recommends curl zip make unzip
Copy link

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3008> reported by reviewdog 🐶
Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

@@ -1,7 +1,7 @@
ARG ENV=standard
FROM python:3.9.2-slim-buster as protos-generator

RUN apt-get update && apt-get install -y --no-install-recommends curl=7.64.0-4+deb10u2 zip=3.0-11+b1 make=4.2.1-1.2 unzip=6.0-23+deb10u2
RUN apt-get update && apt-get install -y --no-install-recommends curl zip make unzip
Copy link

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3008> reported by reviewdog 🐶
Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

@@ -1,7 +1,7 @@
ARG ENV=standard
FROM python:3.9.2-slim-buster as protos-generator

RUN apt-get update && apt-get install -y --no-install-recommends curl=7.64.0-4+deb10u2 zip=3.0-11+b1 make=4.2.1-1.2 unzip=6.0-23+deb10u2
RUN apt-get update && apt-get install -y --no-install-recommends curl zip make unzip
Copy link

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3008> reported by reviewdog 🐶
Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

environment:
- MAGMA_DEV_MODE=1

monitord:
Copy link

Choose a reason for hiding this comment

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

[misspell] reported by reviewdog 🐶
"monitord" is a misspelling of "monitored"

/dp/{network_id}/cbsds/{cbsd_id}/relinquish:
post:
parameters:
- $ref: '#/parameters/network_id'
Copy link

Choose a reason for hiding this comment

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

[yamllint] reported by reviewdog 🐶
[error] wrong indentation: expected 8 but found 6 (indentation)

$ref: '#/responses/UnexpectedError'
summary: Force relinquish all grants in SAS of given CBSD
tags:
- cbsds
Copy link

Choose a reason for hiding this comment

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

[yamllint] reported by reviewdog 🐶
[error] wrong indentation: expected 8 but found 6 (indentation)

@rsarwad rsarwad force-pushed the 11191_move_ue_context branch from 441db76 to 9c6abcf Compare September 2, 2022 12:01
LKreutzer and others added 2 commits September 2, 2022 13:23
…ow (magma#13803)

Signed-off-by: Lars Kreutzer <[email protected]>
Co-authored-by: Lars Kreutzer [email protected]
Co-authored-by: Krisztián Varga [email protected]

Signed-off-by: Lars Kreutzer <[email protected]>
… for feg and systemd magmad for agw. So the detection fails. (magma#13781)

Signed-off-by: Christian Krämer <[email protected]>

Signed-off-by: Christian Krämer <[email protected]>
wolfseb and others added 26 commits September 15, 2022 09:55
* feat(agw): envoy controller is dockerized

Signed-off-by: Christian Krämer <[email protected]>

* feat(agw): envoy namespace is now configured by the envoy service

Signed-off-by: Christian Krämer <[email protected]>

* feat(agw): install dhclient in pipelined container

Signed-off-by: Sebastian Wolf <[email protected]>

Signed-off-by: Christian Krämer <[email protected]>
Signed-off-by: Sebastian Wolf <[email protected]>
Co-authored-by: Christian Krämer <[email protected]>
Co-authored-by: Marco Pfirrmann <[email protected]>
)

* feat(agw): restart functions can now handle docker containers and systemd services

Signed-off-by: Marco Pfirrmann <[email protected]>

* feat(agw): handling of redis states is improved

Signed-off-by: Marco Pfirrmann <[email protected]>

* feat(agw): cleanup redis if not empty

Signed-off-by: Marco Pfirrmann <[email protected]>

* feat(agw): service restart is adapted to new syntax

Signed-off-by: Marco Pfirrmann <[email protected]>

Signed-off-by: Marco Pfirrmann <[email protected]>
Signed-off-by: Jarosław Jaszczuk <[email protected]>

Signed-off-by: Jarosław Jaszczuk <[email protected]>
Signed-off-by: Tomasz Gromowski <[email protected]>

Signed-off-by: Tomasz Gromowski <[email protected]>
* feat(dp): Implement GetState in DP orc8r service

Signed-off-by: Wojciech Sadowy <[email protected]>

* fixes

Signed-off-by: Wojciech Sadowy <[email protected]>

* adding test with more cbsds and grants

Signed-off-by: Wojciech Sadowy <[email protected]>

* fixes after rebase

Signed-off-by: Wojciech Sadowy <[email protected]>

Signed-off-by: Wojciech Sadowy <[email protected]>
Co-authored-by: Wojciech Sadowy <[email protected]>
Signed-off-by: Tomasz Gromowski <[email protected]>

Signed-off-by: Tomasz Gromowski <[email protected]>
Previously AMC used additional grpc service to communicate
with the database, but it was inefficient.

Signed-off-by: Kuba Marciniszyn <[email protected]>

Signed-off-by: Kuba Marciniszyn <[email protected]>
Signed-off-by: Oleksandr Berezovskyi <[email protected]>

Signed-off-by: Oleksandr Berezovskyi <[email protected]>
Signed-off-by: Wojciech Sadowy <[email protected]>

Signed-off-by: Wojciech Sadowy <[email protected]>
Co-authored-by: Wojciech Sadowy <[email protected]>
* test(cwag): Modified quotas

- Make `TestGyCreditExhaustionRedirect` more stable by reducing the quota and the requested data volume.
- Larger data requests are more likely to fail.
- test(cwag): Reformatted comments
Sort all installed packages alphabetically, remove duplicates, and add
explicit cleanup after installing

Signed-off-by: Sebastian Wolf <[email protected]>

Signed-off-by: Sebastian Wolf <[email protected]>
Downgrade grpcio in
- setup.py
- build script
- bazel setup

Signed-off-by: Sebastian Thomas <[email protected]>
* chore(ci): Add a new CI workflow for running integ tests against magma debian installation

Signed-off-by: Alex Jahl <[email protected]>

* chore(ci): Improve comparison with None

Signed-off-by: Cameron Voisey <[email protected]>

Signed-off-by: Alex Jahl <[email protected]>
Signed-off-by: Cameron Voisey <[email protected]>
Co-authored-by: Cameron Voisey <[email protected]>
…13917)

* fix(nms): Improve sync of NMS organizations and orc8r tenants

- Sync all changes of NMS organization to orc8rs
- Add documentation that orc8r tenant API should not be used to
  modify tenants
- Fix wrong description in NMS organization edit dialog

Signed-off-by: Sebastian Thomas <[email protected]>

* fix(nms): Improve sync of NMS organizations and orc8r tenants

- Sync all changes of NMS organization to orc8rs
- Add documentation that orc8r tenant API should not be used to
  modify tenants
- Fix wrong description in NMS organization edit dialog

Signed-off-by: Sebastian Thomas <[email protected]>
* fix(agw): the envoy controller is in the feg image

Signed-off-by: Fritz Lehnert <[email protected]>

* fix(agw): only 1 go service does not need abstraction

Signed-off-by: Fritz Lehnert <[email protected]>
Signed-off-by: Nils Semmelrock <[email protected]>

Signed-off-by: Nils Semmelrock <[email protected]>
…p/hpp and also removed unused structure, deactivated_predefined_pcc_rules (magma#13943)

Signed-off-by: Rashmi <[email protected]>
* feat(amf): Support for Protocol Configuration Options IE

Signed-off-by: sreedharkumartn <[email protected]>

* Addressed Review Comments (R1)

Signed-off-by: sreedharkumartn <[email protected]>

* Addressed Review Comments (R2)

Signed-off-by: sreedharkumartn <[email protected]>

Signed-off-by: sreedharkumartn <[email protected]>
"health",
"kernsnoopd",
"mobilityd",
"monitord",

Choose a reason for hiding this comment

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

[misspell] reported by reviewdog 🐶
"monitord" is a misspelling of "monitored"

@rsarwad rsarwad force-pushed the 11191_move_ue_context branch from 9bafb19 to 555307b Compare September 20, 2022 14:56
@rsarwad rsarwad force-pushed the 11191_move_ue_context branch from 555307b to 59c836c Compare September 20, 2022 16:34
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.