@@ -30,7 +30,6 @@ import (
30
30
"k8s.io/apimachinery/pkg/util/sets"
31
31
clientset "k8s.io/client-go/kubernetes"
32
32
"k8s.io/kubernetes/test/e2e/framework"
33
- e2elog "k8s.io/kubernetes/test/e2e/framework/log"
34
33
e2epod "k8s.io/kubernetes/test/e2e/framework/pod"
35
34
e2essh "k8s.io/kubernetes/test/e2e/framework/ssh"
36
35
testutils "k8s.io/kubernetes/test/utils"
@@ -118,22 +117,22 @@ func VerifyServeHostnameServiceUp(c clientset.Interface, ns, host string, expect
118
117
// verify service from node
119
118
func () string {
120
119
cmd := "set -e; " + buildCommand ("wget -q --timeout=0.2 --tries=1 -O -" )
121
- e2elog .Logf ("Executing cmd %q on host %v" , cmd , host )
120
+ framework .Logf ("Executing cmd %q on host %v" , cmd , host )
122
121
result , err := e2essh .SSH (cmd , host , framework .TestContext .Provider )
123
122
if err != nil || result .Code != 0 {
124
123
e2essh .LogResult (result )
125
- e2elog .Logf ("error while SSH-ing to node: %v" , err )
124
+ framework .Logf ("error while SSH-ing to node: %v" , err )
126
125
}
127
126
return result .Stdout
128
127
},
129
128
// verify service from pod
130
129
func () string {
131
130
cmd := buildCommand ("wget -q -T 1 -O -" )
132
- e2elog .Logf ("Executing cmd %q in pod %v/%v" , cmd , ns , execPod .Name )
131
+ framework .Logf ("Executing cmd %q in pod %v/%v" , cmd , ns , execPod .Name )
133
132
// TODO: Use exec-over-http via the netexec pod instead of kubectl exec.
134
133
output , err := framework .RunHostCmd (ns , execPod .Name , cmd )
135
134
if err != nil {
136
- e2elog .Logf ("error while kubectl execing %q in pod %v/%v: %v\n Output: %v" , cmd , ns , execPod .Name , err , output )
135
+ framework .Logf ("error while kubectl execing %q in pod %v/%v: %v\n Output: %v" , cmd , ns , execPod .Name , err , output )
137
136
}
138
137
return output
139
138
},
@@ -159,12 +158,12 @@ func VerifyServeHostnameServiceUp(c clientset.Interface, ns, host string, expect
159
158
// and we need a better way to track how often it occurs.
160
159
if gotEndpoints .IsSuperset (expectedEndpoints ) {
161
160
if ! gotEndpoints .Equal (expectedEndpoints ) {
162
- e2elog .Logf ("Ignoring unexpected output wgetting endpoints of service %s: %v" , serviceIP , gotEndpoints .Difference (expectedEndpoints ))
161
+ framework .Logf ("Ignoring unexpected output wgetting endpoints of service %s: %v" , serviceIP , gotEndpoints .Difference (expectedEndpoints ))
163
162
}
164
163
passed = true
165
164
break
166
165
}
167
- e2elog .Logf ("Unable to reach the following endpoints of service %s: %v" , serviceIP , expectedEndpoints .Difference (gotEndpoints ))
166
+ framework .Logf ("Unable to reach the following endpoints of service %s: %v" , serviceIP , expectedEndpoints .Difference (gotEndpoints ))
168
167
}
169
168
if ! passed {
170
169
// Sort the lists so they're easier to visually diff.
@@ -191,12 +190,12 @@ func VerifyServeHostnameServiceDown(c clientset.Interface, host string, serviceI
191
190
result , err := e2essh .SSH (command , host , framework .TestContext .Provider )
192
191
if err != nil {
193
192
e2essh .LogResult (result )
194
- e2elog .Logf ("error while SSH-ing to node: %v" , err )
193
+ framework .Logf ("error while SSH-ing to node: %v" , err )
195
194
}
196
195
if result .Code != 99 {
197
196
return nil
198
197
}
199
- e2elog .Logf ("service still alive - still waiting" )
198
+ framework .Logf ("service still alive - still waiting" )
200
199
}
201
200
return fmt .Errorf ("waiting for service to be down timed out" )
202
201
}
0 commit comments