-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix VmwareengineExternalAddress
and VmwareengineExternalAccessRule
sweepers, refactor VmwareengineCluster
sweeper to use shared function
#11069
Conversation
… identify parental resources to look for sweepable resources under
…r.ListParentResourcesInLocation`
mmv1/third_party/terraform/services/vmwareengine/resource_vmwareengine_cluster_sweeper.go
Show resolved
Hide resolved
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 3828 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 3829 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
...hird_party/terraform/services/vmwareengine/resource_vmwareengine_external_address_sweeper.go
Outdated
Show resolved
Hide resolved
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 3831 Click here to see the affected service packages
Action takenFound 7 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
Tests analyticsTotal tests: 3831 Click here to see the affected service packages
Action takenFound 7 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
… through locations and parent resources
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
VmwareengineExternalAddress
sweeper, refactor VmwareengineCluster
sweeper to use shared functionVmwareengineExternalAddress
and VmwareengineExternalAddress
sweepers, refactor VmwareengineCluster
sweeper to use shared function
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 3837 Click here to see the affected service packages
Action takenFound 8 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
Tests analyticsTotal tests: 3837 Click here to see the affected service packages
Action takenFound 7 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
VmwareengineExternalAddress
and VmwareengineExternalAddress
sweepers, refactor VmwareengineCluster
sweeper to use shared functionVmwareengineExternalAddress
and VmwareengineExternalAccessRule
sweepers, refactor VmwareengineCluster
sweeper to use shared function
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I recall correctly, the issue here is that the parent resources can't be deleted unless all child resources are already deleted; is that correct?
LGTM
Were you able to test these manually? |
Yeah - here are some examples VmwareengineCluster - this example finds a parent private cloud resource and lists 1 cluster found within it. However the cluster is a management cluster and cannot be deleted. VmwareengineExternalAddress - this finds an instance of the parent private cloud resource, but when listing external addresses it finds none VmwareengineExternalAccessRule - this finds an instance of the parent network policy resource, but when listing external access rules it finds none |
Yes, when the parent resource contains child resources it is in use and cannot be deleted, and there was no method of deleting those child resources prior to this PR. Thanks for the review! |
…` sweepers, refactor `VmwareengineCluster` sweeper to use shared function (GoogleCloudPlatform#11069)
…` sweepers, refactor `VmwareengineCluster` sweeper to use shared function (GoogleCloudPlatform#11069)
…` sweepers, refactor `VmwareengineCluster` sweeper to use shared function (GoogleCloudPlatform#11069)
Fixes hashicorp/terraform-provider-google#18574
Lots of generated VMware Engine sweepers don't work, and this impacts contributions related to VMware Engine.
Release Note Template for Downstream PRs (will be copied)