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

Fix pytype errors and minor bugs in GCP firewall #433

Merged
merged 5 commits into from
Jun 27, 2022
Merged

Conversation

parasj
Copy link
Contributor

@parasj parasj commented Jun 27, 2022

This branch fixes some minor pytype issues from #426

@parasj parasj self-assigned this Jun 27, 2022
@parasj parasj requested a review from ShishirPatil June 27, 2022 19:42
@@ -112,7 +112,6 @@ def azure_provisioner(r):
gcp.create_ssh_key()
gcp.configure_skyplane_network()
gcp.configure_skyplane_firewall()
do_parallel(gcp.add_ips_to_firewall, spinner=True, desc="Add IP to aws security groups")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ShishirPatil Check this line, it seems to do nothing as written and isn't relevant yet since all instance IPs aren't known yet


elif current_firewall["allowed"] != fw_body["allowed"]:
create_firewall(fw_body, update_firewall=True)
logger.debug(f"[GCP] Updated firewall")

def get_vpc(self, vpc_name="skyplane"):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ShishirPatil get_vpc is unused anywhere and was causing issues since make_vpc is never defined. Please double check this block carefully.

@parasj parasj merged commit a4c6d58 into main Jun 27, 2022
@parasj parasj deleted the dev/fix_gcp_firewall branch June 27, 2022 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant