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

Index out of bounds on lint nodes #2

Closed
gabeduke opened this issue Apr 6, 2019 · 2 comments
Closed

Index out of bounds on lint nodes #2

gabeduke opened this issue Apr 6, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@gabeduke
Copy link

gabeduke commented Apr 6, 2019




Describe the bug
After linting nodes panic: index out of range is being thrown.

To Reproduce
Steps to reproduce the behavior:
This error occurs consistently on multiple clusters in our environment.

Expected behavior
lint should complete

Screenshots

(etcd cluster is also master role)

[...]
NODES                                                     💥 0 😱 5 🔊 0 ✅ 6 55٪
┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅
  · ip-10-46-33-196.ec2.internal...............................................✅
  · ip-10-46-33-63.ec2.internal................................................😱
    😱 Found taint `dedicated but no pod can tolerate.
  · ip-10-46-34-24.ec2.internal................................................😱
    😱 Found taint `dedicated but no pod can tolerate.
  · ip-10-46-35-165.ec2.internal...............................................✅
  · ip-10-46-38-218.ec2.internal...............................................✅
  · ip-10-46-38-51.ec2.internal................................................😱
    😱 Found taint `dedicated but no pod can tolerate.
  · ip-10-46-39-186.ec2.internal...............................................✅
  · ip-10-46-39-50.ec2.internal................................................😱
    😱 Found taint `dedicated but no pod can tolerate.
  · ip-10-46-40-86.ec2.internal................................................😱
    😱 Found taint `dedicated but no pod can tolerate.
  · ip-10-46-41-33.ec2.internal................................................✅
  · ip-10-46-43-8.ec2.internal.................................................✅

panic: runtime error: index out of range

goroutine 1 [running]:
github.com/derailed/popeye/internal/k8s.(*Client).InUseNamespaces(0xc0000ae940, 0xc000573300, 0x1, 0x1)
	/Users/fernand/go_wk/derailed/src/github.com/derailed/popeye/internal/k8s/client.go:116 +0x29f
github.com/derailed/popeye/internal/linter.(*Namespace).Lint(0xc0000ba6d0, 0x2276c40, 0xc00027f780, 0x206bc9b, 0x2)
	/Users/fernand/go_wk/derailed/src/github.com/derailed/popeye/internal/linter/ns.go:30 +0xcf
github.com/derailed/popeye/pkg.(*Popeye).Sanitize(0xc000709d40)
	/Users/fernand/go_wk/derailed/src/github.com/derailed/popeye/pkg/popeye.go:62 +0x217
github.com/derailed/popeye/cmd.doIt(0x2db09a0, 0x2ddbcd8, 0x0, 0x0)
	/Users/fernand/go_wk/derailed/src/github.com/derailed/popeye/cmd/root.go:56 +0xdf
github.com/spf13/cobra.(*Command).execute(0x2db09a0, 0xc00003a020, 0x0, 0x0, 0x2db09a0, 0xc00003a020)
	/Users/fernand/go_wk/derailed/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:766 +0x2ae
github.com/spf13/cobra.(*Command).ExecuteC(0x2db09a0, 0x0, 0x0, 0xc0003fff88)
	/Users/fernand/go_wk/derailed/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852 +0x2ec
github.com/spf13/cobra.(*Command).Execute(...)
	/Users/fernand/go_wk/derailed/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
github.com/derailed/popeye/cmd.Execute()
	/Users/fernand/go_wk/derailed/src/github.com/derailed/popeye/cmd/root.go:43 +0x32
main.main()
	/Users/fernand/go_wk/derailed/src/github.com/derailed/popeye/main.go:19 +0x20
$ kubectl get nodes                                                                                                                                                                                                          2 ↵
NAME                           STATUS   ROLES    AGE     VERSION
ip-10-46-33-196.ec2.internal   Ready    worker   6h20m   v1.12.3
ip-10-46-33-63.ec2.internal    Ready    master   6h30m   v1.12.3
ip-10-46-34-24.ec2.internal    Ready    master   6h30m   v1.12.3
ip-10-46-35-165.ec2.internal   Ready    master   6h20m   v1.12.3
ip-10-46-38-218.ec2.internal   Ready    worker   6h20m   v1.12.3
ip-10-46-38-51.ec2.internal    Ready    master   6h29m   v1.12.3
ip-10-46-39-186.ec2.internal   Ready    master   6h20m   v1.12.3
ip-10-46-39-50.ec2.internal    Ready    master   6h28m   v1.12.3
ip-10-46-40-86.ec2.internal    Ready    master   6h29m   v1.12.3
ip-10-46-41-33.ec2.internal    Ready    worker   6h20m   v1.12.3
ip-10-46-43-8.ec2.internal     Ready    master   6h28m   v1.12.3

Versions (please complete the following information):

  • OS: 10.14.3
  • Popeye 0.1.2
  • K8s 1.12.3

Additional context
Add any other context about the problem here.

@gabeduke gabeduke changed the title Index out of bounds on nodes linting Index out of bounds on lint nodes Apr 6, 2019
@derailed derailed added the bug Something isn't working label Apr 6, 2019
@derailed
Copy link
Owner

derailed commented Apr 6, 2019

@gabeduke Thank you for the report! I think I've fixed this issue. Could you please try v0.1.3 and report back? Tx!!

@gabeduke
Copy link
Author

gabeduke commented Apr 6, 2019

This is resolved thanks! Looks great!

@gabeduke gabeduke closed this as completed Apr 6, 2019
danibaeyens added a commit to danibaeyens/popeye that referenced this issue Apr 19, 2021
…es, so popeye rules can be skipped.

Merge in ODP/popeye from feature/odpx-46-checks-annotations-to-skip-checks to master

* commit '1d744f30e86509c5c0a6d2af73da408eac77204c':
  [ODPX-46] Checks annotations for all resources, so popeye rules can be skipped. Triggers an info note
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

No branches or pull requests

2 participants