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