Skip to content

tools: baseimage: Add pre-flight existence checks - #2968

Open
rmuthiah wants to merge 1 commit into
google:mainfrom
rmuthiah:fail-fast
Open

tools: baseimage: Add pre-flight existence checks#2968
rmuthiah wants to merge 1 commit into
google:mainfrom
rmuthiah:fail-fast

Conversation

@rmuthiah

@rmuthiah rmuthiah commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

for GCE images and builder resources

Add pre-flight existence verification before starting image creation builds in create_gce_base_image and create_gce_fixed_kernel:

  • Check that required source images exist in their respective projects before beginning.
  • Check that the target image-name does not already exist in the target project.
  • In GceHelper.BuildImage, check that builder VM instances and attached disks do not already exist before attempting resource creation.

Assisted-by: Antrigravity:Gemini-Next

@rmuthiah
rmuthiah requested a review from ser-io August 4, 2026 21:49
…builder resources

Add pre-flight existence verification before starting image creation builds in create_gce_base_image and create_gce_fixed_kernel:
- Check that required source images exist in their respective projects before beginning.
- Check that the target image-name does not already exist in the target project.
- In GceHelper.BuildImage, check that builder VM instances and attached disks do not already exist before attempting resource creation.

Assisted-by: Jetski
TAG=agy
CONV=66c9f0ad-f2a6-4fb0-b649-690c3f4cb47c
@rmuthiah rmuthiah added kokoro:force-run Trigger a presubmit build unconditionally. kokoro:run Run e2e tests. labels Aug 4, 2026
@rmuthiah
rmuthiah enabled auto-merge August 4, 2026 23:35
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed kokoro:run Run e2e tests. kokoro:force-run Trigger a presubmit build unconditionally. labels Aug 4, 2026
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.

2 participants