Skip to content
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 setting iap_tunnel_launch_wait for GCP doesn't work #13164

Open
ae07177 opened this issue Sep 12, 2024 · 1 comment
Open

Packer setting iap_tunnel_launch_wait for GCP doesn't work #13164

ae07177 opened this issue Sep 12, 2024 · 1 comment
Labels

Comments

@ae07177
Copy link

ae07177 commented Sep 12, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.

Overview of the Issue

I have defined iap_tunnel_launch_wait to 600 ( 10 mins )
However just in 5 mins it fails with error ( retry count exhausted ) below
[]string{"retry count exhausted. Last err: Tunnel start: ERROR: (gcloud.compute.start-iap-tunnel) While checking if a connection can be made: Error while connecting [4003: 'failed to connect to backend']. (Failed to connect to port 22)\n"}

A paragraph or two about the issue you're experiencing.
I am trying to create WIndows 2022 Image in GCP.
I am trying to connect using IAP tunnelling without public IP.
IAP tunnelling works fine for me locally, but it takes 10 minutes to get started.
I have defined iap_tunnel_launch_wait to 600 ( 10 mins )
However just in 5 mins it fails with error below
[]string{"retry count exhausted. Last err: Tunnel start: ERROR: (gcloud.compute.start-iap-tunnel) While checking if a connection can be made: Error while connecting [4003: 'failed to connect to backend']. (Failed to connect to port 22)\n"}

Reproduction Steps

Steps to reproduce this issue

Packer version

From packer version

Simplified Packer Template

If the file is longer than a few dozen lines, please include the URL to the
gist of the log or use the Github detailed
format

instead of posting it directly in the issue.

Operating system and Environment details

OS, Architecture, and any other information you can provide about the
environment.

Log Fragments and crash.log files

Include appropriate log fragments. If the log is longer than a few dozen lines,
please include the URL to the gist of the log or
use the Github detailed format instead of posting it directly in the issue.

Set the env var PACKER_LOG=1 for maximum log detail.

@ae07177 ae07177 added the bug label Sep 12, 2024
@ae07177
Copy link
Author

ae07177 commented Sep 12, 2024

Attaching screenshot of issue
Screenshot 2024-09-13 at 1 06 43 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant