Bug 2081202

Summary: cloud-init for Windows VM generated with corrupted "undefined" section
Product: Container Native Virtualization (CNV) Reporter: Chandler Wilkerson <cwilkers>
Component: User ExperienceAssignee: Tal Nisan <tnisan>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.10.0CC: cnv-qe-bugs, gouyang, ycui
Target Milestone: ---   
Target Release: 4.11.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: 2022-09-14 19:31:44 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 Chandler Wilkerson 2022-05-03 03:20:09 UTC
Description of problem:
Using wizard to create cloud-init for Windows 2019 server VM creates a strange set of entries in the userData. (see below)

Version-Release number of selected component (if applicable):
4.10.0

How reproducible:
Always

Steps to Reproduce:
1. Create Windows VM using wizard (2019 server)
2. Customize VM and add cloud-init with data
3. View resulting YAML

Actual results:

        - cloudInitNoCloud:
            userData: |
              #cloud-config
              '0': u
              '1': 'n'
              '2': d
              '3': e
              '4': f
              '5': i
              '6': 'n'
              '7': e
              '8': d
              user: admin
              password: changeme
              hostname: uggabug
              ssh_authorized_keys:
                - >-
                  ssh-rsa


Expected results:

        - cloudInitNoCloud:
            userData: |
              #cloud-config
              user: Admin
              password: changeme
              hostname: uggabug
              ssh_authorized_keys:
                - >-
                  ssh-rsa


Additional info:

Comment 1 Guohua Ouyang 2022-05-31 02:01:58 UTC
The bug still exists on v4.11.0-36 for both windows and linux(with cloud-init disk deleted)

Comment 2 Gilad Lekner 2022-06-02 13:07:30 UTC
Might be fixed by https://github.com/kubevirt-ui/kubevirt-plugin/pull/542
can you reproduce on latest master?

Comment 3 Gilad Lekner 2022-06-02 13:07:54 UTC
@gouyang can you reproduce on latest master?
might be fixed by https://github.com/kubevirt-ui/kubevirt-plugin/pull/542

Comment 4 Guohua Ouyang 2022-06-03 00:27:33 UTC
retest it on v4.11.0-42, it looks good

Comment 7 Chandler Wilkerson 2022-06-13 13:25:17 UTC
Clearing needinfo, I'm not able to test against the live code in the git repo at the moment.

Comment 10 errata-xmlrpc 2022-09-14 19:31:44 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.11.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-2022:6526