bloomberg / goldpinger

Debugging tool for Kubernetes which tests and displays connectivity between nodes in the cluster.
Apache License 2.0
2.53k stars 179 forks source link

goldpinger does not support v6 ping #136

Open paulyufan2 opened 1 year ago

paulyufan2 commented 1 year ago

Describe the bug I am trying to use goldpinger to test ipv6 connectivity between pods in Azure. I add "IP_VERSIONS" to my deployment yaml file:


    spec:
        containers:
          - name: goldpinger
            env:
              - name: HOST
                value: "0.0.0.0"
              - name: PORT
                value: "8080"
              **- name: IP_VERSIONS
                value: "6"**

When I start testing, I found from goldpingerClient to get clusterState, it does not contain ipv6 address and it only does ipv4 ping. When I read goldpinger library, I see podResult only takes ipv4 address, so it will not do ipv6 test for podResult:
https://github.com/bloomberg/goldpinger/blob/master/pkg/goldpinger/pinger.go#L77

Can anyone help check if we already support this feature or not and if so, how we can use it?

Thanks!

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
ipv6 ping should get executed

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**
 - Operating System and Version: [e.g. Ubuntu Linux 22.04]
 - Browser [e.g. Firefox, Safari] (if applicable):

**Additional context**
Add any other context about the problem here.