From 0bf936d23a5e2899692fcd11d4f1f1012062e587 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Wed, 17 Jun 2015 22:13:34 -0700 Subject: [PATCH] Add some more logging so that we can debug PD delete errors. --- test/e2e/pd.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/e2e/pd.go b/test/e2e/pd.go index 712015af334..eff62754fb9 100644 --- a/test/e2e/pd.go +++ b/test/e2e/pd.go @@ -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 {