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

Fail test module when taps manager fails #156

Open
shyamjesal opened this issue Mar 2, 2021 · 0 comments
Open

Fail test module when taps manager fails #156

shyamjesal opened this issue Mar 2, 2021 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@shyamjesal
Copy link
Collaborator

shyamjesal commented Mar 2, 2021

make: Entering directory '/home/runner/work/vhive/vhive/taps'
# Need to pass GOROOT because GitHub-hosted runners may have several
# go versions installed so that calling go from root may fail
sudo env "PATH=/home/runner/go/bin:/opt/hostedtoolcache/go/1.15.8/x64/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/opt/pipx_bin:/usr/share/rust/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" "GOROOT=/opt/hostedtoolcache/go/1.15.8/x64" go test ./ -v -race -cover
go: downloading golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd
go: downloading github.com/stretchr/testify v1.7.0
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
=== RUN   TestCreateCleanBridges
time="2021-03-02T10:26:58.740621479Z" level=info msg="Registering bridges for tap manager"
time="2021-03-02T10:26:58.754767451Z" level=info msg="Removing bridges"
--- PASS: TestCreateCleanBridges (0.13s)
=== RUN   TestCreateRemoveTaps
time="2021-03-02T10:26:58.872944768Z" level=info msg="Registering bridges for tap manager"
time="2021-03-02T10:27:07.823428412Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:07.829389721Z" level=error msg="Could not create tap, because corresponding bridge does not exist" bridge=br0 tap=tap_162
time="2021-03-02T10:27:07.829855837Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_413
time="2021-03-02T10:27:07.829983942Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_415
time="2021-03-02T10:27:07.832220420Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:07.833430863Z" level=warning msg="Failed to fetch host net interfaces open /dev/null: too many open files\n\n"
time="2021-03-02T10:27:07.842105468Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_417
...
time="2021-03-02T10:27:07.844889266Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_450
time="2021-03-02T10:27:07.845206777Z" level=warning msg="Failed to configure NAT open /dev/null: too many open files\n\n"
time="2021-03-02T10:27:07.881599255Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:07.884740666Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_455
time="2021-03-02T10:27:07.884869670Z" level=error msg="Master could not be set" bridge=br0 tap=tap_389
time="2021-03-02T10:27:07.886375823Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:07.890996585Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_457
...
time="2021-03-02T10:27:07.893791784Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_492
time="2021-03-02T10:27:07.874682612Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:07.891917518Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_471
time="2021-03-02T10:27:07.894566711Z" level=warning msg="Failed to fetch host net interfaces fork/exec /sbin/route: too many open files\n\n"
time="2021-03-02T10:27:07.893218664Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_484
time="2021-03-02T10:27:07.877036295Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:07.892216628Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_470
time="2021-03-02T10:27:07.892604942Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_479
time="2021-03-02T10:27:07.893899287Z" level=warning msg="Failed to fetch host net interfaces fork/exec /sbin/route: too many open files\n\n"
time="2021-03-02T10:27:07.913021559Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:07.998933678Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_548
time="2021-03-02T10:27:08.004650879Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.081958193Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_504
time="2021-03-02T10:27:08.083618552Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_503
time="2021-03-02T10:27:08.096506704Z" level=error msg="Could not create tap, because corresponding bridge does not exist" bridge=br0 tap=tap_314
time="2021-03-02T10:27:08.097268131Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_515
time="2021-03-02T10:27:08.097377135Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_511
time="2021-03-02T10:27:08.097687046Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.100031328Z" level=error msg="Could not create tap, because corresponding bridge does not exist" bridge=br0 tap=tap_214
time="2021-03-02T10:27:08.102349609Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_522
...
time="2021-03-02T10:27:08.108978842Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_549
time="2021-03-02T10:27:08.109248051Z" level=warning msg="Failed to configure NAT open /dev/null: too many open files\n\n"
time="2021-03-02T10:27:08.109699867Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.110293988Z" level=warning msg="Failed to fetch host net interfaces fork/exec /sbin/route: too many open files\n\n"
time="2021-03-02T10:27:08.110785505Z" level=error msg="Tap could not be enabled" bridge=br0 tap=tap_412
time="2021-03-02T10:27:08.228577242Z" level=error msg="Could not create tap, because corresponding bridge does not exist" bridge=br0 tap=tap_326
time="2021-03-02T10:27:08.229491474Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.266271065Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_558
...
time="2021-03-02T10:27:08.297141249Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_676
time="2021-03-02T10:27:08.297439660Z" level=warning msg="Failed to configure NAT open /dev/null: too many open files\n\n"
time="2021-03-02T10:27:08.332547893Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.335201886Z" level=error msg="Master could not be set" bridge=br0 tap=tap_500
time="2021-03-02T10:27:08.335369492Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_496
time="2021-03-02T10:27:08.335406593Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_501
time="2021-03-02T10:27:08.335811607Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_505
time="2021-03-02T10:27:08.335934612Z" level=warning msg="Failed to fetch host net interfaces open /dev/null: too many open files\n\n"
time="2021-03-02T10:27:08.337259358Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.340179261Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.349674294Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.355368794Z" level=warning msg="Failed to fetch host net interfaces open /dev/null: too many open files\n\n"
time="2021-03-02T10:27:08.355492299Z" level=warning msg="Failed to fetch host net interfaces open /dev/null: too many open files\n\n"
time="2021-03-02T10:27:08.355549801Z" level=error msg="Could not set MAC address" bridge=br0 tap=tap_374
time="2021-03-02T10:27:08.355642004Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.355797109Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.357486269Z" level=error msg="Master could not be set" bridge=br0 tap=tap_386
...
time="2021-03-02T10:27:08.359272831Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_545
time="2021-03-02T10:27:08.359592442Z" level=warning msg="Failed to configure NAT open /dev/null: too many open files\n\n"
time="2021-03-02T10:27:08.359835451Z" level=warning msg="Failed to fetch host net interfaces open /dev/null: too many open files\n\n"
time="2021-03-02T10:27:08.359918954Z" level=error msg="Tap could not be enabled" bridge=br0 tap=tap_498
time="2021-03-02T10:27:08.369550792Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.373053015Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.375057486Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_680
...
time="2021-03-02T10:27:08.408398556Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_610
time="2021-03-02T10:27:08.409120182Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.409488495Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.411600469Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.412165789Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.474825589Z" level=warning msg="Failed to fetch host net interfaces fork/exec /sbin/route: too many open files\n\n"
time="2021-03-02T10:27:08.491117661Z" level=error msg="Tap could not be enabled" bridge=br0 tap=tap_393
time="2021-03-02T10:27:08.492045294Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.492999727Z" level=warning msg="Failed to fetch host net interfaces pipe2: too many open files\n\n"
time="2021-03-02T10:27:08.509867219Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_733
...
time="2021-03-02T10:27:08.523110185Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_667
time="2021-03-02T10:27:08.523458797Z" level=warning msg="Failed to fetch host net interfaces open /dev/null: too many open files\n\n"
time="2021-03-02T10:27:08.523646003Z" level=warning msg="Failed to fetch host net interfaces open /dev/null: too many open files\n\n"
time="2021-03-02T10:27:08.523684005Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_675
time="2021-03-02T10:27:08.524067418Z" level=warning msg="Failed to fetch host net interfaces open /dev/null: too many open files\n\n"
time="2021-03-02T10:27:08.524297726Z" level=warning msg="Failed to fetch host net interfaces open /dev/null: too many open files\n\n"
time="2021-03-02T10:27:08.524483233Z" level=warning msg="Failed to fetch host net interfaces open /dev/null: too many open files\n\n"
time="2021-03-02T10:27:08.524791744Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_614
...
time="2021-03-02T10:27:08.553545353Z" level=error msg="Tap could not be created" bridge=br0 tap=tap_656
time="2021-03-02T10:27:29.191265213Z" level=warning msg="Could not find tap" tap=tap_974
...
time="2021-03-02T10:27:29.363167371Z" level=warning msg="Could not find tap" tap=tap_1051
time="2021-03-02T10:27:31.886977822Z" level=info msg="Removing bridges"
--- PASS: TestCreateRemoveTaps (33.62s)
=== RUN   TestCreateRemoveExtra
    taps_test.go:86: Test disabled due to execution failure in GitHub Actions and it doesn't seem essential for the test coverage
--- SKIP: TestCreateRemoveExtra (0.00s)
PASS
coverage: 81.0% of statements
@ustiugov ustiugov added bug Something isn't working help wanted Extra attention is needed labels Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
vHive Roadmap
  
Awaiting triage
Development

No branches or pull requests

2 participants