Bug 1789719
Summary: | [cloud-init][rhel-8.2.0] Failed to write ssh keys to authorized_keys for cloud-user for OpenStack instance | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Huijuan Zhao <huzhao> | ||||
Component: | cloud-init | Assignee: | Eduardo Otubo <eterrell> | ||||
Status: | CLOSED NEXTRELEASE | QA Contact: | Huijuan Zhao <huzhao> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 8.2 | CC: | ailan, berrange, eterrell, jgreguske, jwboyer, knoel, ribarry, vkuznets, vpoliset, xiachen, yacao, yoguo, yuxisun | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-04-21 13:00:11 UTC | Type: | Bug | ||||
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: | 1803928, 1831646 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Huijuan Zhao
2020-01-10 09:18:06 UTC
Also meet this issue when disable nested virtualization. Test ENV: RHEL-8.2.0-20191219.0-x86_64 & cloud-init-18.5-9.el8 + Flavor(m1.medium) Detail test steps please refer to https://bugzilla.redhat.com/show_bug.cgi?id=1785648#c3 Update more test scenarios: 1. Scenario 1: RHEL-8.2(4.18.0-167.el8.x86_64) + cloud-init-18.5-8.el8 + Flavor(m1.medium) Can reproduce the issue (reproducible rate: about 50%) 2. Scenario 2: RHEL-8.2(4.18.0-167.el8.x86_64) + cloud-init-18.5-9.el8 + Flavor (m1.medium) Can reproduce the issue (tested 2 times, both can reproduce) 3. Scenario 1: RHEL-7.8(3.10.0-1121.el7.x86_64) + cloud-init-18.5-6.el7 + Flavor(ci.nested.virt.m1.medium, m1.medium, ci.m1.micro) Can NOT reproduce the issue (tested 4 times, did not reproduce) Test platform: OpenStack Test steps: 1.Launch instance A with image RHEL-8.2.0-20191219.0-x86_64 & cloud-init-18.5-8.el8, Flavor is m1.medium Login instance A with cloud-user successful. 2.Login instance A, clear instance A with below commands # rm -rf /var/lib/cloud /var/log/cloud-init* /var/log/messages /etc/sudoers.d/* /mnt/swapfile /var/lib/NetworkManager/dhclient-* /etc/resolv.conf # userdel -rf cloud-user # hostnamectl set-hostname localhost.localdomain # sed -i '/cloud-user/d' /etc/sudoers 3.Create image with instance A # nova stop InstanceA # nova image-create --poll InstanceA imagename 4.Launch a new instance B with image created in step3. 5.Login instance B with cloud-user failed: # ssh cloud-user@IP cloud-user@IP: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). 6. Reboot instance B, login it again with cloud-user successful According to the above steps: rhel-8.2(both cloud-init-18.5-8.el8 and cloud-init-18.5-9.el8) can reproduce the issue with about 50% reproducible rate rhel-7.8 did NOT reproduce the issue. Eduardo, if you need the test ENV to debug the issue, please ping me anytime, thanks! |