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

panic when create resource already exists #1765

Open
lance5890 opened this issue Jul 22, 2024 · 2 comments
Open

panic when create resource already exists #1765

lance5890 opened this issue Jul 22, 2024 · 2 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@lance5890
Copy link

  • when use library to create resource, but when the resource is already exists, it will panic, such as
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: E0709 22:31:56.271679       1 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: goroutine 104 [running]:
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/runtime.logPanic({0x14a8c80, 0x2504150})
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]:         /go/src/github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:74 +0x85
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0x4c4f05})
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]:         /go/src/github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:48 +0x75
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: panic({0x14a8c80, 0x2504150})
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]:         /usr/local/go/src/runtime/panic.go:1038 +0x215
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: github.com/openshift/cluster-bootstrap/vendor/github.com/openshift/library-go/pkg/assets/create.create({0x186dde8, 0xc0000458c0}, 0xc000132000, {0x183eca0, 0xc000282530}, {0x187de60, 0xc0007e87f8}, {{0x0, 0x0, 0x0}, ...})
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]:         /go/src/github.com/openshift/cluster-bootstrap/vendor/github.com/openshift/library-go/pkg/assets/create/creater.go:214 +0x10f0
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: github.com/openshift/cluster-bootstrap/vendor/github.com/openshift/library-go/pkg/assets/create.EnsureManifestsCreated.func1()
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]:         /go/src/github.com/openshift/cluster-bootstrap/vendor/github.com/openshift/library-go/pkg/assets/create/creater.go:84 +0x23e
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/wait.ConditionFunc.WithContext.func1({0xc0004b7f20, 0xc000529268})
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]:         /go/src/github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:217 +0x1b
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext({0x186dd78, 0xc000eab300}, 0x0)
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]:         /go/src/github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:230 +0x7c
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/wait.WaitForWithContext({0x186dd78, 0xc000eab300}, 0xc0000bd6c8, 0x7d7eaa)
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]:         /go/src/github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:657 +0x118
Jul 09 22:31:56 localhost.localdomain cluster-bootstrap[7822]: github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/runtime.logPanic({0x14a8c80, 0x2504150})
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/wait.poll({0x186dd78, 0xc000eab300}, 0x90, 0x7d6de5, 0xc00002f450)
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]:         /go/src/github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:591 +0x9a
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/wait.PollImmediateUntilWithContext({0x186dd78, 0xc000eab300}, 0x90, 0xc000101400)
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]:         /go/src/github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:542 +0x49
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/wait.PollImmediateUntil(0xc0000458c0, 0x11, 0x0)
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]:         /go/src/github.com/openshift/cluster-bootstrap/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:533 +0x7c
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: github.com/openshift/cluster-bootstrap/vendor/github.com/openshift/library-go/pkg/assets/create.EnsureManifestsCreated({0x186dde8, 0xc0000458c0}, {0xc0002bc438, 0x11}, 0x689499, {{0x0, 0x0, 0x0}, 0x1, {0x183f400, ...}})
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]:         /go/src/github.com/openshift/cluster-bootstrap/vendor/github.com/openshift/library-go/pkg/assets/create/creater.go:72 +0x38f
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: github.com/openshift/cluster-bootstrap/pkg/start.(*startCommand).Run.func4.1()
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]:         /go/src/github.com/openshift/cluster-bootstrap/pkg/start/start.go:151 +0x189
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: created by github.com/openshift/cluster-bootstrap/pkg/start.(*startCommand).Run.func4
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]:         /go/src/github.com/openshift/cluster-bootstrap/pkg/start/start.go:149 +0x10f
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: panic: runtime error: invalid memory address or nil pointer dereference [recovered]
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]:         panic: runtime error: invalid memory address or nil pointer dereference
Jul 09 22:31:56 localhost.localdomain bootkube.sh[7729]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1168b70]

@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 20, 2024
@openshift-bot
Copy link

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

2 participants