Skip to content

Fix resource leaks in xds test#26967

Merged
ericgribkoff merged 3 commits intogrpc:masterfrom
ericgribkoff:fix_backend_leak
Aug 11, 2021
Merged

Fix resource leaks in xds test#26967
ericgribkoff merged 3 commits intogrpc:masterfrom
ericgribkoff:fix_backend_leak

Conversation

@ericgribkoff
Copy link
Copy Markdown
Contributor

The circuit breaking test creates its own backend services outside of the normal flow, which can potentially be leaked, preventing other GCP resources from being deleted; this adjusts the clean-up step for a subsequent run with --use_existing_gcp_resources to be able to discover - and more importantly, delete - these leaked backend services. More context on b/192095168.

The second commit ensures that disk images are deleted when the instance group is terminated, which is the default when creating via gcloud (https://cloud.google.com/sdk/gcloud/reference/compute/instance-templates/create#--boot-disk-auto-delete) but not when using the rest API (a regular clean-up job has been running to delete stranded disks, but this removes the leak altogether).

@ericgribkoff ericgribkoff added the release notes: no Indicates if PR should not be in release notes label Aug 11, 2021
@ericgribkoff ericgribkoff requested a review from menghanl August 11, 2021 06:50
@ericgribkoff ericgribkoff merged commit 59d7f38 into grpc:master Aug 11, 2021
@ericgribkoff ericgribkoff deleted the fix_backend_leak branch August 11, 2021 19:42
ericgribkoff added a commit to ericgribkoff/grpc that referenced this pull request Aug 11, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
ericgribkoff added a commit to ericgribkoff/grpc that referenced this pull request Aug 11, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
ericgribkoff added a commit to ericgribkoff/grpc that referenced this pull request Aug 11, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
ericgribkoff added a commit to ericgribkoff/grpc that referenced this pull request Aug 11, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
ericgribkoff added a commit to ericgribkoff/grpc that referenced this pull request Aug 11, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
ericgribkoff added a commit to ericgribkoff/grpc that referenced this pull request Aug 11, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
ericgribkoff added a commit to ericgribkoff/grpc that referenced this pull request Aug 11, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
ericgribkoff added a commit to ericgribkoff/grpc that referenced this pull request Aug 11, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
ericgribkoff added a commit to ericgribkoff/grpc that referenced this pull request Aug 11, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
ericgribkoff added a commit to ericgribkoff/grpc that referenced this pull request Aug 11, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
ericgribkoff added a commit to ericgribkoff/grpc that referenced this pull request Aug 11, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
srini100 pushed a commit that referenced this pull request Aug 12, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
srini100 pushed a commit that referenced this pull request Aug 12, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
srini100 pushed a commit that referenced this pull request Aug 12, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
srini100 pushed a commit that referenced this pull request Aug 12, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
srini100 pushed a commit that referenced this pull request Aug 12, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
srini100 pushed a commit that referenced this pull request Aug 12, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
srini100 pushed a commit that referenced this pull request Aug 12, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
srini100 pushed a commit that referenced this pull request Aug 12, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
srini100 pushed a commit that referenced this pull request Aug 12, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
srini100 pushed a commit that referenced this pull request Aug 12, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
ericgribkoff added a commit that referenced this pull request Aug 12, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
Vignesh2208 pushed a commit to Vignesh2208/grpc that referenced this pull request Aug 20, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
lidizheng pushed a commit to lidizheng/grpc that referenced this pull request Sep 23, 2021
* allow clean up of leaked cb backend services

* auto-delete disk

* yapf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants