Bug 1879483

Summary: The cloudinit does not set the password for rhel vms
Product: Container Native Virtualization (CNV) Reporter: Tomas Jelinek <tjelinek>
Component: SSPAssignee: Vatsal Parekh <vparekh>
Status: CLOSED ERRATA QA Contact: Israel Pinto <ipinto>
Severity: high Docs Contact:
Priority: high    
Version: 2.5.0CC: cnv-qe-bugs, fdeutsch, ksimon, oyahud
Target Milestone: ---   
Target Release: 2.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kubevirt-ssp-operator-container-v2.5.0-50 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-17 13:24:24 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:

Description Tomas Jelinek 2020-09-16 11:47:58 UTC
Description of problem:
If you use the "Red Hat Enterprise Linux 8.2 Update KVM Guest Image" from https://access.redhat.com/downloads/content/479/ver=/rhel---8/8.2/x86_64/product-software
the cloud-init does not set the password. I have tried to use the one described in here: https://access.redhat.com/solutions/4985001
e.g. 
#cloud-config
user: admin
password: q1w2e3
chpasswd: {expire: False}
ssh_pwauth: True

and that did work. Im not sure what exactly fixed it from it, but the one which is in the common-templates today does not work and the one I have pasted does.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Vatsal Parekh 2020-09-21 09:22:38 UTC
@Tomas, can you please confirm which user id were you trying to login with in Rhel 8.2?

Comment 2 Tomas Jelinek 2020-09-21 09:37:39 UTC
all I could think of :) I have tried the same username as the password is, I have tried "root" and "default" etc. But I believe the username and password was supposed to be the same.

Comment 3 Vatsal Parekh 2020-09-21 09:56:24 UTC
(In reply to Tomas Jelinek from comment #2)
> all I could think of :) I have tried the same username as the password is, I
> have tried "root" and "default" etc. But I believe the username and password
> was supposed to be the same.

Looking at the RHEL docs it seems that default user would be `cloud-user`
Can you please verify this again on the same image?
I tried to check this but the cluster seemed to have some issue.

Comment 4 Vatsal Parekh 2020-09-23 09:14:02 UTC
A UX improvement here would be to specify the default cloud-user usernames in the cloud-init of the default templates
PR doing that: https://github.com/kubevirt/common-templates/pull/224

Comment 5 Tomas Jelinek 2020-09-23 09:25:26 UTC
(In reply to Vatsal Parekh from comment #4)
> A UX improvement here would be to specify the default cloud-user usernames
> in the cloud-init of the default templates
> PR doing that: https://github.com/kubevirt/common-templates/pull/224

Thank you!

Comment 6 Israel Pinto 2020-10-05 11:20:37 UTC
Verify with:
HCO:  hyperconverged-cluster-operator-container-v2.5.0-42 
RHEL: user is cloud-user
Fedora: user is fedora

Comment 9 errata-xmlrpc 2020-11-17 13:24:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Virtualization 2.5.0 Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:5127