自定义集群点恢复etcd备份,后出现Etcdbackups.management.cattle.io "c-n4mn6/c-n4mn6-rl-rm844" not found

Rancher Server 设置

  • Rancher 版本:2.5.16
  • 安装选项 (Docker install/Helm Chart): Docker install
    • 如果是 Helm Chart 安装,需要提供 Local 集群的类型(RKE1, RKE2, k3s, EKS, 等)和版本:
  • 在线或离线部署:在线

下游集群信息

  • Kubernetes 版本: v1.20.15
  • Cluster Type (Local/Downstream):
    • 如果 Downstream,是什么类型的集群?(自定义/导入或为托管 等): 自定义

用户信息

  • 登录用户的角色是什么? (管理员/集群所有者/集群成员/项目所有者/项目成员/自定义):管理员
    • 如果自定义,自定义权限集:

主机操作系统: CentOS Linux 7

问题描述: 点击集群的恢复etcd,出现 Etcdbackups.management.cattle.io “c-n4mn6/c-n4mn6-rl-rm844” not found的提示,并且一直无法消除。集群仍旧可用,只是显示状态updating。但是首页-存储-持久卷接界面打不开。

重现步骤: 选择集群-点击恢复-选择备份-点击恢复按钮

结果: Etcdbackups.management.cattle.io “c-n4mn6/c-n4mn6-rl-rm844” not found

预期结果: 成功恢复备份或者消除提示不需要再恢复备份了

截图:

Rancher报错日志

其他上下文信息:

日志
2023/05/15 03:32:14 [INFO] Provisioning cluster [c-n4mn6]
2023/05/15 03:32:14 [INFO] Restoring cluster [c-n4mn6] from backup
2023/05/15 03:32:14 [ERROR] error syncing 'c-n4mn6': handler cluster-provisioner-controller: etcdbackups.management.cattle.io "c-n4mn6/c-n4mn6-rl-rm844" not found, requeuing
W0515 03:34:55.287391       8 warnings.go:80] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0515 03:34:57.532442       8 warnings.go:80] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
2023-05-15 03:36:48.537724 I | mvcc: store.index: compact 406071174
2023-05-15 03:36:48.593205 I | mvcc: finished scheduled compaction at 406071174 (took 53.868482ms)
W0515 03:37:36.620063       8 warnings.go:80] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
W0515 03:38:09.202870       8 warnings.go:80] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
W0515 03:40:44.289044       8 warnings.go:80] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
2023-05-15 03:41:48.543161 I | mvcc: store.index: compact 406073027
2023-05-15 03:41:48.593503 I | mvcc: finished scheduled compaction at 406073027 (took 49.246051ms)
W0515 03:42:05.535157       8 warnings.go:80] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
2023/05/15 03:42:14 [INFO] Provisioning cluster [c-n4mn6]
2023/05/15 03:42:14 [INFO] Restoring cluster [c-n4mn6] from backup
2023/05/15 03:42:14 [ERROR] error syncing 'c-n4mn6': handler cluster-provisioner-controller: etcdbackups.management.cattle.io "c-n4mn6/c-n4mn6-rl-rm844" not found, requeuing
W0515 03:43:09.204838       8 warnings.go:80] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
2023-05-15 03:43:10.533435 W | etcdserver: read-only range request "key:\"/registry/leases/kube-system/kube-scheduler\" " with result "range_response_count:1 size:483" took too long (224.790997ms) to execute
2023-05-15 03:46:48.548636 I | mvcc: store.index: compact 406074877
2023-05-15 03:46:48.599057 I | mvcc: finished scheduled compaction at 406074877 (took 49.250328ms)
W0515 03:46:56.621450       8 warnings.go:80] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
W0515 03:47:07.290115       8 warnings.go:80] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0515 03:51:09.538653       8 warnings.go:80] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
2023-05-15 03:51:48.553491 I | mvcc: store.index: compact 406076732
2023-05-15 03:51:48.609666 I | mvcc: finished scheduled compaction at 406076732 (took 55.051533ms)



Same
再rancher中编辑对应集群的yaml文件,取消掉restore。
restore:
restore:false
就行