Gerard Nguyen
9970fb1371
feat: [sc-114709] [troubleshoot] gracefully handle inability to load specs if multiple specs provided ( #1686 )
...
gracefully handle unable to load URL spec
2024-11-13 10:01:32 +13:00
dependabot[bot]
0213fbb124
chore(deps): bump github.com/distribution/distribution/v3 from 3.0.0-beta.1 to 3.0.0-rc.1 ( #1684 )
...
chore(deps): bump github.com/distribution/distribution/v3
Bumps [github.com/distribution/distribution/v3](https://github.com/distribution/distribution ) from 3.0.0-beta.1 to 3.0.0-rc.1.
- [Release notes](https://github.com/distribution/distribution/releases )
- [Commits](https://github.com/distribution/distribution/compare/v3.0.0-beta.1...v3.0.0-rc.1 )
---
updated-dependencies:
- dependency-name: github.com/distribution/distribution/v3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v0.110.0
2024-11-12 00:22:43 +00:00
Ash
deeeea7cec
exec remote host collectors in a daemonset ( #1671 )
...
Co-authored-by: Gerard Nguyen <gerard@replicated.com >
Co-authored-by: Dexter Yan <yanshaocong@gmail.com >
2024-11-12 08:47:24 +13:00
João Antunes
197f6de425
feat(host_analyzer): add host sysctl analyzer ( #1681 )
...
* feat(host_analyzer): add host sysctl analyzer
* chore: add e2e tests to support bundle collection
* chore: missing spec e2e test update
* chore: cleanup remote collector and use parse operator
* chore: update schemas
v0.109.0
2024-11-08 18:55:24 +00:00
Xav Paice
2f62240ed3
remove redundant tests ( #1677 )
...
* remove redundant tests
* fix workflow syntax error
* fix workflow syntax error
* fix k3s version for tests
* fix k3s version for tests
* f
* add vet to test-integration
---------
Co-authored-by: Dexter Yan <yanshaocong@gmail.com >
2024-11-08 10:54:26 +00:00
Dexter Yan
40eef3cdc8
feat(e2e): add local host support bundle test ( #1680 )
2024-11-08 17:14:06 +13:00
Evans Mungai
d25aa7d0ea
fix: Do not fail analysis if node list does not exist ( #1678 )
...
* fix: Do not error if node list does not exist
Signed-off-by: Evans Mungai <evans@replicated.com >
* fix test fail
---------
Signed-off-by: Evans Mungai <evans@replicated.com >
Co-authored-by: Dexter Yan <yanshaocong@gmail.com >
v0.108.1
2024-11-08 09:53:03 +13:00
João Antunes
77c9968ff6
feat(host_sysctl): add host sysctl collector ( #1676 )
...
* feat(host_sysctl): add host sysctl collector
* chore: add examples
* Update pkg/collect/host_sysctl.go
Co-authored-by: Evans Mungai <evans@replicated.com >
* chore: use sysctl package vs exec calls
* chore: make linter happy
* chore: make schemas
* chore: go back to sysctl exec
* chore: make linter happy
---------
Co-authored-by: Evans Mungai <evans@replicated.com >
2024-11-07 18:18:11 +00:00
Diamon Wiggins
06506ed95d
Fix remote host collection RBAC checks ( #1672 )
...
* fix remote host collection rbac checks
* move saveNodeList into collectRemoteHost function
* fix resource attribute list and retrieve namespace from kubeconfig
* revert change to set a default namespace from kubeconfig
* remove duplicate code
2024-11-07 10:07:27 -05:00
Ricardo Maraschini
e272683bce
feat: implement collector and analyser for network namespace connectivity ( #1670 )
...
* 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
v0.108.0
2024-11-06 11:30:13 +01:00
Ash
ea900a1881
chore: Refactor host cpu analyzer for remote collection ( #1664 )
...
* Refactor host cpu analyzer for remote collection
---------
Co-authored-by: Gerard Nguyen <gerard@replicated.com >
v0.107.6
2024-11-06 14:43:27 +11:00
Gerard Nguyen
f0b8de68ae
feat: multiple nodes analyzers ( #1667 )
...
* implement refactor for multiple node analyzers
---------
Co-authored-by: Diamon Wiggins <38189728+diamonwiggins@users.noreply.github.com >
2024-11-04 14:17:39 +11:00
Ash
544a700062
[sc-114813] copy HostCollector fails to copy binary files when run in cluster ( #1669 )
...
* Don't convert output bytes to string
This prevents binary files getting mangled when the collector ourput is being passed around between functions
* Update pkg/collect/runner.go
Co-authored-by: Evans Mungai <evans@replicated.com >
* organise imports
---------
Co-authored-by: Evans Mungai <evans@replicated.com >
v0.107.5
2024-10-31 10:44:35 +00:00
Dexter Yan
059b5d14d2
fix(collector): limit run pod collector to delete only one related secret ( #1668 )
...
* fix(collector): limit run pod collector to delete only related secret
* change to ctx
2024-10-30 14:19:30 +00:00
dependabot[bot]
b33d5538e9
chore(deps): bump the security group with 11 updates ( #1665 )
...
Bumps the security group with 11 updates:
| Package | From | To |
| --- | --- | --- |
| [github.com/fatih/color](https://github.com/fatih/color ) | `1.17.0` | `1.18.0` |
| [k8s.io/api](https://github.com/kubernetes/api ) | `0.31.1` | `0.31.2` |
| [k8s.io/apiextensions-apiserver](https://github.com/kubernetes/apiextensions-apiserver ) | `0.31.1` | `0.31.2` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery ) | `0.31.1` | `0.31.2` |
| [k8s.io/apiserver](https://github.com/kubernetes/apiserver ) | `0.31.1` | `0.31.2` |
| [k8s.io/cli-runtime](https://github.com/kubernetes/cli-runtime ) | `0.31.1` | `0.31.2` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go ) | `0.31.1` | `0.31.2` |
| [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime ) | `0.19.0` | `0.19.1` |
| [sigs.k8s.io/e2e-framework](https://github.com/kubernetes-sigs/e2e-framework ) | `0.4.0` | `0.5.0` |
| [k8s.io/kubelet](https://github.com/kubernetes/kubelet ) | `0.31.1` | `0.31.2` |
| [k8s.io/metrics](https://github.com/kubernetes/metrics ) | `0.31.1` | `0.31.2` |
Updates `github.com/fatih/color` from 1.17.0 to 1.18.0
- [Release notes](https://github.com/fatih/color/releases )
- [Commits](https://github.com/fatih/color/compare/v1.17.0...v1.18.0 )
Updates `k8s.io/api` from 0.31.1 to 0.31.2
- [Commits](https://github.com/kubernetes/api/compare/v0.31.1...v0.31.2 )
Updates `k8s.io/apiextensions-apiserver` from 0.31.1 to 0.31.2
- [Release notes](https://github.com/kubernetes/apiextensions-apiserver/releases )
- [Commits](https://github.com/kubernetes/apiextensions-apiserver/compare/v0.31.1...v0.31.2 )
Updates `k8s.io/apimachinery` from 0.31.1 to 0.31.2
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.31.1...v0.31.2 )
Updates `k8s.io/apiserver` from 0.31.1 to 0.31.2
- [Commits](https://github.com/kubernetes/apiserver/compare/v0.31.1...v0.31.2 )
Updates `k8s.io/cli-runtime` from 0.31.1 to 0.31.2
- [Commits](https://github.com/kubernetes/cli-runtime/compare/v0.31.1...v0.31.2 )
Updates `k8s.io/client-go` from 0.31.1 to 0.31.2
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kubernetes/client-go/compare/v0.31.1...v0.31.2 )
Updates `sigs.k8s.io/controller-runtime` from 0.19.0 to 0.19.1
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases )
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md )
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.19.0...v0.19.1 )
Updates `sigs.k8s.io/e2e-framework` from 0.4.0 to 0.5.0
- [Release notes](https://github.com/kubernetes-sigs/e2e-framework/releases )
- [Changelog](https://github.com/kubernetes-sigs/e2e-framework/blob/main/RELEASE.md )
- [Commits](https://github.com/kubernetes-sigs/e2e-framework/compare/v0.4.0...v0.5.0 )
Updates `k8s.io/kubelet` from 0.31.1 to 0.31.2
- [Commits](https://github.com/kubernetes/kubelet/compare/v0.31.1...v0.31.2 )
Updates `k8s.io/metrics` from 0.31.1 to 0.31.2
- [Commits](https://github.com/kubernetes/metrics/compare/v0.31.1...v0.31.2 )
---
updated-dependencies:
- dependency-name: github.com/fatih/color
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: k8s.io/api
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: k8s.io/apiextensions-apiserver
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: k8s.io/apimachinery
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: k8s.io/apiserver
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: k8s.io/cli-runtime
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: k8s.io/client-go
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: sigs.k8s.io/controller-runtime
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: sigs.k8s.io/e2e-framework
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: k8s.io/kubelet
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: k8s.io/metrics
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-29 06:08:07 +00:00
Evans Mungai
deda4ce98c
feat: Do not prompt users to save support bundle analysis results ( #1662 )
...
In interactive mode, do not prompt users to save support
bundle analysis results. Users end up providing this file
instead of the support bundle archive. The analysis results
are contained in the support bundle archive already
Signed-off-by: Evans Mungai <evans@replicated.com >
2024-10-25 13:03:16 +01:00
Dexter Yan
350418c6e9
feat(host-collector): add progress for host collector ( #1659 )
v0.107.4
2024-10-25 15:34:09 +13:00
ada mancini
eacff7112f
support adding a CA cert to http collector ( #1624 )
...
* add a TLS parameter for cacert
* pass a ca cert into http request
* test preflight
* make schemas
* log extra information from http request
* pass a proxy into the collector spec
* hitting a segfault; breakpoint
* accept a dir, file, or a string-literal as CA
* move tls params into get, put, post methods
* test for cert untrusted response
* make generate
* make schemas
* more test cases
* make schemas
* dont include system certs
* make generate && make schemas
* resolve gosec G402 warning
* remove old check for system certs
* ignore errcheck "return value not checked" linter errors
2024-10-23 18:15:08 -04:00
Ricardo Maraschini
7ed2f4bff2
feat: Handle failure to load cluster specs gracefully in support-bundle command ( #1660 )
...
* feat: Handle failure to load cluster specs gracefully in support-bundle command
In some scenarios, we don't want to fail when unable to load specs from
the cluster. This is particularly useful when:
- A host support bundle is available on disk.
- There are specs defined in the cluster.
- The cluster is malfunctioning or inaccessible.
- We still need to generate a support bundle using only the host specs.
- This change allows users to generate a support bundle even if the
embedded cluster is not functioning properly, making the process more
resilient.
The primary motivation is to introduce a new command:
```
./embedded-cluster support-bundle
```
When executed, this command attempts to collect both host and cluster
specs. However, if the embedded cluster is broken or unavailable, the
command will skip loading the cluster specs and focus on the host,
ensuring that users can still gather critical information without
interruption.
* chore: use fmt printf instead of klog
* Update internal/specs/specs.go
Co-authored-by: Evans Mungai <evans@replicated.com >
---------
Co-authored-by: Evans Mungai <evans@replicated.com >
v0.107.3
2024-10-23 11:43:56 +01:00
Emmanuel Ferdman
af8f682244
fix: update feature epic proposal template ( #1654 )
...
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com >
2024-10-23 16:52:47 +13:00
Ash
c968fca125
Allow collect to chroot itself ( #1658 )
...
* Enable chroot
* typo
* platform specific chroot functions
* Add friendly chroot warning if running without elevated permissions
2024-10-22 17:06:07 +01:00
Ash
0fb0a07e55
[collect] accept stdin ( #1657 )
2024-10-22 15:06:17 +01:00
Dexter Yan
0d21eed5f8
fix(support): add missing host collectors for ParseSupportBundle ( #1656 )
...
* fix(support): add missing host collectors for ParseSupportBundle
* update
* add host ananlyers
v0.107.2
2024-10-22 13:07:44 +13:00
Diamon Wiggins
b88bc8ddf7
Refactor Multi Node Analyzers ( #1646 )
...
* initial refactor of host os analyzer
* refactor remote collect analysis
---------
Signed-off-by: Evans Mungai <evans@replicated.com >
Co-authored-by: Gerard Nguyen <gerard@replicated.com >
Co-authored-by: Evans Mungai <evans@replicated.com >
2024-10-22 10:45:50 +13:00
Evans Mungai
9c24ab6067
chore: Remove preempted deprecation warnings ( #1655 )
...
Signed-off-by: Evans Mungai <evans@replicated.com >
2024-10-22 08:35:36 +11:00
Gerard Nguyen
289102f16d
bug: fix nil check in host collector filter ( #1653 )
...
* add nil check in filter host collector
v0.107.1
2024-10-18 15:58:32 +11:00
Dexter Yan
77fd7da315
fix(make): make sure github action can check schemas change ( #1651 )
2024-10-16 13:27:14 +13:00
dependabot[bot]
78ee833f45
chore(deps): bump helm.sh/helm/v3 from 3.16.1 to 3.16.2 in /examples/sdk/helm-template in the security group ( #1650 )
...
chore(deps): bump helm.sh/helm/v3
Bumps the security group in /examples/sdk/helm-template with 1 update: [helm.sh/helm/v3](https://github.com/helm/helm ).
Updates `helm.sh/helm/v3` from 3.16.1 to 3.16.2
- [Release notes](https://github.com/helm/helm/releases )
- [Commits](https://github.com/helm/helm/compare/v3.16.1...v3.16.2 )
---
updated-dependencies:
- dependency-name: helm.sh/helm/v3
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-15 00:23:43 +00:00
dependabot[bot]
781853251d
chore(deps): bump the security group with 3 updates ( #1649 )
...
Bumps the security group with 3 updates: [go.opentelemetry.io/otel](https://github.com/open-telemetry/opentelemetry-go ), [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go ) and [helm.sh/helm/v3](https://github.com/helm/helm ).
Updates `go.opentelemetry.io/otel` from 1.30.0 to 1.31.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.30.0...v1.31.0 )
Updates `go.opentelemetry.io/otel/sdk` from 1.30.0 to 1.31.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.30.0...v1.31.0 )
Updates `helm.sh/helm/v3` from 3.16.1 to 3.16.2
- [Release notes](https://github.com/helm/helm/releases )
- [Commits](https://github.com/helm/helm/compare/v3.16.1...v3.16.2 )
---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: go.opentelemetry.io/otel/sdk
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: helm.sh/helm/v3
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-15 00:23:02 +00:00
Gerard Nguyen
ffa1c040e2
fix: [sc-111255] CRD analyzer outcomes has no Warn field ( #1647 )
...
add warn field to CRD analyzer
v0.107.0
2024-10-14 14:36:42 +11:00
Evans Mungai
0113624352
chore(support-bundle): respect using load-cluster-specs=false ( #1634 )
...
* fix: Allow using load-cluster-specs=false
Signed-off-by: Evans Mungai <evans@replicated.com >
* Some more simplification
Signed-off-by: Evans Mungai <evans@replicated.com >
* Ensure error in loading specs is printed in CLI
Signed-off-by: Evans Mungai <evans@replicated.com >
* Run linter
Signed-off-by: Evans Mungai <evans@replicated.com >
* Fix failing tests
Signed-off-by: Evans Mungai <evans@replicated.com >
* Remove unnecessary test case rename
Signed-off-by: Evans Mungai <evans@replicated.com >
* Fix error wrapping
Signed-off-by: Evans Mungai <evans@replicated.com >
* Check if load-cluster-specs was provided in cli
Signed-off-by: Evans Mungai <evans@replicated.com >
* Better wording in comments
Signed-off-by: Evans Mungai <evans@replicated.com >
---------
Signed-off-by: Evans Mungai <evans@replicated.com >
2024-10-11 13:48:32 -04:00
Shubhag Saxena
52efd167ad
feat: allow users to check cpu arch ( #1644 )
2024-10-10 18:59:22 +05:30
Evans Mungai
402d111745
chore: Explicitly run make lint ( #1645 )
...
* chore: Explicitly run make lint
- Install golangci-lint make target to use in action
- Do not run go fmt when generating schemas
- Increase golangci timeout
Signed-off-by: Evans Mungai <evans@replicated.com >
* Add setup env step
Signed-off-by: Evans Mungai <evans@replicated.com >
* Add build-tags to golangci-lint command
Signed-off-by: Evans Mungai <evans@replicated.com >
---------
Signed-off-by: Evans Mungai <evans@replicated.com >
v0.106.0
2024-10-09 14:03:23 -05:00
Diamon Wiggins
8105fa00e9
Refactor Remote Host Collection ( #1633 )
...
* refactor remote collectors
* add remotecollect params struct
* remove commented checkrbac function
* removed unused function
* add temp comments
* refactor to not require RemoteCollect method per collector
* removed unneeded param
* removed unneeded param
* more refactor
* more refactor
* remove unneeded function
* remove debug print
* fix analyzer results
* move rbac to separate file
* be more specific with rbac function name
* fix imports
* fix node list file
* make k8s rest client config consistent with in cluster collection
* add ctx and otel tracing
* add test for allCollectedData
* move runHostCollectorsInPod to spec instead of metadata
* make generate
* fix broken references to supportbundle metadata
* add e2e tests
* update loader tests
* fix tests
* fix hostos remote collector spec
* update remoteHostCollectrs.yaml
---------
Co-authored-by: Dexter Yan <yanshaocong@gmail.com >
2024-10-09 18:38:49 +13:00
dependabot[bot]
e7c07a7d79
chore(deps): bump the security group with 3 updates ( #1639 )
...
Bumps the security group with 3 updates: [golang.org/x/net](https://github.com/golang/net ), [golang.org/x/sys](https://github.com/golang/sys ) and [golang.org/x/text](https://github.com/golang/text ).
Updates `golang.org/x/net` from 0.29.0 to 0.30.0
- [Commits](https://github.com/golang/net/compare/v0.29.0...v0.30.0 )
Updates `golang.org/x/sys` from 0.25.0 to 0.26.0
- [Commits](https://github.com/golang/sys/compare/v0.25.0...v0.26.0 )
Updates `golang.org/x/text` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.18.0...v0.19.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: golang.org/x/text
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-08 00:22:10 +00:00
Evans Mungai
0240a632c9
chore: Collect endpointslices resources ( #1636 )
...
Signed-off-by: Evans Mungai <evans@replicated.com >
2024-10-03 14:55:53 +01:00
Ash
f58f02560f
Allow goldpinger / goldpinger util images to be set in collector spec ( #1635 )
...
* Add image parameter to the goldpinger collector
* Pass image directly as a function arg
Also allow util image to be set in spec
* Remove pointless util image override
* Update pkg/collect/goldpinger.go
Co-authored-by: Evans Mungai <evans@replicated.com >
* Simplify image override
---------
Co-authored-by: Evans Mungai <evans@replicated.com >
v0.105.2
2024-10-03 13:18:36 +01:00
Ricardo Maraschini
2efbc20b7c
feat: allow users to check cpu flags ( #1631 )
...
allow users to check if specific cpu flags are supported by the host.
```yaml
apiVersion: troubleshoot.sh/v1beta2
kind: HostPreflight
metadata:
name: ec-cluster-preflight
spec:
collectors:
- cpu: {}
analyzers:
- cpu:
checkName: CPU
outcomes:
- pass:
when: hasFlags cmov,cx8,fpu,fxsr,mmx
message: CPU supports all required flags
- fail:
message: CPU not supported
```
2024-10-01 10:48:25 +02:00
Gerard Nguyen
c1c4b612a4
feat: [sc-113128] Create node list file before running remote host collector ( #1632 )
...
* create node list
2024-10-01 14:43:24 +10:00
Gerard Nguyen
d60f9a6b76
change resolvedFromSearch content ( #1629 )
v0.105.1
2024-09-30 11:22:10 +10:00
Ricardo Maraschini
668b7ed0b2
feat: add CPU micro architecture support ( #1628 )
...
allows troubleshoot to collect and analyze CPU micro architecture. this
is an usage example:
```yaml
apiVersion: troubleshoot.sh/v1beta2
kind: HostPreflight
metadata:
name: ec-cluster-preflight
spec:
collectors:
- cpu: {}
analyzers:
- cpu:
checkName: CPU
outcomes:
- pass:
when: 'supports x86-64-v2'
message: CPU supports x86-64-v2
- fail:
message: CPU does not support x86-64-v2
```
v0.105.0
2024-09-27 17:16:49 +02:00
Evans Mungai
2bb611cda1
bug: Remove duplicate results in preflights ( #1626 )
...
Change to stop re-analysing preflight results when uploadResultsTo is present leading to duplicate results
Signed-off-by: Evans Mungai <evans@replicated.com >
v0.104.0
2024-09-26 15:25:39 +01:00
Dexter Yan
142015cce3
feat(analyzer): enable host os info analyzer to support multiple nodes ( #1618 )
2024-09-26 10:25:08 +12:00
Evans Mungai
83f02f4705
feat: Install goldpinger daemonset if one does not exist when running goldpinger collector ( #1619 )
...
* feat: Install goldpinger if one does not exist when running goldpinger collector
- Deploy golpinger daemonset if one is not detected in the cluster
- Clean up all deployed resources
- Add delay to allow users to wait for goldpinger to perform checks
Signed-off-by: Evans Mungai <evans@replicated.com >
* Add missing test data file
Signed-off-by: Evans Mungai <evans@replicated.com >
* Better naming of create resource functions
Signed-off-by: Evans Mungai <evans@replicated.com >
---------
Signed-off-by: Evans Mungai <evans@replicated.com >
2024-09-24 17:17:14 +01:00
dependabot[bot]
2f78fee284
chore(deps): bump github.com/miekg/dns from 1.1.57 to 1.1.62 in the security group ( #1621 )
...
chore(deps): bump github.com/miekg/dns in the security group
Bumps the security group with 1 update: [github.com/miekg/dns](https://github.com/miekg/dns ).
Updates `github.com/miekg/dns` from 1.1.57 to 1.1.62
- [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release )
- [Commits](https://github.com/miekg/dns/compare/v1.1.57...v1.1.62 )
---
updated-dependencies:
- dependency-name: github.com/miekg/dns
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-24 00:22:37 +00:00
Dexter Yan
e97b9613a5
feat(support-bundle): add runHostCollectorsInPod in spec ( #1608 )
2024-09-20 11:57:58 -05:00
Gerard Nguyen
8823f7d99e
feat: host collector for DNS ( #1617 )
...
* add struct for host dns collector
* add miekg/dns
* add more logs
* nit
* new field names
* use Hostnames instead of Names
* misc update
* make schemas
* no error when there is no resolv.conf
* query all searches
* add summary.json file
* merge summary into result file
* query AAAA and CNAME as well
* update schema for hostnames to be required
v0.103.0
2024-09-20 08:13:57 +10:00
dependabot[bot]
d73082ac93
chore(deps): bump the security group with 12 updates ( #1615 )
...
Bumps the security group with 12 updates:
| Package | From | To |
| --- | --- | --- |
| [github.com/jackc/pgx/v5](https://github.com/jackc/pgx ) | `5.7.0` | `5.7.1` |
| [go.opentelemetry.io/otel](https://github.com/open-telemetry/opentelemetry-go ) | `1.29.0` | `1.30.0` |
| [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go ) | `1.29.0` | `1.30.0` |
| [k8s.io/api](https://github.com/kubernetes/api ) | `0.31.0` | `0.31.1` |
| [k8s.io/apiextensions-apiserver](https://github.com/kubernetes/apiextensions-apiserver ) | `0.31.0` | `0.31.1` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery ) | `0.31.0` | `0.31.1` |
| [k8s.io/apiserver](https://github.com/kubernetes/apiserver ) | `0.31.0` | `0.31.1` |
| [k8s.io/cli-runtime](https://github.com/kubernetes/cli-runtime ) | `0.31.0` | `0.31.1` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go ) | `0.31.0` | `0.31.1` |
| [helm.sh/helm/v3](https://github.com/helm/helm ) | `3.15.4` | `3.16.1` |
| [k8s.io/kubelet](https://github.com/kubernetes/kubelet ) | `0.31.0` | `0.31.1` |
| [k8s.io/metrics](https://github.com/kubernetes/metrics ) | `0.31.0` | `0.31.1` |
Updates `github.com/jackc/pgx/v5` from 5.7.0 to 5.7.1
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jackc/pgx/compare/v5.7.0...v5.7.1 )
Updates `go.opentelemetry.io/otel` from 1.29.0 to 1.30.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.29.0...v1.30.0 )
Updates `go.opentelemetry.io/otel/sdk` from 1.29.0 to 1.30.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.29.0...v1.30.0 )
Updates `k8s.io/api` from 0.31.0 to 0.31.1
- [Commits](https://github.com/kubernetes/api/compare/v0.31.0...v0.31.1 )
Updates `k8s.io/apiextensions-apiserver` from 0.31.0 to 0.31.1
- [Release notes](https://github.com/kubernetes/apiextensions-apiserver/releases )
- [Commits](https://github.com/kubernetes/apiextensions-apiserver/compare/v0.31.0...v0.31.1 )
Updates `k8s.io/apimachinery` from 0.31.0 to 0.31.1
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.31.0...v0.31.1 )
Updates `k8s.io/apiserver` from 0.31.0 to 0.31.1
- [Commits](https://github.com/kubernetes/apiserver/compare/v0.31.0...v0.31.1 )
Updates `k8s.io/cli-runtime` from 0.31.0 to 0.31.1
- [Commits](https://github.com/kubernetes/cli-runtime/compare/v0.31.0...v0.31.1 )
Updates `k8s.io/client-go` from 0.31.0 to 0.31.1
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kubernetes/client-go/compare/v0.31.0...v0.31.1 )
Updates `helm.sh/helm/v3` from 3.15.4 to 3.16.1
- [Release notes](https://github.com/helm/helm/releases )
- [Commits](https://github.com/helm/helm/compare/v3.15.4...v3.16.1 )
Updates `k8s.io/kubelet` from 0.31.0 to 0.31.1
- [Commits](https://github.com/kubernetes/kubelet/compare/v0.31.0...v0.31.1 )
Updates `k8s.io/metrics` from 0.31.0 to 0.31.1
- [Commits](https://github.com/kubernetes/metrics/compare/v0.31.0...v0.31.1 )
---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: go.opentelemetry.io/otel
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: go.opentelemetry.io/otel/sdk
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: k8s.io/api
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: k8s.io/apiextensions-apiserver
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: k8s.io/apimachinery
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: k8s.io/apiserver
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: k8s.io/cli-runtime
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: k8s.io/client-go
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: helm.sh/helm/v3
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: k8s.io/kubelet
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: k8s.io/metrics
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-17 00:19:10 +00:00
dependabot[bot]
cf8c08b913
chore(deps): bump helm.sh/helm/v3 from 3.15.4 to 3.16.1 in /examples/sdk/helm-template in the security group ( #1614 )
...
chore(deps): bump helm.sh/helm/v3
Bumps the security group in /examples/sdk/helm-template with 1 update: [helm.sh/helm/v3](https://github.com/helm/helm ).
Updates `helm.sh/helm/v3` from 3.15.4 to 3.16.1
- [Release notes](https://github.com/helm/helm/releases )
- [Commits](https://github.com/helm/helm/compare/v3.15.4...v3.16.1 )
---
updated-dependencies:
- dependency-name: helm.sh/helm/v3
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-17 00:18:38 +00:00
Evans Mungai
aea4f7c87c
feat: Optionally save preflight bundles to disk ( #1612 )
...
* feat: Optionally save preflight bundles to disk
Signed-off-by: Evans Mungai <evans@replicated.com >
* Add e2e test of saving preflight bundle
Signed-off-by: Evans Mungai <evans@replicated.com >
* Update cli docs
Signed-off-by: Evans Mungai <evans@replicated.com >
* Expose GetVersionFile function publicly
Signed-off-by: Evans Mungai <evans@replicated.com >
* Store analysis.json file in preflight bundle
Signed-off-by: Evans Mungai <evans@replicated.com >
* Run go fmt when running lint fixers
Signed-off-by: Evans Mungai <evans@replicated.com >
* Always generate a preflight bundle in CLI
Signed-off-by: Evans Mungai <evans@replicated.com >
* Print saving bundle message to stderr
Signed-off-by: Evans Mungai <evans@replicated.com >
* Revert changes in docs directory
Signed-off-by: Evans Mungai <evans@replicated.com >
* Use NewResult constructor
Signed-off-by: Evans Mungai <evans@replicated.com >
* Log always when preflight bundle is saved to disk
Signed-off-by: Evans Mungai <evans@replicated.com >
---------
Signed-off-by: Evans Mungai <evans@replicated.com >
v0.102.0
2024-09-16 23:36:52 +01:00