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

Outgoing local filter breaks all outgoing connections #2283

Closed
Razz4780 opened this issue Mar 1, 2024 · 0 comments · Fixed by #2285
Closed

Outgoing local filter breaks all outgoing connections #2283

Razz4780 opened this issue Mar 1, 2024 · 0 comments · Fixed by #2285
Assignees
Labels
bug Something isn't working

Comments

@Razz4780
Copy link
Contributor

Razz4780 commented Mar 1, 2024

Bug Description

When using an outgoing local filter with a hostname that does not exist locally, all outgoing connections seem to be broken.

Example config:

{
    "feature": {
        "network": {
            "outgoing": {
                "tcp": true,
                "filter": {
                    "local": ["i-do-not-exist-at-all"]
                }
            },
            "dns": true
        }
    }
}

Example app:

use std::net::TcpStream;

fn main() {
    let _stream = TcpStream::connect("py-serv:80").expect("py-serv should exist in the cluster");
}

Steps to Reproduce

  1. Deploy the py-serv service in the cluster
  2. Run the example app and config from bug description
  3. TcpStream::connect fails with Os { code: 5, kind: Uncategorized, message: "Input/output error" }. Layer prints 2024-03-01T10:28:50.776415Z ERROR ThreadId(01) mirrord_layer::error: Error occured in Layer >> IO(Custom { kind: Uncategorized, error: "failed to lookup address information: Temporary failure in name resolution" })

Backtrace

No response

Relevant Logs

No response

Your operating system and version

Linux 6.5.0-21-generic #21~22.04.1-Ubuntu

Local process


Local process version

No response

Additional Info

No response

@Razz4780 Razz4780 added the bug Something isn't working label Mar 1, 2024
@Razz4780 Razz4780 self-assigned this Mar 1, 2024
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

Successfully merging a pull request may close this issue.

1 participant