Commit 0bf936d2 authored by Brendan Burns's avatar Brendan Burns

Add some more logging so that we can debug PD delete errors.

parent 0f374050
...@@ -214,7 +214,12 @@ func deletePD(pdName string) error { ...@@ -214,7 +214,12 @@ func deletePD(pdName string) error {
zone := testContext.CloudConfig.Zone zone := testContext.CloudConfig.Zone
// TODO: make this hit the compute API directly. // 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 { } else {
volumes, ok := testContext.CloudConfig.Provider.(aws_cloud.Volumes) volumes, ok := testContext.CloudConfig.Provider.(aws_cloud.Volumes)
if !ok { 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