@@ -6,18 +6,19 @@ import (
66 "encoding/json"
77 "errors"
88 "fmt"
9- "github.com/hpe-storage/common-host-libs/chapi"
10- "github.com/hpe-storage/common-host-libs/connectivity"
11- "github.com/hpe-storage/common-host-libs/dockerplugin/plugin"
12- "github.com/hpe-storage/common-host-libs/dockerplugin/provider"
13- log "github.com/hpe-storage/common-host-libs/logger"
14- "github.com/hpe-storage/common-host-libs/model"
159 "net/http"
1610 "os"
1711 "reflect"
1812 "strconv"
1913 "strings"
2014 "time"
15+
16+ "github.com/hpe-storage/common-host-libs/chapi"
17+ "github.com/hpe-storage/common-host-libs/connectivity"
18+ "github.com/hpe-storage/common-host-libs/dockerplugin/plugin"
19+ "github.com/hpe-storage/common-host-libs/dockerplugin/provider"
20+ log "github.com/hpe-storage/common-host-libs/logger"
21+ "github.com/hpe-storage/common-host-libs/model"
2122)
2223
2324const (
@@ -130,7 +131,7 @@ func VolumeDriverMount(w http.ResponseWriter, r *http.Request) {
130131 return
131132 }
132133 volume := volResp .Volume
133- log .Trace ("retrieved volume response from container provider for volume: %+v" , volume )
134+ log .Tracef ("retrieved volume response from container provider for volume: %+v" , volume )
134135
135136 //4. Get mounts from host
136137 err = chapiClient .GetMounts (& respMount , volume .SerialNumber )
@@ -480,7 +481,7 @@ func cleanupStaleMounts(containerProviderClient *connectivity.Client, chapiClien
480481 // 1. the volume is not in use
481482 // 2. the volume is not connected to this iscsi/fc host
482483 if ! volumeInfo .InUse || (! isCurrentHostAttachedIscsi (volumeInfo , pluginReq ) && ! isCurrentHostAttachedFC (volumeInfo , pluginReq )) {
483- log .Tracef ("device state is %s, execute unmount on existing mounts for device %s" , device .State , volumeInfo .InUse , device .MpathName )
484+ log .Tracef ("device state is %s, execute unmount on existing mounts for device %v % s" , device .State , volumeInfo .InUse , device .MpathName )
484485 // check if volume is not in use or in use by a different host
485486 // iterate through all the mounts and unmount
486487 for _ , mount := range respMount {
0 commit comments