Bug 1879483 - The cloudinit does not set the password for rhel vms
Summary: The cloudinit does not set the password for rhel vms
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: SSP
Version: 2.5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 2.5.0
Assignee: Vatsal Parekh
QA Contact: Israel Pinto
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-16 11:47 UTC by Tomas Jelinek
Modified: 2020-11-17 13:24 UTC (History)
4 users (show)

Fixed In Version: kubevirt-ssp-operator-container-v2.5.0-50
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-17 13:24:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt common-templates pull 224 0 None closed Add default cloud users to cloud-init 2020-10-04 09:14:32 UTC
Red Hat Product Errata RHEA-2020:5127 0 None None None 2020-11-17 13:24:39 UTC

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


Note You need to log in before you can comment on or make changes to this bug.