Description of problem: Setting a password during VM creation in the customization flow will result in a malformed cloudinit section; password will not be set. Version-Release number of selected component (if applicable): OCP 4.9.0-fc.0, CNV 4.9.0 How reproducible: 100% Steps to Reproduce: 1. Create a VM from template 2. Select the customize flow 3. Set a password in the cloudinit screen Actual results: - `#cloud-config` line is removed. - When the VM is started, the following error appears: 2021-08-31 08:32:02,407 - __init__.py[WARNING]: Unhandled non-multipart (text/x-not-multipart) userdata: 'user: cloud-user\npasswor...' - It is impossible to login with the selected password. Expected results: cloudinit should be well formatted. Additional info: ==== Wrong format - VM created with customization ==== - cloudInitNoCloud: userData: | user: fedora password: fedora chpasswd: expire: false ssh_authorized_keys: - '' ==== Good format - VM created without customization ==== - cloudInitNoCloud: userData: |- #cloud-config user: fedora password: fyl3-q66d-p3ik chpasswd: { expire: False } name: cloudinitdisk
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 (Moderate: OpenShift Container Platform 4.10.3 security 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-2022:0056