Trident创建的NFS卷无法用于Grafana/Kafka
适用场景
- ONTAP 9
- NFS
- 三叉
- Kubernetes ( K8 )
问题描述
- K8s集群可以为Grafana / Kafka创建和绑定Trident创建的卷、但Pod容器会在一段时间后崩溃、无法正常启动。
- 此时、Grafana日志将不再显示
Starting DB migration
进一步的进度。
t=2021-02-26T03:27:49+0000 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=sqlite3
t=2021-02-26T03:27:49+0000 lvl=info msg="Starting DB migration" logger=migrator
- Trident日志显示正常创建的卷。
time="2021-02-26T03:27:36Z" level=info msg="Found PVC for requested volume pvc-d49aec82-3971-4d37-9a1e-2e35b9ee356e." UID=d49aec82-3971-4d37-9a1e-2e35b9ee356e name=grafana-cluster-monitoring namespace=cattle-prometheus requestID=32f42bf8-7e2d-4e9e-805d-9bce67cee8d4 requestSource=CSI size="{{2147483648 0} {} 2Gi BinarySI}" storageClass=trident-ontap-nas
time="2021-02-26T03:27:36Z" level=info msg="Found storage class for requested volume pvc-d49aec82-3971-4d37-9a1e-2e35b9ee356e." name=trident-ontap-nas requestID=32f42bf8-7e2d-4e9e-805d-9bce67cee8d4 requestSource=CSI
- ONTAP EMS日志显示已成功创建的卷。
[?] Fri Feb 26 11:02:30 HKT [netapp: wafl_exempt17: wafl.data.compaction.event:notice]: WAFL volume data compaction state changed in volume "trident_pvc_d49aec82_3971_4d37_9a1e_2e35b9ee356e" to "enabled".
[?] Fri Feb 26 11:02:30 HKT [netapp: wafl_spcd_main: monitor.volumes.one.ok:debug]: Volume trident_pvc_d49aec82_3971_4d37_9a1e_2e35b9ee356e@vserver:e725b4b5-22fe-11ea-a430-00a098ed83b2 is OK.