@@ -37,6 +37,7 @@ import (
37
37
38
38
volumeutil "k8s.io/kubernetes/pkg/volume/util"
39
39
"k8s.io/kubernetes/test/e2e/framework"
40
+ e2elog "k8s.io/kubernetes/test/e2e/framework/log"
40
41
"k8s.io/kubernetes/test/e2e/storage/drivers"
41
42
"k8s.io/kubernetes/test/e2e/storage/testsuites"
42
43
"k8s.io/kubernetes/test/e2e/storage/utils"
@@ -715,7 +716,7 @@ func checkPodInfo(cs clientset.Interface, namespace, driverPodName, driverContai
715
716
if err != nil {
716
717
return fmt .Errorf ("could not load CSI driver logs: %s" , err )
717
718
}
718
- framework .Logf ("CSI driver logs:\n %s" , log )
719
+ e2elog .Logf ("CSI driver logs:\n %s" , log )
719
720
// Find NodePublish in the logs
720
721
foundAttributes := sets .NewString ()
721
722
logLines := strings .Split (log , "\n " )
@@ -734,7 +735,7 @@ func checkPodInfo(cs clientset.Interface, namespace, driverPodName, driverContai
734
735
var call MockCSICall
735
736
err := json .Unmarshal ([]byte (line ), & call )
736
737
if err != nil {
737
- framework .Logf ("Could not parse CSI driver log line %q: %s" , line , err )
738
+ e2elog .Logf ("Could not parse CSI driver log line %q: %s" , line , err )
738
739
continue
739
740
}
740
741
if call .Method != "/csi.v1.Node/NodePublishVolume" {
@@ -745,7 +746,7 @@ func checkPodInfo(cs clientset.Interface, namespace, driverPodName, driverContai
745
746
vv , found := call .Request .VolumeContext [k ]
746
747
if found && v == vv {
747
748
foundAttributes .Insert (k )
748
- framework .Logf ("Found volume attribute %s: %s" , k , v )
749
+ e2elog .Logf ("Found volume attribute %s: %s" , k , v )
749
750
}
750
751
}
751
752
// Process just the first NodePublish, the rest of the log is useless.
@@ -767,7 +768,7 @@ func checkPodInfo(cs clientset.Interface, namespace, driverPodName, driverContai
767
768
func waitForCSIDriver (cs clientset.Interface , driverName string ) error {
768
769
timeout := 4 * time .Minute
769
770
770
- framework .Logf ("waiting up to %v for CSIDriver %q" , timeout , driverName )
771
+ e2elog .Logf ("waiting up to %v for CSIDriver %q" , timeout , driverName )
771
772
for start := time .Now (); time .Since (start ) < timeout ; time .Sleep (framework .Poll ) {
772
773
_ , err := cs .StorageV1beta1 ().CSIDrivers ().Get (driverName , metav1.GetOptions {})
773
774
if ! errors .IsNotFound (err ) {
@@ -780,9 +781,9 @@ func waitForCSIDriver(cs clientset.Interface, driverName string) error {
780
781
func destroyCSIDriver (cs clientset.Interface , driverName string ) {
781
782
driverGet , err := cs .StorageV1beta1 ().CSIDrivers ().Get (driverName , metav1.GetOptions {})
782
783
if err == nil {
783
- framework .Logf ("deleting %s.%s: %s" , driverGet .TypeMeta .APIVersion , driverGet .TypeMeta .Kind , driverGet .ObjectMeta .Name )
784
+ e2elog .Logf ("deleting %s.%s: %s" , driverGet .TypeMeta .APIVersion , driverGet .TypeMeta .Kind , driverGet .ObjectMeta .Name )
784
785
// Uncomment the following line to get full dump of CSIDriver object
785
- // framework .Logf("%s", framework.PrettyPrint(driverGet))
786
+ // e2elog .Logf("%s", framework.PrettyPrint(driverGet))
786
787
cs .StorageV1beta1 ().CSIDrivers ().Delete (driverName , nil )
787
788
}
788
789
}
0 commit comments