-
Notifications
You must be signed in to change notification settings - Fork 592
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
feat(agw): Create magma VM based on debian package #13552
Conversation
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
# TODO: GH13551. Ugly workaround to prevent service failures because of memory leaks | ||
sed -i 's/\[Service\]/[Service]\nEnvironment="LSAN_OPTIONS=detect_leaks=0"/' /etc/systemd/system/magma@mme.service |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workaround suppresses all memory leaks, which is not a good idea. It will be better to suppress only the two known issues in libfluid and libczmq, but highlight if new memory leaks come up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the comment. In the end, we've decided to remove this line entirely since we've found that connection is lost with pipelined even with it. We propose to merge this PR as a first attempt and then to have a more detailed look at this in future PRs (already planned), when we try to use this in the CI to execute integration tests. Does this sound okay to you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@voisey , do you plan to remove this line as part of this PR, or future PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've now removed it from this PR.
03611f1
to
6112bf0
Compare
lte/gateway/deploy/roles/magma_deb/files/post_install_changes.sh
Outdated
Show resolved
Hide resolved
6f38419
to
7e2cead
Compare
@nstng @ssanadhya The migration of the shell script to ansible is done, so this should be ready for review now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - I can run integration tests vs magma_deb. I can reproduce that (very often) when one test fails then a couple follow up tests will fail because pipelined is not reachable. I agree that this issue can and shout be better analyzed when a setup is created to use magma_deb in CI.
- { src: 'orc8r/tools/ansible/roles/fluent_bit/files/magma_td-agent-bit.service', dest: 'magma@td-agent-bit.service' } | ||
- { src: 'lte/gateway/deploy/roles/magma/files/systemd/magma_dp_envoy.service', dest: 'magma_dp@envoy.service' } | ||
|
||
- name: Reload magmad to apply service file changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This step is redundant if you are eventually rebooting the system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for spotting that, I've just removed it.
@voisey , what's the purpose of 'magma_deploy' role? |
It's for installing a magma debian package (and some additional dependencies and configuration). The role is used in the official magma install script |
7e2cead
to
9c005e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm, with minor comments
Signed-off-by: Cameron Voisey <cameron.voisey@tngtech.com>
9c005e9
to
893a16d
Compare
Summary
Closes #13263.
Known issues associated with this PR:
agw_install_ubuntu.sh
is basically duplicated intoagw_install_ubuntu_vm.sh
andagw_network_ubuntu.sh
. The reason is that theagw_install_ubuntu.sh
is the official installation script and it seems wrong to mix this with planned CI set-up. A flag was introduced into the magma_deploy role to get around this.Test Plan
lte/gateway $ vagrant up magma_deb
+ same for magma_test + magma_trfserver + execute all relevant integration testsprecommit
andextended
LTE integ tests ran green locally at least once