Skip to content

Instantly share code, notes, and snippets.

@jingxu97
Last active April 14, 2022 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jingxu97/842b05c0452d8696d98a96e56793a048 to your computer and use it in GitHub Desktop.
Save jingxu97/842b05c0452d8696d98a96e56793a048 to your computer and use it in GitHub Desktop.
vsphere-csi-controller log
{"level":"info","time":"2022-04-12T08:08:44.441106077Z","caller":"volume/util.go:322","msg":"Volume created successfully. VolumeName: \"pvc-53c161a8-c411-46
bd-a19a-dcfb5d57d57d\", volumeID: \"5bddfa7b-63b1-4f00-9030-0ebe0d9157c5\"","TraceId":"7ae5bd92-7d6d-4d80-96ad-498e96df1bcb"}
{"level":"info","time":"2022-04-12T08:08:44.635901269Z","caller":"vanilla/controller.go:951","msg":"ControllerPublishVolume: called with args {VolumeId:5bdd
fa7b-63b1-4f00-9030-0ebe0d9157c5 NodeId:95169b0a19b4-qual-303-0afb16fa VolumeCapability:mount:<fs_type:\"ext4\" > access_mode:<mode:SINGLE_NODE_WRITER > Re
adonly:false Secrets:map[] VolumeContext:map[storage.kubernetes.io/csiProvisionerIdentity:1649739900114-8081-csi.vsphere.vmware.com type:vSphere CNS Block V
olume] XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}","TraceId":"4a7e88c4-20a6-49b9-83c7-2f2a9e7e9d9c"}
{"level":"info","time":"2022-04-12T08:08:46.221056851Z","caller":"volume/manager.go:632","msg":"AttachVolume: volumeID: \"5bddfa7b-63b1-4f00-9030-0ebe0d9157
c5\", vm: \"VirtualMachine:vm-665917 [VirtualCenterHost: atl-qual-vc04.anthos, UUID: 420753e6-c069-d350-7e91-82d3b313c291, Datacenter: Datacenter [Datacente
r: Datacenter:datacenter-3, VirtualCenterHost: atl-qual-vc04.anthos]]\", opId: \"079bcdf5\"","TraceId":"4a7e88c4-20a6-49b9-83c7-2f2a9e7e9d9c"}
{"level":"info","time":"2022-04-12T08:08:46.221113368Z","caller":"volume/manager.go:667","msg":"AttachVolume: Volume attached successfully. volumeID: \"5bdd
fa7b-63b1-4f00-9030-0ebe0d9157c5\", opId: \"079bcdf5\", vm: \"VirtualMachine:vm-665917 [VirtualCenterHost: atl-qual-vc04.anthos, UUID: 420753e6-c069-d350-7e
91-82d3b313c291, Datacenter: Datacenter [Datacenter: Datacenter:datacenter-3, VirtualCenterHost: atl-qual-vc04.anthos]]\", diskUUID: \"6000C295-d8fa-1574-84b8-0f485c354749\"","TraceId":"4a7e88c4-20a6-49b9-83c7-2f2a9e7e9d9c"}
{"level":"info","time":"2022-04-12T08:09:43.14295832Z","caller":"vanilla/controller.go:1075","msg":"ControllerUnpublishVolume: called with args {VolumeId:5bddfa7b-63b1-4f00-9030-0ebe0d9157c5 NodeId:95169b0a19b4-qual-303-0afb16fa Secrets:map[] XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}","TraceId":"698090ab-79df-44d4-a6fb-ab17a442c4b7"}
{"level":"info","time":"2022-04-12T08:09:44.01395239Z","caller":"volume/manager.go:753","msg":"DetachVolume: volumeID: \"5bddfa7b-63b1-4f00-9030-0ebe0d9157c5\", vm: \"VirtualMachine:vm-665917 [VirtualCenterHost: atl-qual-vc04.anthos, UUID: 420753e6-c069-d350-7e91-82d3b313c291, Datacenter: Datacenter [Datacenter: Datacenter:datacenter-3, VirtualCenterHost: atl-qual-vc04.anthos]]\", opId: \"079bfbbc\"","TraceId":"698090ab-79df-44d4-a6fb-ab17a442c4b7"}
{"level":"info","time":"2022-04-12T08:09:44.014039377Z","caller":"volume/manager.go:788","msg":"DetachVolume: Volume detached successfully. volumeID: \"5bddfa7b-63b1-4f00-9030-0ebe0d9157c5\", vm: \"079bfbbc\", opId: \"VirtualMachine:vm-665917 [VirtualCenterHost: atl-qual-vc04.anthos, UUID: 420753e6-c069-d350-7e91-82d3b313c291, Datacenter: Datacenter [Datacenter: Datacenter:datacenter-3, VirtualCenterHost: atl-qual-vc04.anthos]]\"","TraceId":"698090ab-79df-44d4-a6fb-ab17a442c4b7"}
{"level":"info","time":"2022-04-12T08:09:44.01406869Z","caller":"vanilla/controller.go:1159","msg":"ControllerUnpublishVolume successful for volume ID: 5bddfa7b-63b1-4f00-9030-0ebe0d9157c5","TraceId":"698090ab-79df-44d4-a6fb-ab17a442c4b7"}
{"level":"info","time":"2022-04-12T08:09:44.025153625Z","caller":"vanilla/controller.go:1075","msg":"ControllerUnpublishVolume: called with args {VolumeId:5bddfa7b-63b1-4f00-9030-0ebe0d9157c5 NodeId:95169b0a19b4-qual-303-0afb16fa Secrets:map[] XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}","TraceId":"0d595b14-e8fe-4fd9-9e9b-d25c6129de0e"}
{"level":"info","time":"2022-04-12T08:09:44.394473262Z","caller":"volume/manager.go:753","msg":"DetachVolume: volumeID: \"5bddfa7b-63b1-4f00-9030-0ebe0d9157c5\", vm: \"VirtualMachine:vm-665917 [VirtualCenterHost: atl-qual-vc04.anthos, UUID: 420753e6-c069-d350-7e91-82d3b313c291, Datacenter: Datacenter [Datacenter: Datacenter:datacenter-3, VirtualCenterHost: atl-qual-vc04.anthos]]\", opId: \"079bfbdc\"","TraceId":"0d595b14-e8fe-4fd9-9e9b-d25c6129de0e"}
{"level":"info","time":"2022-04-12T08:09:44.397510553Z","caller":"volume/manager.go:780","msg":"DetachVolume: volumeID: \"5bddfa7b-63b1-4f00-9030-0ebe0d9157c5\" not found on vm: VirtualMachine:vm-665917 [VirtualCenterHost: atl-qual-vc04.anthos, UUID: 420753e6-c069-d350-7e91-82d3b313c291, Datacenter: Datacenter [Datacenter: Datacenter:datacenter-3, VirtualCenterHost: atl-qual-vc04.anthos]]. Assuming it is already detached","TraceId":"0d595b14-e8fe-4fd9-9e9b-d25c6129de0e"}
{"level":"info","time":"2022-04-12T08:09:44.398033566Z","caller":"vanilla/controller.go:1159","msg":"ControllerUnpublishVolume successful for volume ID: 5bddfa7b-63b1-4f00-9030-0ebe0d9157c5","TraceId":"0d595b14-e8fe-4fd9-9e9b-d25c6129de0e"}
{"level":"info","time":"2022-04-12T08:12:52.660753453Z","caller":"vanilla/controller.go:951","msg":"ControllerPublishVolume: called with args {VolumeId:5bddfa7b-63b1-4f00-9030-0ebe0d9157c5 NodeId:95169b0a19b4-qual-303-0afb1754 VolumeCapability:mount:<fs_type:\"ext4\" > access_mode:<mode:SINGLE_NODE_WRITER > Readonly:false Secrets:map[] VolumeContext:map[storage.kubernetes.io/csiProvisionerIdentity:1649739900114-8081-csi.vsphere.vmware.com type:vSphere CNS Block Volume] XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}","TraceId":"882e5713-1b81-4aa9-b855-e7c66f6d0bc7"}
{"level":"error","time":"2022-04-12T08:12:52.685799562Z","caller":"volume/manager.go:616","msg":"CNS AttachVolume failed from vCenter \"atl-qual-vc04.anthos\" with err: ServerFaultCode: CNS: Failed to retrieve datastore for vol 5bddfa7b-63b1-4f00-9030-0ebe0d9157c5. (vim.fault.NotFound) {\n faultCause = (vmodl.MethodFault) null, \n faultMessage = <unset>\n msg = \"The vStorageObject (vim.vslm.ID) {\n dynamicType = null,\n dynamicProperty = null,\n id = 5bddfa7b-63b1-4f00-9030-0ebe0d9157c5\n} was not found\"\n}","TraceId":"882e5713-1b81-4aa9-b855-e7c66f6d0bc7","stacktrace":"sigs.k8s.io/vsphere-csi-driver/v2/pkg/common/cns-lib/volume.(*defaultManager).AttachVolume.func1\n\t/build/pkg/common/cns-lib/volume/manager.go:616\nsigs.k8s.io/vsphere-csi-driver/v2/pkg/common/cns-lib/volume.(*defaultManager).AttachVolume\n\t/build/pkg/common/cns-lib/volume/manager.go:672\nsigs.k8s.io/vsphere-csi-driver/v2/pkg/csi/service/common.AttachVolumeUtil\n\t/build/pkg/csi/service/common/vsphereutil.go:548\nsigs.k8s.io/vsphere-csi-driver/v2/pkg/csi/service/vanilla.(*controller).ControllerPublishVolume.func1\n\t/build/pkg/csi/service/vanilla/controller.go:1037\nsigs.k8s.io/vsphere-csi-driver/v2/pkg/csi/service/vanilla.(*controller).ControllerPublishVolume\n\t/build/pkg/csi/service/vanilla/controller.go:1050\ngithub.com/container-storage-interface/spec/lib/go/csi._Controller_ControllerPublishVolume_Handler.func1\n\t/go/pkg/mod/github.com/container-storage-interface/spec@v1.4.0/lib/go/csi/csi.pb.go:5632\ngithub.com/rexray/gocsi/middleware/serialvolume.(*interceptor).controllerPublishVolume\n\t/go/pkg/mod/github.com/rexray/gocsi@v1.2.2/middleware/serialvolume/serial_volume_locker.go:120\ngithub.com/rexray/gocsi/middleware/serialvolume.(*interceptor).handle\n\t/go/pkg/mod/github.com/rexray/gocsi@v1.2.2/middleware/serialvolume/serial_volume_locker.go:86\ngithub.com/rexray/gocsi/utils.ChainUnaryServer.func2.1.1\n\t/go/pkg/mod/github.com/rexray/gocsi@v1.2.2/utils/utils_middleware.go:99\ngithub.com/rexray/gocsi/middleware/specvalidator.(*interceptor).handleServer.func1\n\t/go/pkg/mod/github.com/rexray/gocsi@v1.2.2/middleware/specvalidator/spec_validator.go:178\ngithub.com/rexray/gocsi/middleware/specvalidator.(*interceptor).handle\n\t/go/pkg/mod/github.com/rexray/gocsi@v1.2.2/middleware/specvalidator/spec_validator.go:218\ngithub.com/rexray/gocsi/middleware/specvalidator.(*interceptor).handleServer\n\t/go/pkg/mod/github.com/rexray/gocsi@v1.2.2/middleware/specvalidator/spec_validator.go:177\ngithub.com/rexray/gocsi/utils.ChainUnaryServer.func2.1.1\n\t/go/pkg/mod/github.com/rexray/gocsi@v1.2.2/utils/utils_middleware.go:99\ngithub.com/rexray/gocsi.(*StoragePlugin).injectContext\n\t/go/pkg/mod/github.com/rexray/gocsi@v1.2.2/middleware.go:231\ngithub.com/rexray/gocsi/utils.ChainUnaryServer.func2.1.1\n\t/go/pkg/mod/github.com/rexray/gocsi@v1.2.2/utils/utils_middleware.go:99\ngithub.com/rexray/gocsi/utils.ChainUnaryServer.func2\n\t/go/pkg/mod/github.com/rexray/gocsi@v1.2.2/utils/utils_middleware.go:106\ngithub.com/container-storage-interface/spec/lib/go/csi._Controller_ControllerPublishVolume_Handler\n\t/go/pkg/mod/github.com/container-storage-interface/spec@v1.4.0/lib/go/csi/csi.pb.go:5634\ngoogle.golang.org/grpc.(*Server).processUnaryRPC\n\t/go/pkg/mod/google.golang.org/grpc@v1.27.1/server.go:1024\ngoogle.golang.org/grpc.(*Server).handleStream\n\t/go/pkg/mod/google.golang.org/grpc@v1.27.1/server.go:1313\ngoogle.golang.org/grpc.(*Server).serveStreams.func1.1\n\t/go/pkg/mod/google.golang.org/grpc@v1.27.1/server.go:722"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment