@@ -141,12 +141,12 @@ func (d *Driver) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolu
141
141
}
142
142
143
143
func (d * Driver ) mountBlobfuseWithProxy (args string , protocol string , authEnv []string ) (string , error ) {
144
- klog .V (2 ).Infof ("mouting using blobfuse proxy" )
145
144
var resp * mount_azure_blob.MountAzureBlobResponse
146
145
var output string
147
146
connectionTimout := time .Duration (d .blobfuseProxyConnTimout ) * time .Second
148
147
ctx , cancel := context .WithTimeout (context .Background (), connectionTimout )
149
148
defer cancel ()
149
+ klog .V (2 ).Infof ("start connecting to blobfuse proxy, protocol: %s, args: %s" , protocol , args )
150
150
conn , err := grpc .DialContext (ctx , d .blobfuseProxyEndpoint , grpc .WithInsecure (), grpc .WithBlock ())
151
151
if err == nil {
152
152
mountClient := NewMountClient (conn )
@@ -155,7 +155,7 @@ func (d *Driver) mountBlobfuseWithProxy(args string, protocol string, authEnv []
155
155
Protocol : protocol ,
156
156
AuthEnv : authEnv ,
157
157
}
158
- klog .V (2 ).Infof ("calling BlobfuseProxy: MountAzureBlob function" )
158
+ klog .V (2 ).Infof ("begin to mount with blobfuse proxy, protocol: %s, args: %s" , protocol , args )
159
159
resp , err = mountClient .service .MountAzureBlob (context .TODO (), & mountreq )
160
160
if err != nil {
161
161
klog .Error ("GRPC call returned with an error:" , err )
@@ -168,15 +168,16 @@ func (d *Driver) mountBlobfuseWithProxy(args string, protocol string, authEnv []
168
168
func (d * Driver ) mountBlobfuseInsideDriver (args string , protocol string , authEnv []string ) (string , error ) {
169
169
var cmd * exec.Cmd
170
170
171
- klog . V ( 2 ). Infof ( "mounting blobfuse inside driver" )
171
+ mountLog := "mount inside driver with"
172
172
if protocol == Fuse2 {
173
- klog . V ( 2 ). Infof ( "using blobfuse V2 to mount" )
173
+ mountLog += " v2"
174
174
args = "mount " + args
175
175
cmd = exec .Command ("blobfuse2" , strings .Split (args , " " )... )
176
176
} else {
177
- klog . V ( 2 ). Infof ( "using blobfuse V1 to mount" )
177
+ mountLog += " v1"
178
178
cmd = exec .Command ("blobfuse" , strings .Split (args , " " )... )
179
179
}
180
+ klog .V (2 ).Infof ("%s, protocol: %s, args: %s" , mountLog , protocol , args )
180
181
181
182
cmd .Env = append (os .Environ (), authEnv ... )
182
183
output , err := cmd .CombinedOutput ()
0 commit comments