- 
    
Bug
 - 
    Resolution: Done-Errata
 - 
    None
 
- 
        Incidents & Support
 - 
        0.42
 - 
        False
 - 
        
 - 
        False
 - 
        NEW
 - 
        
 - 
        
 
- 
        None
 
Description of problem:
When creating a virtual machine and adding network information using cloud-init, the YAML code for this VirtualMachine generated by the console is not correct.
How reproducible:
100%
Steps to Reproduce:
1: From the console, create a RHEL9 VM using the template, customize virtual machine 
2: Add a secondary Network interface
3: Go to scripts => Edit cloudinit => "Add network data" => use
Ethernet name: eth1
IP addresses: 10.10.21.32/24
(though the instructions say "Use commas to separate between IP addresses", this would generate an error in ifcfg-eth1 on the virtual machine, which resulted in an error by the NetworkManager)
Actual results:
Go to "YAML", the generated code is:
            networkData: |
              network:
                version: '1'
                config:
- type: physical
name: eth1
subnets: - type: static
address: - 10.10.21.32/24
gateway: 10.10.21.1 
Expected results:
            networkData: |
              network:
                version: 1
                config:
- type: physical
name: eth1
subnets: - type: static
address: 10.10.21.32/24
gateway: 10.10.21.1 
This means there are 2 errors:
1) '1' should be replaced by 1
2) address should not be a list of items
- is duplicated by
 - 
                    
CNV-30906 [2222677] cloud-init network configuration is failing with error "Unknown network config version: 1"
- Closed
 
 
- is related to
 - 
                    
CNV-28438 [2190439] cloudInitConfigDrive yaml contains cloudInitNoCloud content
- Closed
 
 - 
                    
CNV-28700 Attempting to set Static IP on a VM via OCP Console UI does not work
-         
 - Closed
 
 -         
 
- relates to
 - 
                    
CNV-33537 Change cloudinit to NoCloud - UI
-         
 - Closed
 
 -         
 - 
                    
CNV-29802 [2213449] cloud-init fails when configuring both network and SSH key from the OpenShift console
- Closed
 
 
- external trackers
 
- links to
 - 
                    
        
        RHEA-2023:116760
        OpenShift Virtualization 4.15.0 Images
    
 
- mentioned on