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

feat: implement collector and analyser for network namespace connectivity #1670

Merged
merged 12 commits into from
Nov 6, 2024

Commits on Oct 31, 2024

  1. feat: implement collector and analyser for network namespace connecti…

    …vity
    
    checks if two network namespaces can talk to each other on udp and tcp.
    its usage is as follows:
    
    ```yaml
    apiVersion: troubleshoot.sh/v1beta2
    kind: SupportBundle
    metadata:
      name: test
    spec:
      hostCollectors:
      - networkNamespaceConnectivity:
          collectorName: check-network-connectivity
          fromCIDR: 10.0.0.0/24
          toCIDR: 10.0.1.0/24
      hostAnalyzers:
      - networkNamespaceConnectivity:
          collectorName: check-network-connectivity
          outcomes:
          - pass:
              message: "Communication between 10.0.0.0/24 and 10.0.1.0/24 is working"
          - fail:
              message: "Communication between 10.0.0.0/24 and 10.0.1.0/24 isn't working"
    ```
    
    if this fails then you may need to enable `forwarding` with:
    
    ```bash
    sysctl -w net.ipv4.ip_forward=1
    ```
    
    if it still fails then you may need to configure firewalld to allow the
    traffic or simply disable it for sake of testing.
    ricardomaraschini committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    7c92bf8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e10a71e View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2024

  1. Configuration menu
    Copy the full SHA
    c66c768 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1048513 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d4e4822 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2024

  1. Configuration menu
    Copy the full SHA
    c5e660e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5271efd View commit details
    Browse the repository at this point in the history
  3. feat: check both udp and tcp even on failure

    check both protocols even if one fails. this pr commit also introduces a
    timeout that can be set by the user.
    ricardomaraschini committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    4c349a4 View commit details
    Browse the repository at this point in the history
  4. feat: add templating to the failure outcome

    allow users to dump the errors found during the analysis.
    ricardomaraschini committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    e837418 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2024

  1. Configuration menu
    Copy the full SHA
    e891a89 View commit details
    Browse the repository at this point in the history
  2. feat: delete interface pair before namespace

    even though the interface pair is deleted everyttime we delete the
    namespace on my tests we better delete it before we delete the
    namespace.
    
    this comes out of a review comment where some people seem to still be
    able to see the interface pair even after the namespace is deleted.
    
    i.e. better safe than sorry.
    ricardomaraschini committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    0103d3a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e15a4fa View commit details
    Browse the repository at this point in the history