mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 04:52:08 +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
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user