I am getting below error below error when trying to create image for openstack using RHEL base image.
I dont have any issue in creating a VM using the same base image via openstack console and cloud-user keys are getting added without any issues. Issue is only when I try image creation using packer
Error message from packer
openstack.rhel: Error waiting for SSH: Packer experienced an authentication error when trying to connect via SSH. This can happen if your username/password are wrong. You may want to double-check your credentials as part of your debugging process. original error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
On the console of temp VM which was created by packer, i see this message
[[0;32m OK [0m] Started Apply the settings specified in cloud-config. Starting Execute cloud user/final scripts... **ci-info: no authorized ssh keys fingerprints found for user cloud-user.** <14>Oct 19 00:39:22 ec2: ........ ........ ........ [ 129.770286] cloud-init: Cloud-init v. 19.4 running 'modules:final' at Tue, 19 Oct 2021 04:39:22 +0000. Up 129.61 seconds. **[ 129.781165] cloud-init: ci-info: no authorized ssh keys fingerprints found for user cloud-user.** [ 129.784660] cloud-init: Cloud-init v. 19.4 finished at Tue, 19 Oct 2021 04:39:22 +0000. Datasource DataSourceNone. Up 129.76 seconds
I have the same issue if I use centos base image, so it doesnt seems to be an issue with Base image.