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

Failed to connect to http.neofs.devenv port 80 after 0 ms: Connection refused #523

Closed
vvarg229 opened this issue Mar 20, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@vvarg229
Copy link
Collaborator

vvarg229 commented Mar 20, 2023

Tests fail with an error:
curl: (7) Failed to connect to http.neofs.devenv port 80 after 0 ms: Connection refused

On step "Upload via HTTP Gate using Curl"

RuntimeError: Command: curl -F 'file=@/home/varg/work/neofs-testcases/TemporaryDir/832f5087-cf2f-498e-ad85-26881d6d9225;filename=832f5087-cf2f-498e-ad85-26881d6d9225'  -H 'Authorization: Bearer CoABCnYKABIiCiBc6kJ8op+wgAYvANAI+F890b04ft95SXaHudOIQ4mzeBoICAMQASICCAMaCAgBEAEiAggDGggIAhABIgIIAxoICAYQASICCAMaCAgHEAEiAggDGggIBRABIgIIAxoICAQQASICCAMaCAgDEAIiAggDGgYIlJEGEAESZgohArR+jwTA3RT14S5vARSruo2PmKmTdqo6MwJv7Qq+pK4nEkEEALFf2TVAxcMYaoBNK0Wj74dl7sE6j8DYKcWbXEn+sBbix/EwYuUw0Z4xzUVld9xk5MrFmkcnIxjkrhbapR1ggQ==' http://http.neofs.devenv/upload/7FhgwhM6fLJyjYiCfwezYDbyXMhiHo6XAfRZ5L8JUMKm
Error:
return code: 7
Output:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to http.neofs.devenv port 80 after 0 ms: Connection refused

But http.neofs.devenv is alive:

$ ping http.neofs.devenv
PING http.neofs.devenv (192.168.100.81) 56(84) bytes of data.
64 bytes from http.neofs.devenv (192.168.100.81): icmp_seq=1 ttl=64 time=0.093 ms
64 bytes from http.neofs.devenv (192.168.100.81): icmp_seq=2 ttl=64 time=0.042 ms
64 bytes from http.neofs.devenv (192.168.100.81): icmp_seq=3 ttl=64 time=0.037 ms

$ docker ps | grep http
7187b4c53c5a   nspccdev/neofs-http-gw:0.26.0   "/bin/neofs-http-gw"     23 minutes ago   Up 23 minutes                                            http_gate

 docker logs 7187b4c53c5a
2023-03-20T20:28:02.389Z        info    neofs-http-gw/app.go:157        add connection  {"address": "s01.neofs.devenv:8080", "weight": 0.2, "priority": 1}
2023-03-20T20:28:02.389Z        info    neofs-http-gw/app.go:157        add connection  {"address": "s02.neofs.devenv:8080", "weight": 0.2, "priority": 1}
2023-03-20T20:28:02.389Z        info    neofs-http-gw/app.go:157        add connection  {"address": "s03.neofs.devenv:8080", "weight": 0.2, "priority": 1}
2023-03-20T20:28:02.389Z        info    neofs-http-gw/app.go:157        add connection  {"address": "s04.neofs.devenv:8080", "weight": 0.2, "priority": 1}
2023-03-20T20:28:02.438Z        warn    neofs-http-gw/app.go:204        resolver 'nns' won't be used since 'rpc_endpoint' isn't provided
2023-03-20T20:28:02.438Z        warn    neofs-http-gw/app.go:221        metrics are disabled
2023-03-20T20:28:02.438Z        info    neofs-http-gw/app.go:330        starting application    {"app_name": "neofs-http-gw", "version": "v0.26.0"}
2023-03-20T20:28:02.438Z        info    neofs-http-gw/app.go:452        added path /upload/{cid}
2023-03-20T20:28:02.438Z        info    neofs-http-gw/app.go:455        added path /get/{cid}/{oid}
2023-03-20T20:28:02.439Z        info    neofs-http-gw/app.go:458        added path /get_by_attribute/{cid}/{attr_key}/{attr_val:*}
2023-03-20T20:28:02.439Z        info    neofs-http-gw/app.go:460        added path /zip/{cid}/{prefix}
2023-03-20T20:28:02.439Z        info    metrics/service.go:33   service hasn't started since it's disabled {"service": "Pprof"}
2023-03-20T20:28:02.439Z        info    metrics/service.go:33   service hasn't started since it's disabled {"service": "Prometheus"}
2023-03-20T20:28:02.440Z        info    neofs-http-gw/app.go:490        added server    {"address": "0.0.0.0:8080", "tls enabled": false, "tls cert": "", "tls key": ""}
2023-03-20T20:28:02.440Z        info    neofs-http-gw/app.go:353        starting server {"address": "0.0.0.0:8080"}

Allure report:
connection_refused.zip

It is possible that this is the reason for the issue #524

@vvarg229 vvarg229 added testcases bug Something isn't working labels Mar 20, 2023
@vvarg229 vvarg229 self-assigned this Mar 20, 2023
roman-khimov added a commit that referenced this issue Mar 21, 2023
Tests that fail with the error "Failed to connect to http.neofs.devenv
port 80 after 0 ms" are marked as skip.
These tests are also marked as nspcc_dev__neofs_testcases__issue_523.
See #523 for details.
@vvarg229 vvarg229 removed their assignment Mar 22, 2023
@vvarg229
Copy link
Collaborator Author

There are more tests that end with the same error.

Some tests end with an error like this, but it seems to me that the root cause is the same:
requests.exceptions.ConnectionError: HTTPConnectionPool(host='http.neofs.devenv', port=80): Max retries exceeded with url: /upload/57mEx1vNuKHoFy3Qb9cj9txTvt7jX667KChGRt2mWKH2 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fdd6efcdf00>: Failed to establish a new connection: [Errno 111] Connection refused'))

Allure report:
Connection_refused.zip

roman-khimov added a commit that referenced this issue Mar 22, 2023
All tests in test_http_bearer, test_http_gate and test_http_headers
suites fail with errors "Failed to connect to http.neofs.devenv port 80"
or "Failed to establish a new connection", so they are marked as skip.
These tests are also marked as nspcc_dev__neofs_testcases__issue_523.
See #523 for details.
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue May 5, 2023
This commit removes the @pytest.mark.skip and issue_* decorators that were
temporarily skipping tests related to specific issues. The problems
associated with these tests have been resolved in the neofs-node project,
allowing them to be executed along with other tests.

List of removed issues:
nspcc-dev/neofs-node#2262
nspcc-dev#519
nspcc-dev#520
nspcc-dev#521
nspcc-dev#523
nspcc-dev#524
nspcc-dev#533
nspcc-dev#539
https://j.yadro.com/browse/OBJECT-628

But according to the results of test runs added issues, here is their list:
nspcc-dev#535
nspcc-dev#537
nspcc-dev#542
nspcc-dev#544
nspcc-dev#558
nspcc-dev#559

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
@vvarg229
Copy link
Collaborator Author

Fixed:
vvarg229@f2a5a93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant