Bug 2151826 - Change cloud-init's password has no effect
Summary: Change cloud-init's password has no effect
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.12.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.14.0
Assignee: Ugo Palatucci
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-08 08:57 UTC by Guohua Ouyang
Modified: 2023-11-08 14:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:05:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CNV-23271 0 None None None 2022-12-08 09:34:33 UTC
Red Hat Product Errata RHSA-2023:6817 0 None None None 2023-11-08 14:05:16 UTC

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


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