mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 23:57:49 +00:00
Add some more logging so that we can debug PD delete errors.
This commit is contained in:
parent
0f3740501b
commit
0bf936d23a
@ -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