[PATCH] osmo-gsm-tester[master]: Set osmo-ggsn ipv6 link-local addr and enable ipv6 ctx activ...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Fri Dec 15 11:15:32 UTC 2017


Review at  https://gerrit.osmocom.org/5387

Set osmo-ggsn ipv6 link-local addr and enable ipv6 ctx activate test

osmo-ggsn requires a link-local IPv6 address to be added to the
tun interface, otherwise the apn will not be configured correctly and it
won't be able to allocate addresses from the ipv6 pool later on.
Some OS don't support autoconfiguring link-local IPv6 addresses when the
interface is brought up (some linux versions are known to fail at it).
This is the case for our Prod osmo-gsm-tester setup (running debian8
with kernel 3.16.51).

Make sure we configure correctly the interface by forcing osmo-ggsn to
set on the interface and use a specific IPv6 link-local address. This is
done by using the "ipv6 link-local" vty cmd in osmo-ggsn.

After this modification, we can re-enable ipv6 gprs context creation as
it will work in Prod setup.

Related: OS#2746

Change-Id: Ib291c02a3c57a4189f9c4b1b856109be97ad2a34
---
M src/osmo_gsm_tester/templates/osmo-ggsn.cfg.tmpl
M suites/gprs/ping.py
2 files changed, 5 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/87/5387/1

diff --git a/src/osmo_gsm_tester/templates/osmo-ggsn.cfg.tmpl b/src/osmo_gsm_tester/templates/osmo-ggsn.cfg.tmpl
index 1ee19d1..1692db6 100644
--- a/src/osmo_gsm_tester/templates/osmo-ggsn.cfg.tmpl
+++ b/src/osmo_gsm_tester/templates/osmo-ggsn.cfg.tmpl
@@ -56,6 +56,7 @@
   ipv6 dns 0 2001:4860:4860::8888
   ipv6 dns 1 2001:4860:4860::8844
   ipv6 ifconfig fde4:8dba:82e1:2000:0:0:0:0/56
+  ipv6 link-local fe80::1111:1111:1111:1111/64
   no shutdown
  apn inet46
   gtpu-mode tun
@@ -69,6 +70,7 @@
   ipv6 dns 0 2001:4860:4860::8888
   ipv6 dns 1 2001:4860:4860::8844
   ipv6 ifconfig fde4:8dba:82e1:2000:0:0:0:0/56
+  ipv6 link-local fe80::1111:1111:1111:1112/64
   no shutdown
  default-apn internet
  no shutdown ggsn
diff --git a/suites/gprs/ping.py b/suites/gprs/ping.py
index 5d2d847..1b6d85c 100755
--- a/suites/gprs/ping.py
+++ b/suites/gprs/ping.py
@@ -52,12 +52,11 @@
 # TODO: send ping to server or open TCP conn with a socket in python
 ms.deactivate_context(ctx_id_v4)
 
-# We disable ipv6 for now as osmo-ggsn is failing to create tun ipv6 device in Prod main unit (OS#2746)
 # We need to use inet46 since ofono qmi only uses ipv4v6 eua (OS#2713)
-# ctx_id_v6 = ms.activate_context(apn='inet46', protocol=ms.CTX_PROT_IPv6)
-# sleep(5)
+ctx_id_v6 = ms.activate_context(apn='inet46', protocol=ms.CTX_PROT_IPv6)
+sleep(5)
 # TODO: send ping to server or open TCP conn with a socket in python
-# ms.deactivate_context(ctx_id_v6)
+ms.deactivate_context(ctx_id_v6)
 
 # IPv46 (dual) not supported in ofono qmi: org.ofono.Error.Failed: Operation failed (36)
 # ctx_id_v46 = ms.activate_context(apn='inet46', protocol=ms.CTX_PROT_IPv46)

-- 
To view, visit https://gerrit.osmocom.org/5387
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib291c02a3c57a4189f9c4b1b856109be97ad2a34
Gerrit-PatchSet: 1
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list