Commit 538d1272 authored by Satnam Singh's avatar Satnam Singh

Merge pull request #10001 from brendandburns/e2e2

Add some more logging so that we can debug PD delete errors.
parents 087b6e32 0bf936d2
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment