Skip to content

Commit

Permalink
Upgrade gtp5g version and enable verifiers (#261)
Browse files Browse the repository at this point in the history
* Get dmesg differences on failures

Signed-off-by: Victor Morales <v.morales@samsung.com>

* Bumpt gtp5g version to 0.8.8

Signed-off-by: Victor Morales <v.morales@samsung.com>

* Add assertion to check kernel version in gtp5g playbook

Signed-off-by: Victor Morales <v.morales@samsung.com>

---------

Signed-off-by: Victor Morales <v.morales@samsung.com>
  • Loading branch information
electrocucaracha authored Apr 27, 2024
1 parent d900b40 commit 20ffd51
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
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

0 comments on commit 20ffd51

Please sign in to comment.