Skip to content

Conversation

@Celestial-0
Copy link
Contributor

This PR updates the deprecated ubuntu-2004-lts image family to ubuntu-2204-lts across the module and example configurations.

  • Updated the default value of source_image_family inside the mig-template module.
  • Updated all affected example files to reference ubuntu-2204-lts instead of the removed ubuntu-2004-lts image family.

Reason

The ubuntu-2004-lts family has been deprecated and is no longer available in the ubuntu-os-cloud GCP project, causing terraform apply to fail when running multiple examples from this repository.

Testing

  • Verified the change by running terraform plan and terraform apply on updated examples inside my GCP environment.
  • Verified the image family ubuntu-2204-lts is available via:
gcloud compute images list --project=ubuntu-os-cloud --filter="family=ubuntu-2204-lts"

Related Issue

Fixes #512

Additional Information

This issue was encountered while running examples inside Qwiklabs GCP Cloud Shell.

Note

This issue was encountered while running the Load Balancing: HTTP(S) Load Balancer with Cloud CDN GSP206 lab on Google Cloud Skills Boost. Updating the image family resolves the failure and allows learners to complete the lab successfully.

@Celestial-0 Celestial-0 requested review from a team, ayushmjain, imrannayer and q2w as code owners June 13, 2025 14:19
@google-cla
Copy link

google-cla bot commented Jun 13, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@apeabody
Copy link
Contributor

/gcbrun

Copy link
Contributor

@apeabody apeabody left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @Celestial-0!

@apeabody
Copy link
Contributor

apeabody commented Jun 13, 2025

Changed to chore as this doesn't include any functional changes to the module itself.

@apeabody apeabody changed the title fix: update all ubuntu image families to ubuntu-2204-lts (fixes #512) chore: update all ubuntu image families to ubuntu-2204-lts (fixes #512) Jun 13, 2025
@apeabody apeabody merged commit 0ae3065 into terraform-google-modules:main Jun 13, 2025
4 checks passed
@Celestial-0
Copy link
Contributor Author

Thank you @apeabody and the team for reviewing and merging this PR! 🙏

I encountered this issue while working through the Google Cloud Skills Boost lab, and I'm glad I could contribute a fix that may help future learners and users. Appreciate the quick review and helpful feedback!

Looking forward to contributing more in the future. 🚀

@Celestial-0 Celestial-0 deleted the fix/update-ubuntu-image branch June 14, 2025 04:16
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.

Example multi-backend-multi-mig-bucket-https-lb fails: ubuntu-2004-lts image not found

2 participants