Bug 1963981

Summary: [cloud-init] From RHEL 82+ cloud-init no longer displays sshd keys fingerprints from instance launched from a backup image [rhel-8.4.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: cloud-initAssignee: Emanuele Giuseppe Esposito <eesposit>
Status: CLOSED CURRENTRELEASE QA Contact: xiachen
Severity: high Docs Contact: Jiri Herrmann <jherrman>
Priority: unspecified    
Version: 8.2CC: davdunc, eesposit, eterrell, huzhao, jgreguske, jherrman, linl, mmatsuya, mrezanin, xiachen, xiliang, yacao, ymao
Target Milestone: betaKeywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cloud-init-20.3-10.el8_4.4 Doc Type: Bug Fix
Doc Text:
.SSH keys are now generated correctly on EC2 instances created from a backup AMI Previously, when creating a new Amazon EC2 instance of RHEL 8 from a backup Amazon Machine Image (AMI), `cloud-init` deleted existing SSH keys on the VM but did not create new ones. Consequently, the VM in some cases could not connect to the host. This problem has been fixed for newly created RHEL 8.5 VMs. For VMs that were upgraded from RHEL 8.4 or earlier, you must work around the issue manually. To do so, edit the `cloud.cfg` file and changing the `ssh_genkeytypes: ~` line to `ssh_genkeytypes: ['rsa', 'ecdsa', 'ed25519']`. This makes it possible for SSH keys to be deleted and generated correctly when provisioning a RHEL 8 VM in the described circumstances.
Story Points: ---
Clone Of: 1957532 Environment:
Last Closed: 2022-06-15 13:53:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1957532, 1970909    
Bug Blocks:    

Comment 8 xiachen 2022-06-15 13:53:54 UTC
Since the problem described in this bug report should be resolved, so close it.