Closed stevoscot92 closed 3 years ago
Hi there @stevoscot92 thanks for opening up this issue. We will take a look as soon as we get a chance to see what might be going on. Cheers!
Hello, @seventieskid implemented a solution for this, and here are the binaries you can use to test it. https://app.circleci.com/pipelines/github/hashicorp/packer/8242/workflows/ff70433d-686c-4fb6-b8b9-d9bb214ab628/jobs/96190/artifacts Please, let us know if it works as expected. Thanks!
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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Overview of the Issue
GCE temporary builder instance is unable to import the ssh pub key for OSlogin. I believe the specific request made to add the temp key generated by packer to login profile is users.importSshPublicKey. This appears to be the root cause of the issue I am having. It appears the request made is not including the user which is resulting in the error. I have tested this by executing the request, with user specified, on the GCE temporary builder instance where the error is occurring. This request is successful when the user is specified. Whereas if I execute this request without specifying the user, the same error occurs.
Reproduction Steps
Steps to reproduce this issue
Packer version
Packer v1.6.4
Simplified Packer Buildfile
Operating system and Environment details
OS: RHEL 7
Log Fragments and crash.log files