@@ -197,11 +197,11 @@ var _ = SIGDescribe("Mount propagation", func() {
197
197
// Higher pids are more likely to be created after the first one
198
198
kubeletPids := strings .Split (strings .TrimSuffix (kubeletPid , "\n " ), " " )
199
199
enterKubeletMountNS := fmt .Sprintf ("nsenter -t %s -m" , kubeletPids [len (kubeletPids )- 1 ])
200
- framework .Logf (enterKubeletMountNS )
201
200
202
201
// Check that the master and host mounts are propagated to the container runtime's mount namespace
203
202
for _ , mountName := range []string {"host" , master .Name } {
204
203
cmd := fmt .Sprintf ("%s cat \" %s/%s/file\" " , enterKubeletMountNS , hostDir , mountName )
204
+ framework .Logf ("running command '%s' on node '%s'" , cmd , node .Name )
205
205
output , err := hostExec .IssueCommandWithResult (ctx , cmd , node )
206
206
framework .ExpectNoError (err , "host container namespace should see mount from %s: %s" , mountName , output )
207
207
output = strings .TrimSuffix (output , "\n " )
@@ -211,6 +211,7 @@ var _ = SIGDescribe("Mount propagation", func() {
211
211
// Check that the slave, private, and default mounts are not propagated to the container runtime's mount namespace
212
212
for _ , podName := range []string {slave .Name , private .Name , defaultPropagation .Name } {
213
213
cmd := fmt .Sprintf ("%s test ! -e \" %s/%s/file\" " , enterKubeletMountNS , hostDir , podName )
214
+ framework .Logf ("running command '%s' on node '%s'" , cmd , node .Name )
214
215
output , err := hostExec .IssueCommandWithResult (ctx , cmd , node )
215
216
framework .ExpectNoError (err , "host container namespace shouldn't see mount from %s: %s" , podName , output )
216
217
}
0 commit comments