I0310 10:00:58.802090 1 leaderelection.go:253] successfully acquired lease tidb-admin/tidb-controller-manager
F0310 10:00:58.841594 1 main.go:152] failed to upgrade: Upgrader: found 12 Advanced StatefulSets owned by TidbCluster, the operator cann’t run with AdvancedStatefulSet feature disabled
goroutine 128 [running]:
k8s.io/klog/v2.stacks(0xc0001a8001, 0xc000e90000, 0xbf, 0x1cf)
k8s.io/klog/v2@v2.3.0/klog.go:996 +0xb9
k8s.io/klog/v2.(*loggingT).output(0x4f6caa0, 0xc000000003, 0x0, 0x0, 0xc00083e2a0, 0x426fcb4, 0x7, 0x98, 0x0)
k8s.io/klog/v2@v2.3.0/klog.go:945 +0x191
k8s.io/klog/v2.(*loggingT).printf(0x4f6caa0, 0x3, 0x0, 0x0, 0x3537866, 0x15, 0xc000ae5e80, 0x1, 0x1)
k8s.io/klog/v2@v2.3.0/klog.go:733 +0x17a
k8s.io/klog/v2.Fatalf(...)
k8s.io/klog/v2@v2.3.0/klog.go:1463
原因类似 https://docs.pingcap.com/zh/tidb-in-kubernetes/stable/canary-upgrade-tidb-operator#第-2-步部署灰度的-tidb-operator 里关于 增强型 StatefulSet 的说明
碰到过该类似的问题,大意就是升级过程中没有配置asts,而老版本的则启用 了asts功能,添加如下配置应用下:
features:
- AdvancedStatefulSet=true
advancedStatefulset:
create: true
1 个赞
测试了下,成功了。
此话题已在最后回复的 60 天后被自动关闭。不再允许新回复。