@@ -1191,6 +1191,7 @@ func (c *cinderDriver) CreateVolume(config *testsuites.PerTestConfig, volType te
1191
1191
}
1192
1192
1193
1193
func (v * cinderVolume ) DeleteVolume () {
1194
+ id := v .volumeID
1194
1195
name := v .volumeName
1195
1196
1196
1197
// Try to delete the volume for several seconds - it takes
@@ -1199,16 +1200,16 @@ func (v *cinderVolume) DeleteVolume() {
1199
1200
var err error
1200
1201
timeout := time .Second * 120
1201
1202
1202
- framework .Logf ("Waiting up to %v for removal of cinder volume %s" , timeout , name )
1203
+ framework .Logf ("Waiting up to %v for removal of cinder volume %s / %s " , timeout , id , name )
1203
1204
for start := time .Now (); time .Since (start ) < timeout ; time .Sleep (5 * time .Second ) {
1204
- output , err = exec .Command ("cinder" , "delete" , name ).CombinedOutput ()
1205
+ output , err = exec .Command ("cinder" , "delete" , id ).CombinedOutput ()
1205
1206
if err == nil {
1206
- framework .Logf ("Cinder volume %s deleted" , name )
1207
+ framework .Logf ("Cinder volume %s deleted" , id )
1207
1208
return
1208
1209
}
1209
- framework .Logf ("Failed to delete volume %s: %v" , name , err )
1210
+ framework .Logf ("Failed to delete volume %s / %s : %v\n %s " , id , name , err , string ( output ) )
1210
1211
}
1211
- framework .Logf ("Giving up deleting volume %s: %v\n %s" , name , err , string (output [:]))
1212
+ framework .Logf ("Giving up deleting volume %s / %s : %v\n %s" , id , name , err , string (output [:]))
1212
1213
}
1213
1214
1214
1215
// GCE
0 commit comments