-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packer issue: Non-retryable tunnel error: ERROR: (gcloud.auth.activate-service-account) #11245
Comments
We use a very similar setup, but we got another error:
If I look at the timestamps, then I have the feeling that packer is already giving up the tunnel, before the instance got started. So Packer thinks the Compute Engine instance is already running, while it is still in the startup phase. We have this issue since 26-08-2021. I have the feeling that something has changed in the Google APIs that causes this issue. If I look at the last successful build, the "Step Launch IAP tunnel" should take at least one minute:
|
I think this is related: |
I did update the googlecompute plugin but it didn't solved the problem. Any other pointer please. |
This was another issue, so unrelated to the issue from the issue starter. |
This issue has been migrated to hashicorp/packer-plugin-googlecompute#42 due to the Packer Plugin split. Please follow the new issue for updates. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Overview of the Issue
I am trying to create a simple image using Packer in GCP. I have all the required access to GCP console through CLI.
On triggering the Packer.json script it fails with below error:
Can anyone suggest a resolution for this?
Reproduction Steps
First created the VPC, subnet and firewall rule to allow ssh IAP access in this VPC.
I have created a service account with the following permissions:
Packer version
Tried on 1.7.4 as well as 1.6.6
Simplified Packer Buildfile
{
"variables": {
"project_id": "my-gcp-project",
"image_name": "my-packer-image",
"instance_name": "my-packer-instance",
"service_account_email": "my-service-account@my-gcp-project.iam.gserviceaccount.com",
"zone": "us-east4-c",
"subnetwork": "my-gcp-subnet"
},
The text was updated successfully, but these errors were encountered: