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

OCPBUGS-7518: [release-4.10] add context to drain #749

Merged

Conversation

SchSeba
Copy link
Contributor

@SchSeba SchSeba commented Feb 15, 2023

we need to add a drain context as it's used by the drain method.

crash log

I0214 14:14:35.597511   10742 daemon.go:932] drainNode(): Start draining
E0214 14:14:35.601267   10742 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
goroutine 276 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic({0x2452ba0, 0x3ad55a0})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:74 +0x7d
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0xc000dd6340})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:48 +0x75
panic({0x2452ba0, 0x3ad55a0})
	/usr/lib/golang/src/runtime/panic.go:1038 +0x215
golang.org/x/time/rate.(*Limiter).WaitN(0xc000521ef0, {0x0, 0x0}, 0x1)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:234 +0x1be
golang.org/x/time/rate.(*Limiter).Wait(...)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:216
k8s.io/client-go/util/flowcontrol.(*tokenBucketRateLimiter).Wait(0x0, {0x0, 0x0})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/util/flowcontrol/throttle.go:131 +0x2b
k8s.io/client-go/rest.(*Request).tryThrottleWithInfo(0xc0009ca200, {0x0, 0x0}, {0x0, 0x2})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:584 +0xba
k8s.io/client-go/rest.(*Request).tryThrottle(...)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:610
k8s.io/client-go/rest.(*Request).request(0xc0009ca200, {0x0, 0x0}, 0x20)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:952 +0x276
k8s.io/client-go/rest.(*Request).Do(0xc000012030, {0x0, 0x0})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:1038 +0xcc
k8s.io/client-go/kubernetes/typed/core/v1.(*nodes).Patch(0xc000a93780, {0x0, 0x0}, {0xc000ac80a0, 0x1f}, {0x26faa48, 0x26}, {0xc000ac9860, 0x1f, 0x20}, ...)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/kubernetes/typed/core/v1/node.go:186 +0x1be
k8s.io/kubectl/pkg/drain.(*CordonHelper).PatchOrReplaceWithContext(0xc0003d1750, {0x0, 0x0}, {0x29e78d0, 0xc000522900}, 0x0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/cordon.go:102 +0x373
k8s.io/kubectl/pkg/drain.RunCordonOrUncordon(0xc001473850, 0xeb3d7a, 0x30)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/default.go:60 +0x6f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode.func1()
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:934 +0x45
k8s.io/apimachinery/pkg/util/wait.ConditionFunc.WithContext.func1({0xda02b4, 0xc001473858})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:220 +0x1b
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext({0x298d3b0, 0xc0000560d0}, 0x2369140)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:233 +0x7c
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtection(0x251a9c0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:226 +0x39
k8s.io/apimachinery/pkg/util/wait.ExponentialBackoff({0x2540be400, 0x4000000000000000, 0x0, 0x5, 0x0}, 0x1)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:421 +0x5f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode(0xc00115a340)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:933 +0x1a5
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).nodeStateSyncHandler(0xc00115a340, 0xc0002340e0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:523 +0xc12
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem.func1(0xc00115a340, {0x2364ac0, 0x3b27c48})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:365 +0x106
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem(0xc00115a340)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:381 +0x165
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).runWorker(...)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:326
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x7fa9d0266b80)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155 +0x67
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc000836180, {0x2955d00, 0xc000e927b0}, 0x1, 0xc0001cc0c0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156 +0xb6
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000836180, 0x3b9aca00, 0x0, 0x0, 0xc0005d8fd0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x89
k8s.io/apimachinery/pkg/util/wait.Until(0x1b76b20, 0xc00027d790, 0xc0005d8fb8)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90 +0x25
created by github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).Run
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:301 +0xb1f
E0214 14:14:35.601581   10742 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
goroutine 276 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic({0x2452ba0, 0x3ad55a0})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:74 +0x7d
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0x3b27c48})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:48 +0x75
panic({0x2452ba0, 0x3ad55a0})
	/usr/lib/golang/src/runtime/panic.go:1038 +0x215
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0xc000dd6340})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:55 +0xd8
panic({0x2452ba0, 0x3ad55a0})
	/usr/lib/golang/src/runtime/panic.go:1038 +0x215
golang.org/x/time/rate.(*Limiter).WaitN(0xc000521ef0, {0x0, 0x0}, 0x1)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:234 +0x1be
golang.org/x/time/rate.(*Limiter).Wait(...)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:216
k8s.io/client-go/util/flowcontrol.(*tokenBucketRateLimiter).Wait(0x0, {0x0, 0x0})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/util/flowcontrol/throttle.go:131 +0x2b
k8s.io/client-go/rest.(*Request).tryThrottleWithInfo(0xc0009ca200, {0x0, 0x0}, {0x0, 0x2})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:584 +0xba
k8s.io/client-go/rest.(*Request).tryThrottle(...)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:610
k8s.io/client-go/rest.(*Request).request(0xc0009ca200, {0x0, 0x0}, 0x20)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:952 +0x276
k8s.io/client-go/rest.(*Request).Do(0xc000012030, {0x0, 0x0})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:1038 +0xcc
k8s.io/client-go/kubernetes/typed/core/v1.(*nodes).Patch(0xc000a93780, {0x0, 0x0}, {0xc000ac80a0, 0x1f}, {0x26faa48, 0x26}, {0xc000ac9860, 0x1f, 0x20}, ...)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/kubernetes/typed/core/v1/node.go:186 +0x1be
k8s.io/kubectl/pkg/drain.(*CordonHelper).PatchOrReplaceWithContext(0xc0003d1750, {0x0, 0x0}, {0x29e78d0, 0xc000522900}, 0x0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/cordon.go:102 +0x373
k8s.io/kubectl/pkg/drain.RunCordonOrUncordon(0xc001473850, 0xeb3d7a, 0x30)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/default.go:60 +0x6f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode.func1()
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:934 +0x45
k8s.io/apimachinery/pkg/util/wait.ConditionFunc.WithContext.func1({0xda02b4, 0xc001473858})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:220 +0x1b
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext({0x298d3b0, 0xc0000560d0}, 0x2369140)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:233 +0x7c
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtection(0x251a9c0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:226 +0x39
k8s.io/apimachinery/pkg/util/wait.ExponentialBackoff({0x2540be400, 0x4000000000000000, 0x0, 0x5, 0x0}, 0x1)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:421 +0x5f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode(0xc00115a340)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:933 +0x1a5
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).nodeStateSyncHandler(0xc00115a340, 0xc0002340e0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:523 +0xc12
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem.func1(0xc00115a340, {0x2364ac0, 0x3b27c48})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:365 +0x106
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem(0xc00115a340)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:381 +0x165
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).runWorker(...)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:326
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x7fa9d0266b80)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155 +0x67
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc000836180, {0x2955d00, 0xc000e927b0}, 0x1, 0xc0001cc0c0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156 +0xb6
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000836180, 0x3b9aca00, 0x0, 0x0, 0xc0005d8fd0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x89
k8s.io/apimachinery/pkg/util/wait.Until(0x1b76b20, 0xc00027d790, 0xc0005d8fb8)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90 +0x25
created by github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).Run
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:301 +0xb1f
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x1b70d9e]

goroutine 276 [running]:
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0x3b27c48})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:55 +0xd8
panic({0x2452ba0, 0x3ad55a0})
	/usr/lib/golang/src/runtime/panic.go:1038 +0x215
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0xc000dd6340})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:55 +0xd8
panic({0x2452ba0, 0x3ad55a0})
	/usr/lib/golang/src/runtime/panic.go:1038 +0x215
golang.org/x/time/rate.(*Limiter).WaitN(0xc000521ef0, {0x0, 0x0}, 0x1)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:234 +0x1be
golang.org/x/time/rate.(*Limiter).Wait(...)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:216
k8s.io/client-go/util/flowcontrol.(*tokenBucketRateLimiter).Wait(0x0, {0x0, 0x0})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/util/flowcontrol/throttle.go:131 +0x2b
k8s.io/client-go/rest.(*Request).tryThrottleWithInfo(0xc0009ca200, {0x0, 0x0}, {0x0, 0x2})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:584 +0xba
k8s.io/client-go/rest.(*Request).tryThrottle(...)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:610
k8s.io/client-go/rest.(*Request).request(0xc0009ca200, {0x0, 0x0}, 0x20)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:952 +0x276
k8s.io/client-go/rest.(*Request).Do(0xc000012030, {0x0, 0x0})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:1038 +0xcc
k8s.io/client-go/kubernetes/typed/core/v1.(*nodes).Patch(0xc000a93780, {0x0, 0x0}, {0xc000ac80a0, 0x1f}, {0x26faa48, 0x26}, {0xc000ac9860, 0x1f, 0x20}, ...)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/kubernetes/typed/core/v1/node.go:186 +0x1be
k8s.io/kubectl/pkg/drain.(*CordonHelper).PatchOrReplaceWithContext(0xc0003d1750, {0x0, 0x0}, {0x29e78d0, 0xc000522900}, 0x0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/cordon.go:102 +0x373
k8s.io/kubectl/pkg/drain.RunCordonOrUncordon(0xc001473850, 0xeb3d7a, 0x30)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/default.go:60 +0x6f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode.func1()
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:934 +0x45
k8s.io/apimachinery/pkg/util/wait.ConditionFunc.WithContext.func1({0xda02b4, 0xc001473858})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:220 +0x1b
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext({0x298d3b0, 0xc0000560d0}, 0x2369140)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:233 +0x7c
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtection(0x251a9c0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:226 +0x39
k8s.io/apimachinery/pkg/util/wait.ExponentialBackoff({0x2540be400, 0x4000000000000000, 0x0, 0x5, 0x0}, 0x1)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:421 +0x5f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode(0xc00115a340)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:933 +0x1a5
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).nodeStateSyncHandler(0xc00115a340, 0xc0002340e0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:523 +0xc12
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem.func1(0xc00115a340, {0x2364ac0, 0x3b27c48})
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:365 +0x106
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem(0xc00115a340)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:381 +0x165
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).runWorker(...)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:326
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x7fa9d0266b80)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155 +0x67
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc000836180, {0x2955d00, 0xc000e927b0}, 0x1, 0xc0001cc0c0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156 +0xb6
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000836180, 0x3b9aca00, 0x0, 0x0, 0xc0005d8fd0)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x89
k8s.io/apimachinery/pkg/util/wait.Until(0x1b76b20, 0xc00027d790, 0xc0005d8fb8)
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90 +0x25
created by github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).Run
	/go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:301 +0xb1f

Signed-off-by: Sebastian Sch <sebassch@gmail.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 15, 2023

@SchSeba: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

[release-4.10] add context to drain

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@SchSeba
Copy link
Contributor Author

SchSeba commented Feb 15, 2023

/jira OCPBUGS-522

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 15, 2023
@cgoncalves
Copy link
Contributor

/jira cherrypick OCPBUGS-522

@SchSeba
Copy link
Contributor Author

SchSeba commented Feb 15, 2023

/jira cherrypick OCPBUGS-522

@openshift-ci-robot
Copy link
Contributor

@SchSeba: Jira Issue OCPBUGS-522 has been cloned as Jira Issue OCPBUGS-7518. Retitling PR to link against new bug.
/retitle OCPBUGS-7518: [release-4.10] add context to drain

In response to this:

/jira cherrypick OCPBUGS-522

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot changed the title [release-4.10] add context to drain OCPBUGS-7518: [release-4.10] add context to drain Feb 15, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 15, 2023

@SchSeba: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

OCPBUGS-7518: [release-4.10] add context to drain

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Feb 15, 2023
@openshift-ci-robot
Copy link
Contributor

@SchSeba: This pull request references Jira Issue OCPBUGS-7518, which is valid. The bug has been moved to the POST state.

6 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.10.z) matches configured target version for branch (4.10.z)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
  • dependent bug Jira Issue OCPBUGS-522 is in the state Closed (Done), which is one of the valid states (VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE))
  • dependent Jira Issue OCPBUGS-522 targets the "4.11.z" version, which is one of the valid target versions: 4.11.0, 4.11.z
  • bug has dependents

Requesting review from QA contact:
/cc @zhaozhanqi

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

we need to add a drain context as it's used by the drain method.

crash log

I0214 14:14:35.597511   10742 daemon.go:932] drainNode(): Start draining
E0214 14:14:35.601267   10742 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
goroutine 276 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic({0x2452ba0, 0x3ad55a0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:74 +0x7d
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0xc000dd6340})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:48 +0x75
panic({0x2452ba0, 0x3ad55a0})
  /usr/lib/golang/src/runtime/panic.go:1038 +0x215
golang.org/x/time/rate.(*Limiter).WaitN(0xc000521ef0, {0x0, 0x0}, 0x1)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:234 +0x1be
golang.org/x/time/rate.(*Limiter).Wait(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:216
k8s.io/client-go/util/flowcontrol.(*tokenBucketRateLimiter).Wait(0x0, {0x0, 0x0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/util/flowcontrol/throttle.go:131 +0x2b
k8s.io/client-go/rest.(*Request).tryThrottleWithInfo(0xc0009ca200, {0x0, 0x0}, {0x0, 0x2})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:584 +0xba
k8s.io/client-go/rest.(*Request).tryThrottle(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:610
k8s.io/client-go/rest.(*Request).request(0xc0009ca200, {0x0, 0x0}, 0x20)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:952 +0x276
k8s.io/client-go/rest.(*Request).Do(0xc000012030, {0x0, 0x0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:1038 +0xcc
k8s.io/client-go/kubernetes/typed/core/v1.(*nodes).Patch(0xc000a93780, {0x0, 0x0}, {0xc000ac80a0, 0x1f}, {0x26faa48, 0x26}, {0xc000ac9860, 0x1f, 0x20}, ...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/kubernetes/typed/core/v1/node.go:186 +0x1be
k8s.io/kubectl/pkg/drain.(*CordonHelper).PatchOrReplaceWithContext(0xc0003d1750, {0x0, 0x0}, {0x29e78d0, 0xc000522900}, 0x0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/cordon.go:102 +0x373
k8s.io/kubectl/pkg/drain.RunCordonOrUncordon(0xc001473850, 0xeb3d7a, 0x30)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/default.go:60 +0x6f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode.func1()
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:934 +0x45
k8s.io/apimachinery/pkg/util/wait.ConditionFunc.WithContext.func1({0xda02b4, 0xc001473858})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:220 +0x1b
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext({0x298d3b0, 0xc0000560d0}, 0x2369140)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:233 +0x7c
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtection(0x251a9c0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:226 +0x39
k8s.io/apimachinery/pkg/util/wait.ExponentialBackoff({0x2540be400, 0x4000000000000000, 0x0, 0x5, 0x0}, 0x1)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:421 +0x5f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode(0xc00115a340)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:933 +0x1a5
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).nodeStateSyncHandler(0xc00115a340, 0xc0002340e0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:523 +0xc12
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem.func1(0xc00115a340, {0x2364ac0, 0x3b27c48})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:365 +0x106
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem(0xc00115a340)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:381 +0x165
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).runWorker(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:326
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x7fa9d0266b80)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155 +0x67
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc000836180, {0x2955d00, 0xc000e927b0}, 0x1, 0xc0001cc0c0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156 +0xb6
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000836180, 0x3b9aca00, 0x0, 0x0, 0xc0005d8fd0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x89
k8s.io/apimachinery/pkg/util/wait.Until(0x1b76b20, 0xc00027d790, 0xc0005d8fb8)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90 +0x25
created by github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).Run
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:301 +0xb1f
E0214 14:14:35.601581   10742 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
goroutine 276 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic({0x2452ba0, 0x3ad55a0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:74 +0x7d
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0x3b27c48})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:48 +0x75
panic({0x2452ba0, 0x3ad55a0})
  /usr/lib/golang/src/runtime/panic.go:1038 +0x215
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0xc000dd6340})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:55 +0xd8
panic({0x2452ba0, 0x3ad55a0})
  /usr/lib/golang/src/runtime/panic.go:1038 +0x215
golang.org/x/time/rate.(*Limiter).WaitN(0xc000521ef0, {0x0, 0x0}, 0x1)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:234 +0x1be
golang.org/x/time/rate.(*Limiter).Wait(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:216
k8s.io/client-go/util/flowcontrol.(*tokenBucketRateLimiter).Wait(0x0, {0x0, 0x0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/util/flowcontrol/throttle.go:131 +0x2b
k8s.io/client-go/rest.(*Request).tryThrottleWithInfo(0xc0009ca200, {0x0, 0x0}, {0x0, 0x2})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:584 +0xba
k8s.io/client-go/rest.(*Request).tryThrottle(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:610
k8s.io/client-go/rest.(*Request).request(0xc0009ca200, {0x0, 0x0}, 0x20)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:952 +0x276
k8s.io/client-go/rest.(*Request).Do(0xc000012030, {0x0, 0x0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:1038 +0xcc
k8s.io/client-go/kubernetes/typed/core/v1.(*nodes).Patch(0xc000a93780, {0x0, 0x0}, {0xc000ac80a0, 0x1f}, {0x26faa48, 0x26}, {0xc000ac9860, 0x1f, 0x20}, ...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/kubernetes/typed/core/v1/node.go:186 +0x1be
k8s.io/kubectl/pkg/drain.(*CordonHelper).PatchOrReplaceWithContext(0xc0003d1750, {0x0, 0x0}, {0x29e78d0, 0xc000522900}, 0x0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/cordon.go:102 +0x373
k8s.io/kubectl/pkg/drain.RunCordonOrUncordon(0xc001473850, 0xeb3d7a, 0x30)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/default.go:60 +0x6f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode.func1()
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:934 +0x45
k8s.io/apimachinery/pkg/util/wait.ConditionFunc.WithContext.func1({0xda02b4, 0xc001473858})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:220 +0x1b
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext({0x298d3b0, 0xc0000560d0}, 0x2369140)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:233 +0x7c
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtection(0x251a9c0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:226 +0x39
k8s.io/apimachinery/pkg/util/wait.ExponentialBackoff({0x2540be400, 0x4000000000000000, 0x0, 0x5, 0x0}, 0x1)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:421 +0x5f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode(0xc00115a340)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:933 +0x1a5
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).nodeStateSyncHandler(0xc00115a340, 0xc0002340e0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:523 +0xc12
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem.func1(0xc00115a340, {0x2364ac0, 0x3b27c48})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:365 +0x106
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem(0xc00115a340)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:381 +0x165
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).runWorker(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:326
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x7fa9d0266b80)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155 +0x67
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc000836180, {0x2955d00, 0xc000e927b0}, 0x1, 0xc0001cc0c0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156 +0xb6
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000836180, 0x3b9aca00, 0x0, 0x0, 0xc0005d8fd0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x89
k8s.io/apimachinery/pkg/util/wait.Until(0x1b76b20, 0xc00027d790, 0xc0005d8fb8)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90 +0x25
created by github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).Run
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:301 +0xb1f
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
  panic: runtime error: invalid memory address or nil pointer dereference [recovered]
  panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x1b70d9e]

goroutine 276 [running]:
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0x3b27c48})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:55 +0xd8
panic({0x2452ba0, 0x3ad55a0})
  /usr/lib/golang/src/runtime/panic.go:1038 +0x215
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0xc000dd6340})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:55 +0xd8
panic({0x2452ba0, 0x3ad55a0})
  /usr/lib/golang/src/runtime/panic.go:1038 +0x215
golang.org/x/time/rate.(*Limiter).WaitN(0xc000521ef0, {0x0, 0x0}, 0x1)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:234 +0x1be
golang.org/x/time/rate.(*Limiter).Wait(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:216
k8s.io/client-go/util/flowcontrol.(*tokenBucketRateLimiter).Wait(0x0, {0x0, 0x0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/util/flowcontrol/throttle.go:131 +0x2b
k8s.io/client-go/rest.(*Request).tryThrottleWithInfo(0xc0009ca200, {0x0, 0x0}, {0x0, 0x2})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:584 +0xba
k8s.io/client-go/rest.(*Request).tryThrottle(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:610
k8s.io/client-go/rest.(*Request).request(0xc0009ca200, {0x0, 0x0}, 0x20)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:952 +0x276
k8s.io/client-go/rest.(*Request).Do(0xc000012030, {0x0, 0x0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:1038 +0xcc
k8s.io/client-go/kubernetes/typed/core/v1.(*nodes).Patch(0xc000a93780, {0x0, 0x0}, {0xc000ac80a0, 0x1f}, {0x26faa48, 0x26}, {0xc000ac9860, 0x1f, 0x20}, ...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/kubernetes/typed/core/v1/node.go:186 +0x1be
k8s.io/kubectl/pkg/drain.(*CordonHelper).PatchOrReplaceWithContext(0xc0003d1750, {0x0, 0x0}, {0x29e78d0, 0xc000522900}, 0x0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/cordon.go:102 +0x373
k8s.io/kubectl/pkg/drain.RunCordonOrUncordon(0xc001473850, 0xeb3d7a, 0x30)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/default.go:60 +0x6f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode.func1()
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:934 +0x45
k8s.io/apimachinery/pkg/util/wait.ConditionFunc.WithContext.func1({0xda02b4, 0xc001473858})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:220 +0x1b
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext({0x298d3b0, 0xc0000560d0}, 0x2369140)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:233 +0x7c
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtection(0x251a9c0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:226 +0x39
k8s.io/apimachinery/pkg/util/wait.ExponentialBackoff({0x2540be400, 0x4000000000000000, 0x0, 0x5, 0x0}, 0x1)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:421 +0x5f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode(0xc00115a340)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:933 +0x1a5
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).nodeStateSyncHandler(0xc00115a340, 0xc0002340e0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:523 +0xc12
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem.func1(0xc00115a340, {0x2364ac0, 0x3b27c48})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:365 +0x106
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem(0xc00115a340)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:381 +0x165
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).runWorker(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:326
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x7fa9d0266b80)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155 +0x67
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc000836180, {0x2955d00, 0xc000e927b0}, 0x1, 0xc0001cc0c0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156 +0xb6
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000836180, 0x3b9aca00, 0x0, 0x0, 0xc0005d8fd0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x89
k8s.io/apimachinery/pkg/util/wait.Until(0x1b76b20, 0xc00027d790, 0xc0005d8fb8)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90 +0x25
created by github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).Run
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:301 +0xb1f

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 15, 2023

@SchSeba: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@bn222
Copy link
Contributor

bn222 commented Feb 15, 2023

/lgtm

@SchSeba
Copy link
Contributor Author

SchSeba commented Feb 15, 2023

/label backport-risk-assessed

@openshift-ci openshift-ci bot added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Feb 15, 2023
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 15, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 15, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bn222, SchSeba

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@evgenLevin
Copy link

/label cherry-pick-approved

@openshift-ci openshift-ci bot added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Feb 15, 2023
@openshift-merge-robot openshift-merge-robot merged commit 265916c into openshift:release-4.10 Feb 15, 2023
@openshift-ci-robot
Copy link
Contributor

@SchSeba: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-7518 has been moved to the MODIFIED state.

In response to this:

we need to add a drain context as it's used by the drain method.

crash log

I0214 14:14:35.597511   10742 daemon.go:932] drainNode(): Start draining
E0214 14:14:35.601267   10742 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
goroutine 276 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic({0x2452ba0, 0x3ad55a0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:74 +0x7d
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0xc000dd6340})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:48 +0x75
panic({0x2452ba0, 0x3ad55a0})
  /usr/lib/golang/src/runtime/panic.go:1038 +0x215
golang.org/x/time/rate.(*Limiter).WaitN(0xc000521ef0, {0x0, 0x0}, 0x1)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:234 +0x1be
golang.org/x/time/rate.(*Limiter).Wait(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:216
k8s.io/client-go/util/flowcontrol.(*tokenBucketRateLimiter).Wait(0x0, {0x0, 0x0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/util/flowcontrol/throttle.go:131 +0x2b
k8s.io/client-go/rest.(*Request).tryThrottleWithInfo(0xc0009ca200, {0x0, 0x0}, {0x0, 0x2})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:584 +0xba
k8s.io/client-go/rest.(*Request).tryThrottle(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:610
k8s.io/client-go/rest.(*Request).request(0xc0009ca200, {0x0, 0x0}, 0x20)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:952 +0x276
k8s.io/client-go/rest.(*Request).Do(0xc000012030, {0x0, 0x0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:1038 +0xcc
k8s.io/client-go/kubernetes/typed/core/v1.(*nodes).Patch(0xc000a93780, {0x0, 0x0}, {0xc000ac80a0, 0x1f}, {0x26faa48, 0x26}, {0xc000ac9860, 0x1f, 0x20}, ...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/kubernetes/typed/core/v1/node.go:186 +0x1be
k8s.io/kubectl/pkg/drain.(*CordonHelper).PatchOrReplaceWithContext(0xc0003d1750, {0x0, 0x0}, {0x29e78d0, 0xc000522900}, 0x0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/cordon.go:102 +0x373
k8s.io/kubectl/pkg/drain.RunCordonOrUncordon(0xc001473850, 0xeb3d7a, 0x30)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/default.go:60 +0x6f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode.func1()
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:934 +0x45
k8s.io/apimachinery/pkg/util/wait.ConditionFunc.WithContext.func1({0xda02b4, 0xc001473858})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:220 +0x1b
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext({0x298d3b0, 0xc0000560d0}, 0x2369140)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:233 +0x7c
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtection(0x251a9c0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:226 +0x39
k8s.io/apimachinery/pkg/util/wait.ExponentialBackoff({0x2540be400, 0x4000000000000000, 0x0, 0x5, 0x0}, 0x1)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:421 +0x5f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode(0xc00115a340)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:933 +0x1a5
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).nodeStateSyncHandler(0xc00115a340, 0xc0002340e0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:523 +0xc12
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem.func1(0xc00115a340, {0x2364ac0, 0x3b27c48})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:365 +0x106
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem(0xc00115a340)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:381 +0x165
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).runWorker(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:326
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x7fa9d0266b80)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155 +0x67
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc000836180, {0x2955d00, 0xc000e927b0}, 0x1, 0xc0001cc0c0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156 +0xb6
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000836180, 0x3b9aca00, 0x0, 0x0, 0xc0005d8fd0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x89
k8s.io/apimachinery/pkg/util/wait.Until(0x1b76b20, 0xc00027d790, 0xc0005d8fb8)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90 +0x25
created by github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).Run
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:301 +0xb1f
E0214 14:14:35.601581   10742 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
goroutine 276 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic({0x2452ba0, 0x3ad55a0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:74 +0x7d
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0x3b27c48})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:48 +0x75
panic({0x2452ba0, 0x3ad55a0})
  /usr/lib/golang/src/runtime/panic.go:1038 +0x215
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0xc000dd6340})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:55 +0xd8
panic({0x2452ba0, 0x3ad55a0})
  /usr/lib/golang/src/runtime/panic.go:1038 +0x215
golang.org/x/time/rate.(*Limiter).WaitN(0xc000521ef0, {0x0, 0x0}, 0x1)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:234 +0x1be
golang.org/x/time/rate.(*Limiter).Wait(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:216
k8s.io/client-go/util/flowcontrol.(*tokenBucketRateLimiter).Wait(0x0, {0x0, 0x0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/util/flowcontrol/throttle.go:131 +0x2b
k8s.io/client-go/rest.(*Request).tryThrottleWithInfo(0xc0009ca200, {0x0, 0x0}, {0x0, 0x2})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:584 +0xba
k8s.io/client-go/rest.(*Request).tryThrottle(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:610
k8s.io/client-go/rest.(*Request).request(0xc0009ca200, {0x0, 0x0}, 0x20)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:952 +0x276
k8s.io/client-go/rest.(*Request).Do(0xc000012030, {0x0, 0x0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:1038 +0xcc
k8s.io/client-go/kubernetes/typed/core/v1.(*nodes).Patch(0xc000a93780, {0x0, 0x0}, {0xc000ac80a0, 0x1f}, {0x26faa48, 0x26}, {0xc000ac9860, 0x1f, 0x20}, ...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/kubernetes/typed/core/v1/node.go:186 +0x1be
k8s.io/kubectl/pkg/drain.(*CordonHelper).PatchOrReplaceWithContext(0xc0003d1750, {0x0, 0x0}, {0x29e78d0, 0xc000522900}, 0x0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/cordon.go:102 +0x373
k8s.io/kubectl/pkg/drain.RunCordonOrUncordon(0xc001473850, 0xeb3d7a, 0x30)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/default.go:60 +0x6f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode.func1()
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:934 +0x45
k8s.io/apimachinery/pkg/util/wait.ConditionFunc.WithContext.func1({0xda02b4, 0xc001473858})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:220 +0x1b
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext({0x298d3b0, 0xc0000560d0}, 0x2369140)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:233 +0x7c
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtection(0x251a9c0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:226 +0x39
k8s.io/apimachinery/pkg/util/wait.ExponentialBackoff({0x2540be400, 0x4000000000000000, 0x0, 0x5, 0x0}, 0x1)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:421 +0x5f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode(0xc00115a340)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:933 +0x1a5
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).nodeStateSyncHandler(0xc00115a340, 0xc0002340e0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:523 +0xc12
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem.func1(0xc00115a340, {0x2364ac0, 0x3b27c48})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:365 +0x106
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem(0xc00115a340)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:381 +0x165
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).runWorker(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:326
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x7fa9d0266b80)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155 +0x67
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc000836180, {0x2955d00, 0xc000e927b0}, 0x1, 0xc0001cc0c0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156 +0xb6
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000836180, 0x3b9aca00, 0x0, 0x0, 0xc0005d8fd0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x89
k8s.io/apimachinery/pkg/util/wait.Until(0x1b76b20, 0xc00027d790, 0xc0005d8fb8)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90 +0x25
created by github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).Run
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:301 +0xb1f
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
  panic: runtime error: invalid memory address or nil pointer dereference [recovered]
  panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x1b70d9e]

goroutine 276 [running]:
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0x3b27c48})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:55 +0xd8
panic({0x2452ba0, 0x3ad55a0})
  /usr/lib/golang/src/runtime/panic.go:1038 +0x215
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0x0, 0x0, 0xc000dd6340})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:55 +0xd8
panic({0x2452ba0, 0x3ad55a0})
  /usr/lib/golang/src/runtime/panic.go:1038 +0x215
golang.org/x/time/rate.(*Limiter).WaitN(0xc000521ef0, {0x0, 0x0}, 0x1)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:234 +0x1be
golang.org/x/time/rate.(*Limiter).Wait(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/golang.org/x/time/rate/rate.go:216
k8s.io/client-go/util/flowcontrol.(*tokenBucketRateLimiter).Wait(0x0, {0x0, 0x0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/util/flowcontrol/throttle.go:131 +0x2b
k8s.io/client-go/rest.(*Request).tryThrottleWithInfo(0xc0009ca200, {0x0, 0x0}, {0x0, 0x2})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:584 +0xba
k8s.io/client-go/rest.(*Request).tryThrottle(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:610
k8s.io/client-go/rest.(*Request).request(0xc0009ca200, {0x0, 0x0}, 0x20)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:952 +0x276
k8s.io/client-go/rest.(*Request).Do(0xc000012030, {0x0, 0x0})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/rest/request.go:1038 +0xcc
k8s.io/client-go/kubernetes/typed/core/v1.(*nodes).Patch(0xc000a93780, {0x0, 0x0}, {0xc000ac80a0, 0x1f}, {0x26faa48, 0x26}, {0xc000ac9860, 0x1f, 0x20}, ...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/client-go/kubernetes/typed/core/v1/node.go:186 +0x1be
k8s.io/kubectl/pkg/drain.(*CordonHelper).PatchOrReplaceWithContext(0xc0003d1750, {0x0, 0x0}, {0x29e78d0, 0xc000522900}, 0x0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/cordon.go:102 +0x373
k8s.io/kubectl/pkg/drain.RunCordonOrUncordon(0xc001473850, 0xeb3d7a, 0x30)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/kubectl/pkg/drain/default.go:60 +0x6f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode.func1()
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:934 +0x45
k8s.io/apimachinery/pkg/util/wait.ConditionFunc.WithContext.func1({0xda02b4, 0xc001473858})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:220 +0x1b
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext({0x298d3b0, 0xc0000560d0}, 0x2369140)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:233 +0x7c
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtection(0x251a9c0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:226 +0x39
k8s.io/apimachinery/pkg/util/wait.ExponentialBackoff({0x2540be400, 0x4000000000000000, 0x0, 0x5, 0x0}, 0x1)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:421 +0x5f
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).drainNode(0xc00115a340)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:933 +0x1a5
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).nodeStateSyncHandler(0xc00115a340, 0xc0002340e0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:523 +0xc12
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem.func1(0xc00115a340, {0x2364ac0, 0x3b27c48})
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:365 +0x106
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).processNextWorkItem(0xc00115a340)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:381 +0x165
github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).runWorker(...)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:326
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x7fa9d0266b80)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:155 +0x67
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc000836180, {0x2955d00, 0xc000e927b0}, 0x1, 0xc0001cc0c0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:156 +0xb6
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000836180, 0x3b9aca00, 0x0, 0x0, 0xc0005d8fd0)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x89
k8s.io/apimachinery/pkg/util/wait.Until(0x1b76b20, 0xc00027d790, 0xc0005d8fb8)
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90 +0x25
created by github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon.(*Daemon).Run
  /go/src/github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/daemon/daemon.go:301 +0xb1f

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet