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:
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.
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.
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."
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