lustre cleanup#5281
Conversation
Summary of ChangesHello @aslam-quad, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request extends the cleanup.sh script to manage Google Cloud Managed Lustre instances. It introduces mechanisms to protect networks used by critical Lustre instances from deletion and adds a dedicated process to identify and delete eligible Lustre instances based on age, network protection, and exclusion criteria, thereby enhancing the script's comprehensive resource management capabilities. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds cleanup logic for Managed Lustre instances to the cleanup.sh script. The changes correctly add steps to protect networks of excluded Lustre instances and to delete unprotected instances. I've identified a potential issue in how network URIs are constructed within the process_lustre_instances function. The current implementation may not correctly handle Shared VPC scenarios, as it rebuilds the network URI assuming the network resides in the current project, which isn't always the case. I've provided a suggestion to fix this to ensure correctness and consistency with other parts of the script.
4aaec7b to
e0366bc
Compare
b86b546
into
GoogleCloudPlatform:develop
lustre cleanup
Submission Checklist
NOTE: Community submissions can take up to 2 weeks to be reviewed.
Please take the following actions before submitting this pull request.