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

Upgrade gtp5g version and enable verifiers #261

Merged
merged 3 commits into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions e2e/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ source "$LIBDIR/testing.sh"

failed=$((0))
test_summary=""
sudo dmesg >/tmp/e2e_dmesg_base.log
for t in $TESTDIR/*.sh; do
if ! run_test "$t"; then
failed=$((failed + 1))
[[ ${FAIL_FAST:-false} != "true" ]] || break
fi
sudo dmesg >/tmp/e2e_dmesg_base.log
done
echo "TEST SUMMARY"
echo "------------"
Expand Down
5 changes: 5 additions & 0 deletions e2e/provision/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ function get_status {
docker stats --no-stream
docker ps --size
fi
if [ -f /tmp/e2e_dmesg_base.log ]; then
echo "Kernel diagnostic messages:"
sudo dmesg >/tmp/e2e_dmesg_current.log
diff /tmp/e2e_dmesg_base.log /tmp/e2e_dmesg_current.log
fi
if command -v kubectl >/dev/null; then
echo "Draft Porch Package Revisions"
kubectl get packagerevision -o jsonpath='{range .items[?(@.spec.lifecycle=="Draft")]}{.metadata.name}{"\n"}{end}' || :
Expand Down
2 changes: 1 addition & 1 deletion e2e/provision/playbooks/roles/bootstrap/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ host_reqs:
container_engine: docker

gtp5g_dest: /opt/gtp5g
gtp5g_version: v0.8.3
gtp5g_version: v0.8.8
gtp5g_tarball_url: "https://github.com/free5gc/gtp5g/archive/refs/tags/{{ gtp5g_version }}.tar.gz"

k8s:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
- "{{ ansible_os_family | lower }}.yml"
skip: true

- name: Ensure gtp5g kernel constraints
ansible.builtin.assert:
that: 'ansible_facts.kernel == "5.0.0-23-generic" or {{ ansible_facts.kernel | replace("-generic", "") is version("5.4", ">=") }}'
fail_msg: "{{ ansible_facts.kernel }} version not supported by gtp5g module"

- name: Install compilation packages and kernel development tools on {{ ansible_os_family }}
become: true
ansible.builtin.package:
Expand Down