mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +00:00
Merge pull request #10001 from brendandburns/e2e2
Add some more logging so that we can debug PD delete errors.
This commit is contained in:
commit
538d1272e5
@ -214,7 +214,12 @@ func deletePD(pdName string) error {
|
||||
zone := testContext.CloudConfig.Zone
|
||||
|
||||
// TODO: make this hit the compute API directly.
|
||||
return exec.Command("gcloud", "compute", "--project="+testContext.CloudConfig.ProjectID, "disks", "delete", "--zone="+zone, pdName).Run()
|
||||
cmd := exec.Command("gcloud", "compute", "--project="+testContext.CloudConfig.ProjectID, "disks", "delete", "--zone="+zone, pdName)
|
||||
data, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
Logf("Error deleting PD: %s (%v)", string(data), err)
|
||||
}
|
||||
return err
|
||||
} else {
|
||||
volumes, ok := testContext.CloudConfig.Provider.(aws_cloud.Volumes)
|
||||
if !ok {
|
||||
|
Loading…
Reference in New Issue
Block a user