Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

netstack3-tests fail with error `Failed to retrieve endpoint`

52 views
Skip to first unread message

Y Matsuda

unread,
May 13, 2021, 8:42:04 PM5/13/21
to connectivity-dev
Hi team,

Some `netstack3-tests` tests fail with the same errors below:

```
thread 'main' panicked at 'Test Setup succeeds: Failed to retrieve endpoint alice', ../../src/connectivity/network/netstack3/src/bindings/icmp/provider.rs:399:14
```
(endpoint name and line number depend on each tasts)

EndpointManager seems to return None when its get_endpoint() called.


Logs:
 - fidlcat(fx fidlcat --remote-name=netstack3-bin-test.cmx): https://drive.google.com/file/d/1iHHnHZMWJ1YfMofhmBTtZJU2PzD30lsn/view?usp=sharing

Steps to reproduce:
```
[shell-A]
$ fx set core.qemu-x64 --with //src/connectivity/network/netstack3:netstack3 --with //src/connectivity/network/netstack3:netstack3-tests --ccache
$ fx build
$ sudo ip tuntap add dev qemu mode tap user $USER
$ sudo ip link set qemu up
$ fx qemu -N
[00008.277] 19147:19149> mDNS: Using unique host name fuchsia-5254-0063-5e7a.local.

[shell-B]
$ fx set-device fuchsia-5254-0063-5e7a
$ fx serve

[shell-C]
$ fx test netstack3-tests
```

What I tried:
```
$ sudo ip tuntap add dev qemu-extra mode tap user $USER
$ sudo ip link set qemu-extra up
$ fx qemu -kN -- -nic tap,ifname=qemu-extra,model=e1000
$ fx set-device fuchsia-5254-0012-3456
$ fx test netstack3-tests
[same errors]
```

Environment:
```
$ uname -a
Linux ymatsuda-dpc 5.8.0-53-generic #60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
VERSION_CODENAME=focal
$ git status
HEAD detached at f76e1188bd3
nothing to commit, working tree clean
```

Something missing settings or packages?

thank you for your support,
ymatsuda

Y Matsuda

unread,
May 23, 2021, 7:33:25 PM5/23/21
to connectivity-dev, Y Matsuda
Oh sorry, I solved it myself.
It seems that the testing modules was just missing, and it worked fine by the following commands:

```
$ fx set core.qemu-x64 --with //src/connectivity:connectivity --ccache
```

2021年5月14日金曜日 9:42:04 UTC+9 Y Matsuda:

Joshua Liebow-Feeser

unread,
May 24, 2021, 1:15:22 PM5/24/21
to Y Matsuda, connectivity-dev
Hi ymatsuda,

Thanks for your report, and glad you were able to figure out the issue! You shouldn't have run into this problem, so I'll consider this a bug report and we'll look into making it so that other folks don't run into this issue in the future 🙂

Cheers,
Josh

--
All posts must follow the Fuchsia Code of Conduct https://fuchsia.dev/fuchsia-src/CODE_OF_CONDUCT or may be removed.
---
You received this message because you are subscribed to the Google Groups "connectivity-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to connectivity-d...@fuchsia.dev.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/connectivity-dev/5ac594dd-cb53-4ba2-9e3c-d945ffd414d1n%40fuchsia.dev.
Reply all
Reply to author
Forward
0 new messages