跳转到主内容

从旧版CSI之前的Snapshot版本升级后、Trident Snapshotter Pod会记录垃圾邮件

Views:
13
Visibility:
Public
Votes:
0
Category:
trident-kubernetes<a>2009-199072</a>
Specialty:
snapx
Last Updated:

适用场景

  • Trident 20.07及更高版本
  • Kubernetes 1.20及更高版本

问题描述

在CSI Snapshot支持之前从Trident或Kubernetes版本升级时、快照程序将尝试访问两个单独的v1beta1类 (VolumeSnapshotClass and VolumeSnapshotContent), 并失败访问:
 
I[MMdd] [TIME]        1 round_trippers.go:420] GET https://[TRIDENT_CONTROLLER_IP]:443/apis/snapshot.storage.k8s.io/v1beta1/volumesnapshotclasses?limit=500&resourceVersion=0
I[MMdd] [TIME]        1 round_trippers.go:427] Request Headers:
I[MMdd] [TIME]        1 round_trippers.go:431]     User-Agent: csi-snapshotter/v0.0.0 (linux/amd64) kubernetes/$Format
I[MMdd] [TIME]        1 round_trippers.go:431]     Accept: application/json, */*
I[MMdd] [TIME]        1 round_trippers.go:431]     Authorization: Bearer <masked>
I[MMdd] [TIME]        1 round_trippers.go:420] GET https://[TRIDENT_CONTROLLER_IP]/apis/snapshot.storage.k8s.io/v1beta1/volumesnapshotcontents?limit=500&resourceVersion=0
I[MMdd] [TIME]        1 round_trippers.go:427] Request Headers:
I[MMdd] [TIME]        1 round_trippers.go:431]     Accept: application/json, */*
I[MMdd] [TIME]        1 round_trippers.go:431]     User-Agent: csi-snapshotter/v0.0.0 (linux/amd64) kubernetes/$Format
I[MMdd] [TIME]        1 round_trippers.go:431]     Authorization: Bearer <masked>
I[MMdd] [TIME]        1 round_trippers.go:446] Response Status: 404 Not Found in 6 milliseconds
I[MMdd] [TIME]        1 round_trippers.go:449] Response Headers:
I[MMdd] [TIME]        1 round_trippers.go:446] Response Status: 404 Not Found in 6 milliseconds
I[MMdd] [TIME]        1 round_trippers.go:452]     Cache-Control: no-cache, private
I[MMdd] [TIME]        1 round_trippers.go:449] Response Headers:
I[MMdd] [TIME]        1 round_trippers.go:452]     Content-Type: text/plain; charset=utf-8
I[MMdd] [TIME]        1 round_trippers.go:452]     X-Kubernetes-Pf-Flowschema-Uid: f978b7f4-c3f3-4736-aedc-36f873e2e698
I[MMdd] [TIME]        1 round_trippers.go:452]     X-Content-Type-Options: nosniff
I[MMdd] [TIME]        1 round_trippers.go:452]     X-Kubernetes-Pf-Prioritylevel-Uid: a26a1e9c-85a4-4742-8844-c44bd8d00267
I[MMdd] [TIME]        1 round_trippers.go:452]     Content-Length: 19
I[MMdd] [TIME]        1 round_trippers.go:452]     X-Kubernetes-Pf-Flowschema-Uid: f978b7f4-c3f3-4736-aedc-36f873e2e698
I[MMdd] [TIME]        1 round_trippers.go:452]     X-Kubernetes-Pf-Prioritylevel-Uid: a26a1e9c-85a4-4742-8844-c44bd8d00267
I[MMdd] [TIME]        1 round_trippers.go:452]     Date: Thu, 02 Jun 2022 07:28:17 GMT
I[MMdd] [TIME]        1 round_trippers.go:452]     Cache-Control: no-cache, private
I[MMdd] [TIME]        1 round_trippers.go:452]     Content-Type: text/plain; charset=utf-8
I[MMdd] [TIME]        1 round_trippers.go:452]     X-Content-Type-Options: nosniff
I[MMdd] [TIME]        1 request.go:1097] Response Body: 404 page not found
I[MMdd] [TIME]        1 round_trippers.go:452]     Content-Length: 19
I[MMdd] [TIME]        1 round_trippers.go:452]     Date: Thu, 02 Jun 2022 07:28:17 GMT
I[MMdd] [TIME]        1 request.go:1097] Response Body: 404 page not found
E[MMdd] [TIME]        1 reflector.go:127] github.com/kubernetes-csi/external-snapshotter/client/v3/informers/externalversions/factory.go:117: Failed to watch *v1beta1.VolumeSnapshotContent: failed to list *v1beta1.VolumeSnapshotContent: the server could not find the requested resource (get volumesnapshotcontents.snapshot.storage.k8s.io)
E[MMdd] [TIME]        1 reflector.go:127] github.com/kubernetes-csi/external-snapshotter/client/v3/informers/externalversions/factory.go:117: Failed to watch *v1beta1.VolumeSnapshotClass: failed to list *v1beta1.VolumeSnapshotClass: the server could not find the requested resource (get volumesnapshotclasses.snapshot.storage.k8s.io)
 
每个检查都会重复此操作、平均前40秒为30次、从而将trident控制器- sidecar-csI-snapshotter的日志增加到数十MB。
 
注意: 的实际行号 round_trippers.go 取决于Trident的版本以及是否使用v1bea1或v1的类版本(v1快照使用v5信息程序类)。

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

Scan to view the article on your device