-
Bug
-
Resolution: Done-Errata
-
Major
-
CNV v4.12.1
-
None
-
0.42
-
False
-
-
False
-
---
-
---
-
-
-
None
Setting the IP address via the Console GUI does not work. Inspecting the YAML, it looks like the YAML generated is wrong.
Steps to replicate issue:
- Create Virtual Machine from Catalog
- Select any RHEL
- Click Customize Virtual machine.
- Click Next.
- Go to Network Interfaces, delete the Pod Network Interface and add an Interface to an existing NAD for a VLAN
- Go to Scripts Tab and click Edit next to Cloud-init.
- Check "Add network data" and a drop down will appear.
- Provide an interface, IP and gateway and click Apply.
Go to the YAML tab and scroll down and examine the YAML section and you will see the following:
- cloudInitNoCloud: networkData: | network: version: '1' config: - type: physical name: eth0 subnets: - type: static address: - 172.20.84.234 gateway: 172.20.84.1 userData: | #cloud-config user: cloud-user password: aaaa-bbbb-cccc chpasswd: expire: false
This does not seem to work. Also, our documentation shows a different format:
kind: VirtualMachine spec: ... volumes: - cloudInitNoCloud: networkData: | version: 2 ethernets: eth1: addresses: - 10.10.10.14/24
The documented format does set the IP, however, I also think the documentation requires updating as well since it is a bit confusing where this should go as "spec" is used multiple times in the YAML. It should probably read:
kind: VirtualMachine spec: ... template: ... spec: volumes: - cloudInitNoCloud: networkData: | version: 2 ethernets: eth1: addresses: - 10.10.10.14/24
Lastly, we should probably call out in the documentation that if you leave the VM connected to the Pod Network, it will always create a default route on that VM to the Pod network. Users may try adding a second interface and defining a gateway and expect it to take precedence over the pod network and it does not.
- is duplicated by
-
CNV-30309 [2217541] IP address not set by cloud-init when using secondary NIC via NetworkAttachmentDefinition
- Closed
- relates to
-
CNV-33537 Change cloudinit to NoCloud - UI
- Closed
-
CNV-36242 [enterprise-4.12] Issue in file virt/virtual_machines/vm_networking/virt-configuring-ip-for-vms.adoc
- ASSIGNED
-
CNV-28438 [2190439] cloudInitConfigDrive yaml contains cloudInitNoCloud content
- Closed
-
CNV-29457 [2213073] OpenShift console does not generate correct cloud-init config
- Closed
-
CNV-29802 [2213449] cloud-init fails when configuring both network and SSH key from the OpenShift console
- Closed
- links to
-
RHEA-2023:116760 OpenShift Virtualization 4.15.0 Images
- mentioned on