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

Cannot assign requested address on first test run after creating bridge #2290

Open
alfreb opened this issue Nov 22, 2024 · 0 comments
Open
Labels

Comments

@alfreb
Copy link
Contributor

alfreb commented Nov 22, 2024

The first test run after creating the network bridge fails every time. Subsequent runs succeed.

Repro:

  1. If you already have bridge43, delete it: sudo ip link delete bridge43
  2. create the bridge with e.g. ~/vmrunner/vmrunner/bin/create_bridge.sh
  3. Now run the test: nix-shell --pure $CCACHE_FLAG --argstr unikernel ./test/net/integration/udp --run ./test.py
<vm> [ UDP test service ] Listening on port 4242
<Test.py> Performing UDP6 tests
[ WARNING ] Exception raised in event callback:
Traceback (most recent call last):
  File "/nix/store/aw5c2j3q34fd8fnm7s2qdwipxddi40ll-python3-3.11.9-env/lib/python3.11/site-packages/vmrunner/vmrunner.py", line 1081, in trigger_event
    res = func(line)
          ^^^^^^^^^^
  File "/run/user/1001/tmp.6FGGRVPn6n/./test.py", line 75, in UDP6_test
    sock.sendto(data, addr)
OSError: [Errno 99] Cannot assign requested address
@alfreb alfreb added the Bug label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant