CAASOperatorUpgrader facade panic

Bug #1903972 reported by Yang Kelvin Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Yang Kelvin Liu

Bug Description

machine-0: 20:23:18 CRITICAL juju.rpc panic running request {MethodCaller:0xc006925bc0 transformErrors:0x26eb950 hdr:{RequestId:1341 Request:{Type:CAASOperatorUpgrader Version:1 Id: Action:UpgradeOperator} Error: ErrorCode: ErrorInfo:map[] Version:1}} with arg {AgentTag:application-katib-controller Version:2.8.7.1}: runtime error: index out of range [0] with length 0
goroutine 477042 [running]:
runtime/debug.Stack(0xc00715ed78, 0x44848c0, 0xc001a77340)
 /snap/go/current/src/runtime/debug/stack.go:24 +0x9d
github.com/juju/juju/rpc.(*Conn).runRequest.func1(0xc00715ff28, 0x419dda0, 0xc006925c40, 0x199, 0xc006f3cf00, 0x5199f20, 0xc002fff200)
 /home/kelvinliu/Code/Golang/src/github.com/juju/juju/rpc/server.go:558 +0xe2
panic(0x44848c0, 0xc001a77340)
 /snap/go/current/src/runtime/panic.go:969 +0x166
github.com/juju/juju/caas/kubernetes/provider.operatorInitUpgrade.func1.1(0xc00715f6f8, 0xc00715f5e0, 0x2)
 /home/kelvinliu/Code/Golang/src/github.com/juju/juju/caas/kubernetes/provider/operator_upgrade.go:105 +0x67d
github.com/juju/juju/caas/kubernetes/provider.operatorUpgrade(0xc00d6c842c, 0x10, 0x2, 0x8, 0x0, 0x0, 0x7, 0x1, 0x52215e0, 0xc00d64c9f0, ...)
 /home/kelvinliu/Code/Golang/src/github.com/juju/juju/caas/kubernetes/provider/operator_upgrade.go:198 +0x3fc
github.com/juju/juju/caas/kubernetes/provider.(*kubernetesClient).upgradeOperator(0xc007adbc80, 0x51e5fe0, 0xc00ac8b330, 0x2, 0x8, 0x0, 0x0, 0x7, 0x1, 0xc000227980, ...)
 /home/kelvinliu/Code/Golang/src/github.com/juju/juju/caas/kubernetes/provider/operator_upgrade.go:223 +0x21d
github.com/juju/juju/caas/kubernetes/provider.(*kubernetesClient).Upgrade(0xc007adbc80, 0xc00d6c8420, 0x1c, 0x2, 0x8, 0x0, 0x0, 0x7, 0x1, 0xc002f9c1e0, ...)
 /home/kelvinliu/Code/Golang/src/github.com/juju/juju/caas/kubernetes/provider/upgrade.go:32 +0x4ab
github.com/juju/juju/apiserver/facades/controller/caasoperatorupgrader.(*API).UpgradeOperator(0xc00792b700, 0xc00d6c8420, 0x1c, 0x2, 0x8, 0x0, 0x0, 0x7, 0x1, 0x0, ...)
 /home/kelvinliu/Code/Golang/src/github.com/juju/juju/apiserver/facades/controller/caasoperatorupgrader/upgrader.go:70 +0x167
reflect.Value.call(0x3eb9e20, 0xc00792b700, 0x213, 0x488b422, 0x4, 0xc002fff2a0, 0x1, 0x1, 0x1, 0xc002fff2a0, ...)
 /snap/go/current/src/reflect/value.go:460 +0x8ab
reflect.Value.Call(0x3eb9e20, 0xc00792b700, 0x213, 0xc002fff2a0, 0x1, 0x1, 0x1, 0x1, 0xc005f5f000)
 /snap/go/current/src/reflect/value.go:321 +0xb4
github.com/juju/rpcreflect.newMethod.func8(0x51fb4e0, 0xc006925cc0, 0x3eb9e20, 0xc00792b700, 0x16, 0x419dda0, 0xc006925c40, 0x199, 0x4122480, 0xc00ac8b300, ...)
 /home/kelvinliu/Code/Golang/src/github.com/juju/juju/vendor/github.com/juju/rpcreflect/type.go:344 +0x109
github.com/juju/juju/apiserver.(*srvCaller).Call(0xc006925bc0, 0x51fb4e0, 0xc006925cc0, 0x0, 0x0, 0x419dda0, 0xc006925c40, 0x199, 0x0, 0x0, ...)
 /home/kelvinliu/Code/Golang/src/github.com/juju/juju/apiserver/root.go:171 +0xd6
github.com/juju/juju/rpc.(*Conn).runRequest(0xc006f3cf00, 0x51d31a0, 0xc006925bc0, 0x4a43720, 0x53d, 0xc00d6c8400, 0x14, 0x1, 0x0, 0x0, ...)
 /home/kelvinliu/Code/Golang/src/github.com/juju/juju/rpc/server.go:571 +0x196
created by github.com/juju/juju/rpc.(*Conn).handleRequest
 /home/kelvinliu/Code/Golang/src/github.com/juju/juju/rpc/server.go:475 +0x756

Changed in juju:
importance: Undecided → Critical
importance: Critical → High
status: New → Triaged
milestone: none → 2.8-next
milestone: 2.8-next → 2.8.7
Changed in juju:
status: Triaged → In Progress
assignee: nobody → Yang Kelvin Liu (kelvin.liu)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.