Skip to content

Fix terraform feature OpenPGP error on Ubuntu 26.04 (resolute)#1683

Draft
Kaniska244 with Copilot wants to merge 4 commits into
mainfrom
copilot/add-tests-terraform-ubuntu-26-04
Draft

Fix terraform feature OpenPGP error on Ubuntu 26.04 (resolute)#1683
Kaniska244 with Copilot wants to merge 4 commits into
mainfrom
copilot/add-tests-terraform-ubuntu-26-04

Conversation

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

The terraform feature fails on Ubuntu 26.04 ("Resolute Raccoon") with No valid OpenPGP data found. Ubuntu Noble and Debian Trixie already use a newer GPG key/repo format via NEW_GPG_CODENAMES, but resolute was missing from that list and fell back to the incompatible legacy path.

Changes

  • src/terraform/install.sh: Add resolute to NEW_GPG_CODENAMES so the new GPG repo setup path is used on Ubuntu 26.04; update related comments.

    # This is because ubuntu noble, ubuntu resolute and debian trixie don't support the old format of GPG keys and validation
    NEW_GPG_CODENAMES="trixie noble resolute"
  • test/terraform/scenarios.json: Add install_in_ubuntu_resolute and install_in_ubuntu_resolute_sentinel scenarios against the ubuntu:resolute image (matching the image-tag convention used by other features).

  • test/terraform/install_in_ubuntu_resolute.sh / install_in_ubuntu_resolute_sentinel.sh: New test scripts mirroring the noble equivalents, omitting the vscode user check since the plain ubuntu:resolute image has no such user.

Notes

ubuntu:26.04 reports VERSION_CODENAME=resolute; with this change the detection logic sets IS_GPG_NEW=1, activating the workaround.

Copilot AI changed the title [WIP] Add tests for terraform on ubuntu 26.04 Fix terraform feature OpenPGP error on Ubuntu 26.04 (resolute) Jul 8, 2026
Copilot AI requested a review from Kaniska244 July 8, 2026 14:27
@Kaniska244

Copy link
Copy Markdown
Contributor

@copilot Can you use mcr.microsoft.com/devcontainers/base:resolute base images for resolute tests instead of ubuntu:resolute? The current base image appears to have utilities missing.

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Can you use mcr.microsoft.com/devcontainers/base:resolute base images for resolute tests instead of ubuntu:resolute? The current base image appears to have utilities missing.

Switched both resolute scenarios to mcr.microsoft.com/devcontainers/base:resolute and restored the vscode user check in the test scripts to match the noble tests. Done in 5cb8a68.

@Kaniska244

Copy link
Copy Markdown
Contributor

@copilot Do a version bump for the terraform feature for this change.

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Do a version bump for the terraform feature for this change.

Bumped the terraform feature version from 1.4.3 to 1.4.4 in 046a44c.

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.

No valid OpenPGP data found on ubuntu 26.04.

2 participants