Skip to content

Conversation

@SwarnaBharathiMantena
Copy link
Contributor

@SwarnaBharathiMantena SwarnaBharathiMantena commented Dec 30, 2025

Using a specific reservation block to create a GKE nodepool resulted in a deployment failure.
Fixed it by updating the logic.
Also, added an integration test so that this feature is ensured to be working with future changes.

Error:

Error: error creating NodePool: googleapi: Error 404: Google Compute
  Engine: reservation "h4d-reservation/reservationBlocks/h4d-reservation-block-0001"
  not found for node pool "h4d-highmem-192-lssd-h4d-pool" at zone "us-central1-b".

@SwarnaBharathiMantena SwarnaBharathiMantena added the release-bugfix Added to release notes under the "Bug fixes" heading. label Dec 30, 2025
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @SwarnaBharathiMantena, 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 resolves a critical issue preventing GKE node pool deployments from successfully utilizing specific reservation blocks, which was caused by an incorrect format in the reservation name construction. The core change involves refining the Terraform logic to ensure accurate referencing of reservations. To bolster the reliability of this functionality, a new integration test has been added to the daily test suite, providing continuous validation for GKE node pool reservation capabilities.

Highlights

  • GKE Node Pool Reservation Fix: Corrected the logic for constructing GKE node pool reservation names in reservation_definitions.tf. The previous implementation could lead to "reservation not found" errors by incorrectly formatting the reservation path. The fix ensures that reservation names are consistently formatted as projects/{project}/reservations/{name}.
  • New Integration Test for Reservations: Introduced a new daily integration test suite, including gke-reservation-block.yaml and gke-reservation-block.yml, to validate the correct usage and functionality of GKE node pool reservation blocks. This test will help prevent regressions and ensure the stability of reservation-based GKE deployments.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request addresses a bug that caused deployment failures when using a specific reservation block with a GKE node pool. The fix correctly modifies the reservation value passed to the API. Additionally, a new integration test is introduced to validate this fix. My review identified a couple of issues within the new test configuration that would prevent it from running as intended. I've provided specific suggestions to correct the test setup, ensuring the fix is properly validated.

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

Labels

release-bugfix Added to release notes under the "Bug fixes" heading.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant