Bug 2081202 - cloud-init for Windows VM generated with corrupted "undefined" section
Summary: cloud-init for Windows VM generated with corrupted "undefined" section
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.10.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.11.0
Assignee: Tal Nisan
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-03 03:20 UTC by Chandler Wilkerson
Modified: 2023-11-13 08:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-14 19:31:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt-ui kubevirt-plugin pull 402 0 None open Bug 2081202: cloudinit undefined for windows vms 2022-05-11 12:44:31 UTC
Red Hat Issue Tracker CNV-17939 0 None None None 2023-11-13 08:18:23 UTC
Red Hat Product Errata RHSA-2022:6526 0 None None None 2022-09-14 19:32:00 UTC

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


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