Skip to content
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

Added the check before removing default ingress rules #580

Merged

Conversation

athiruma
Copy link
Collaborator

  1. Added the condition before deleting the ingress rules of SecurityGroup
Why delete the ingress rule?
If X name SG is added as an ingress rule to another Y name SG. Before deleting the X name Sg needs to delete the ingress rule in Y name SG. 

@athiruma athiruma added the bug Something isn't working label Mar 22, 2023
@athiruma athiruma requested a review from ebattat March 22, 2023 07:57
@athiruma athiruma self-assigned this Mar 22, 2023
@@ -200,7 +200,7 @@ def zombie_cluster_volume(self, vpc_id: str = '', cluster_tag_vpc: str = ''):
if delete_cluster_resource and self.delete:
self.delete_ec2_resource.delete_zombie_resource(resource_id=zombie, resource='ec2_volume')
else:
if self._force_delete:
if self._force_delete and self.delete:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we need self.delete in addition to self._force_delete ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double verrification

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Collaborator

@ebattat ebattat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/LGTM

@ebattat ebattat merged commit 5bf2c02 into redhat-performance:main Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants