Bug 2151826

Summary: Change cloud-init's password has no effect
Product: Container Native Virtualization (CNV) Reporter: Guohua Ouyang <gouyang>
Component: User ExperienceAssignee: Ugo Palatucci <upalatuc>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.12.0CC: cnv-qe-bugs, gouyang
Target Milestone: ---Keywords: Reopened
Target Release: 4.14.0   
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: 2023-11-08 14:05:03 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 Guohua Ouyang 2022-12-08 08:57:46 UTC
Description of problem:
Create a VM which has password set in cloud-init data, login the VM with its password is okay. Then change the password in cloud-init section and restart the VM, it cannot login the VM with the new password, but login with the old password is okay.

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

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 sgott 2022-12-14 13:34:27 UTC
Closing this BZ as this is expected behavior. cloud-init implementation is OS specific, so not a KubeVirt level issue. Also, in all cases I'm aware of cloud-init is run-once on first boot. Changing cloud-init should have no effect on subsequent boots. Please feel free to re-open if you feel this is incorrect.

Comment 2 Guohua Ouyang 2023-01-11 09:54:27 UTC
Move the bug back to UI for improvement.
Since changing the password does not work once the VM is started, it's better to add a statement to clarify the problem, otherwise we should disable the editing of the cloud-init password.

Comment 3 Guohua Ouyang 2023-08-22 10:54:49 UTC
Now it shows a warning message on 4.14 UI:
"Cloud-init and SSH key configurations will be applied to the VirtualMachine only at the first boot.
You must ensure that the configuration is correct before starting the VirtualMachine."

Comment 6 errata-xmlrpc 2023-11-08 14:05:03 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 (Important: OpenShift Virtualization 4.14.0 Images security and bug fix update), 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/RHSA-2023:6817