mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
* feat: implement collector and analyser for network namespace connectivity
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.
* chore: rebuild schemas
* chore: remove unused property
* chore: disable namespaces for other platforms
* chore: make sure we timeout temporary servers
* feat: analyzer now supports multi-node collection
* 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.
* feat: add templating to the failure outcome
allow users to dump the errors found during the analysis.
* chore: addressing pr comments
* 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.
* chore: fix typo on comment
275 lines
13 KiB
Modula-2
275 lines
13 KiB
Modula-2
module github.com/replicatedhq/troubleshoot
|
|
|
|
go 1.22.6
|
|
|
|
require (
|
|
github.com/ahmetalpbalkan/go-cursor v0.0.0-20131010032410-8136607ea412
|
|
github.com/apparentlymart/go-cidr v1.1.0
|
|
github.com/blang/semver/v4 v4.0.0
|
|
github.com/cilium/ebpf v0.16.0
|
|
github.com/containerd/cgroups/v3 v3.0.3
|
|
github.com/containers/image/v5 v5.32.2
|
|
github.com/distribution/distribution/v3 v3.0.0-beta.1
|
|
github.com/fatih/color v1.18.0
|
|
github.com/go-logr/logr v1.4.2
|
|
github.com/go-redis/redis/v7 v7.4.1
|
|
github.com/go-sql-driver/mysql v1.8.1
|
|
github.com/gobwas/glob v0.2.3
|
|
github.com/godbus/dbus/v5 v5.1.0
|
|
github.com/google/gofuzz v1.2.0
|
|
github.com/google/uuid v1.6.0
|
|
github.com/gorilla/handlers v1.5.2
|
|
github.com/hashicorp/go-getter v1.7.6
|
|
github.com/hashicorp/go-multierror v1.1.1
|
|
github.com/jackc/pgx/v5 v5.7.1
|
|
github.com/longhorn/go-iscsi-helper v0.0.0-20210330030558-49a327fb024e
|
|
github.com/manifoldco/promptui v0.9.0
|
|
github.com/mattn/go-isatty v0.0.20
|
|
github.com/mholt/archiver/v3 v3.5.1
|
|
github.com/microsoft/go-mssqldb v1.7.2
|
|
github.com/miekg/dns v1.1.62
|
|
github.com/opencontainers/image-spec v1.1.0
|
|
github.com/pkg/errors v0.9.1
|
|
github.com/replicatedhq/termui/v3 v3.1.1-0.20200811145416-f40076d26851
|
|
github.com/segmentio/ksuid v1.0.4
|
|
github.com/shirou/gopsutil/v3 v3.24.5
|
|
github.com/spf13/cobra v1.8.1
|
|
github.com/spf13/pflag v1.0.5
|
|
github.com/spf13/viper v1.19.0
|
|
github.com/stretchr/testify v1.9.0
|
|
github.com/tj/go-spin v1.1.0
|
|
github.com/vishvananda/netlink v1.2.1-beta.2
|
|
github.com/vishvananda/netns v0.0.4
|
|
github.com/vmware-tanzu/velero v1.14.1
|
|
go.opentelemetry.io/otel v1.31.0
|
|
go.opentelemetry.io/otel/sdk v1.31.0
|
|
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8
|
|
golang.org/x/mod v0.21.0
|
|
golang.org/x/sync v0.8.0
|
|
gopkg.in/yaml.v2 v2.4.0
|
|
k8s.io/api v0.31.2
|
|
k8s.io/apiextensions-apiserver v0.31.2
|
|
k8s.io/apimachinery v0.31.2
|
|
k8s.io/apiserver v0.31.2
|
|
k8s.io/cli-runtime v0.31.2
|
|
k8s.io/client-go v0.31.2
|
|
k8s.io/klog/v2 v2.130.1
|
|
oras.land/oras-go v1.2.6
|
|
sigs.k8s.io/controller-runtime v0.19.1
|
|
sigs.k8s.io/e2e-framework v0.5.0
|
|
)
|
|
|
|
require (
|
|
cloud.google.com/go/compute/metadata v0.3.0 // indirect
|
|
dario.cat/mergo v1.0.1 // indirect
|
|
filippo.io/edwards25519 v1.1.0 // indirect
|
|
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 // indirect
|
|
github.com/MakeNowJust/heredoc v1.0.0 // indirect
|
|
github.com/Masterminds/goutils v1.1.1 // indirect
|
|
github.com/Masterminds/semver/v3 v3.3.0 // indirect
|
|
github.com/Masterminds/sprig/v3 v3.3.0 // indirect
|
|
github.com/Masterminds/squirrel v1.5.4 // indirect
|
|
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
|
|
github.com/chai2010/gettext-go v1.0.2 // indirect
|
|
github.com/containerd/errdefs v0.1.0 // indirect
|
|
github.com/containerd/log v0.1.0 // indirect
|
|
github.com/containerd/platforms v0.2.1 // indirect
|
|
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
|
|
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
|
|
github.com/distribution/reference v0.6.0 // indirect
|
|
github.com/docker/distribution v2.8.3+incompatible // indirect
|
|
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
|
|
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
|
|
github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d // indirect
|
|
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
|
|
github.com/go-gorp/gorp/v3 v3.1.0 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect
|
|
github.com/golang-sql/sqlexp v0.1.0 // indirect
|
|
github.com/google/gnostic-models v0.6.8 // indirect
|
|
github.com/google/go-containerregistry v0.20.0 // indirect
|
|
github.com/google/s2a-go v0.1.7 // indirect
|
|
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
|
|
github.com/gorilla/websocket v1.5.0 // indirect
|
|
github.com/gosuri/uitable v0.0.4 // indirect
|
|
github.com/huandu/xstrings v1.5.0 // indirect
|
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
|
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
|
github.com/jmoiron/sqlx v1.4.0 // indirect
|
|
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect
|
|
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect
|
|
github.com/lib/pq v1.10.9 // indirect
|
|
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
|
|
github.com/mistifyio/go-zfs/v3 v3.0.1 // indirect
|
|
github.com/mitchellh/copystructure v1.2.0 // indirect
|
|
github.com/mitchellh/reflectwalk v1.0.2 // indirect
|
|
github.com/moby/docker-image-spec v1.3.1 // indirect
|
|
github.com/moby/sys/user v0.2.0 // indirect
|
|
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
|
|
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
|
|
github.com/rubenv/sql-migrate v1.7.0 // indirect
|
|
github.com/russross/blackfriday/v2 v2.1.0 // indirect
|
|
github.com/sagikazarmark/locafero v0.4.0 // indirect
|
|
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
|
|
github.com/shoenig/go-m1cpu v0.1.6 // indirect
|
|
github.com/shopspring/decimal v1.4.0 // indirect
|
|
github.com/sirupsen/logrus v1.9.3 // indirect
|
|
github.com/sourcegraph/conc v0.3.0 // indirect
|
|
github.com/stretchr/objx v0.5.2 // indirect
|
|
github.com/sylabs/sif/v2 v2.18.0 // indirect
|
|
github.com/tchap/go-patricia/v2 v2.3.1 // indirect
|
|
github.com/vladimirvivien/gexe v0.3.0 // indirect
|
|
github.com/x448/float16 v0.8.4 // indirect
|
|
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
|
|
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
|
|
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
|
|
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.53.0 // indirect
|
|
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect
|
|
go.opentelemetry.io/otel/metric v1.31.0 // indirect
|
|
go.opentelemetry.io/otel/trace v1.31.0 // indirect
|
|
go.uber.org/multierr v1.11.0 // indirect
|
|
golang.org/x/tools v0.22.0 // indirect
|
|
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect
|
|
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
|
|
k8s.io/component-base v0.31.2 // indirect
|
|
k8s.io/kubectl v0.31.1 // indirect
|
|
)
|
|
|
|
require (
|
|
cloud.google.com/go v0.112.1 // indirect
|
|
cloud.google.com/go/iam v1.1.7 // indirect
|
|
cloud.google.com/go/storage v1.40.0 // indirect
|
|
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
|
|
github.com/BurntSushi/toml v1.4.0 // indirect
|
|
github.com/Microsoft/go-winio v0.6.2 // indirect
|
|
github.com/Microsoft/hcsshim v0.12.5 // indirect
|
|
github.com/andybalholm/brotli v1.0.1 // indirect
|
|
github.com/aws/aws-sdk-go v1.48.10 // indirect
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
|
|
github.com/c9s/goprocinfo v0.0.0-20170724085704-0010a05ce49f // indirect
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/chzyer/readline v1.5.1 // indirect
|
|
github.com/containerd/containerd v1.7.20 // indirect
|
|
github.com/containerd/stargz-snapshotter/estargz v0.15.1 // indirect
|
|
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01 // indirect
|
|
github.com/containers/ocicrypt v1.2.0 // indirect
|
|
github.com/containers/storage v1.55.0 // indirect
|
|
github.com/cyphar/filepath-securejoin v0.3.1 // indirect
|
|
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
|
github.com/docker/cli v27.1.1+incompatible // indirect
|
|
github.com/docker/docker v27.1.1+incompatible // indirect
|
|
github.com/docker/docker-credential-helpers v0.8.2 // indirect
|
|
github.com/docker/go-connections v0.5.0 // indirect
|
|
github.com/docker/go-metrics v0.0.1 // indirect
|
|
github.com/docker/go-units v0.5.0 // indirect
|
|
github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5 // indirect
|
|
github.com/evanphx/json-patch v5.9.0+incompatible // indirect
|
|
github.com/felixge/httpsnoop v1.0.4 // indirect
|
|
github.com/fsnotify/fsnotify v1.7.0 // indirect
|
|
github.com/go-errors/errors v1.4.2 // indirect
|
|
github.com/go-ole/go-ole v1.3.0 // indirect
|
|
github.com/go-openapi/jsonpointer v0.21.0 // indirect
|
|
github.com/go-openapi/jsonreference v0.21.0 // indirect
|
|
github.com/go-openapi/swag v0.23.0 // indirect
|
|
github.com/gogo/protobuf v1.3.2 // indirect
|
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
|
github.com/golang/protobuf v1.5.4 // indirect
|
|
github.com/golang/snappy v0.0.4 // indirect
|
|
github.com/google/btree v1.0.1 // indirect
|
|
github.com/google/go-cmp v0.6.0 // indirect
|
|
github.com/google/go-intervals v0.0.2 // indirect
|
|
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
|
|
github.com/googleapis/gax-go/v2 v2.12.3 // indirect
|
|
github.com/gorilla/mux v1.8.1 // indirect
|
|
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect
|
|
github.com/hashicorp/errwrap v1.1.0 // indirect
|
|
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
|
|
github.com/hashicorp/go-safetemp v1.0.0 // indirect
|
|
github.com/hashicorp/go-version v1.7.0
|
|
github.com/hashicorp/hcl v1.0.0 // indirect
|
|
github.com/imdario/mergo v0.3.16 // indirect
|
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
|
github.com/josharian/intern v1.0.0 // indirect
|
|
github.com/json-iterator/go v1.1.12 // indirect
|
|
github.com/klauspost/compress v1.17.9 // indirect
|
|
github.com/klauspost/pgzip v1.2.6 // indirect
|
|
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
|
|
github.com/magiconair/properties v1.8.7 // indirect
|
|
github.com/mailru/easyjson v0.7.7 // indirect
|
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
|
github.com/mattn/go-runewidth v0.0.16 // indirect
|
|
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
|
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
|
|
github.com/mitchellh/go-wordwrap v1.0.1
|
|
github.com/mitchellh/mapstructure v1.5.0 // indirect
|
|
github.com/moby/locker v1.0.1 // indirect
|
|
github.com/moby/spdystream v0.4.0 // indirect
|
|
github.com/moby/sys/mountinfo v0.7.2 // indirect
|
|
github.com/moby/term v0.5.0 // indirect
|
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
|
github.com/modern-go/reflect2 v1.0.2 // indirect
|
|
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
|
|
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
|
|
github.com/nsf/termbox-go v0.0.0-20190121233118-02980233997d // indirect
|
|
github.com/nwaples/rardecode v1.1.2 // indirect
|
|
github.com/opencontainers/go-digest v1.0.0 // indirect
|
|
github.com/opencontainers/runtime-spec v1.2.0
|
|
github.com/opencontainers/selinux v1.11.0 // indirect
|
|
github.com/ostreedev/ostree-go v0.0.0-20210805093236-719684c64e4f // indirect
|
|
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
|
|
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
|
|
github.com/pierrec/lz4/v4 v4.1.2 // indirect
|
|
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
|
github.com/prometheus/client_golang v1.19.1 // indirect
|
|
github.com/prometheus/client_model v0.6.1 // indirect
|
|
github.com/prometheus/common v0.55.0 // indirect
|
|
github.com/prometheus/procfs v0.15.1 // indirect
|
|
github.com/rivo/uniseg v0.4.7 // indirect
|
|
github.com/spf13/afero v1.11.0 // indirect
|
|
github.com/spf13/cast v1.7.0 // indirect
|
|
github.com/subosito/gotenv v1.6.0 // indirect
|
|
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 // indirect
|
|
github.com/tklauser/go-sysconf v0.3.12 // indirect
|
|
github.com/tklauser/numcpus v0.6.1 // indirect
|
|
github.com/ulikunitz/xz v0.5.12 // indirect
|
|
github.com/vbatts/tar-split v0.11.5 // indirect
|
|
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
|
|
github.com/xlab/treeprint v1.2.0 // indirect
|
|
github.com/yusufpapurcu/wmi v1.2.4 // indirect
|
|
go.opencensus.io v0.24.0 // indirect
|
|
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
|
|
golang.org/x/crypto v0.28.0 // indirect
|
|
golang.org/x/net v0.30.0
|
|
golang.org/x/oauth2 v0.22.0 // indirect
|
|
golang.org/x/sys v0.26.0
|
|
golang.org/x/term v0.25.0 // indirect
|
|
golang.org/x/text v0.19.0
|
|
golang.org/x/time v0.5.0 // indirect
|
|
google.golang.org/api v0.172.0 // indirect
|
|
google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect
|
|
google.golang.org/grpc v1.65.0 // indirect
|
|
google.golang.org/protobuf v1.34.2 // indirect
|
|
gopkg.in/inf.v0 v0.9.1 // indirect
|
|
gopkg.in/ini.v1 v1.67.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
helm.sh/helm/v3 v3.16.2
|
|
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
|
|
k8s.io/kubelet v0.31.2
|
|
k8s.io/metrics v0.31.2
|
|
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8
|
|
periph.io/x/host/v3 v3.8.2
|
|
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
|
|
sigs.k8s.io/kustomize/api v0.17.2 // indirect
|
|
sigs.k8s.io/kustomize/kyaml v0.17.1 // indirect
|
|
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
|
|
sigs.k8s.io/yaml v1.4.0
|
|
)
|
|
|
|
replace (
|
|
github.com/StackExchange/wmi => github.com/yusufpapurcu/wmi v1.2.2
|
|
github.com/go-ole/go-ole => github.com/go-ole/go-ole v1.2.6 // needed for arm builds
|
|
)
|