-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.21.0
-
None
Description of problem:
In the UDN docs - [0] - API reference, the `infrastructureSubnets` attribute does not indicate the .2 address is taken by default (for the UDN management port). [0] - https://docs.redhat.com/en/documentation/openshift_container_platform/4.20/html/multiple_networks/primary-networks
Version-Release number of selected component (if applicable):
How reproducible:
Always
Steps to Reproduce:
1. Provision a UDN with the following spec:
spec:
layer2:
ipam:
lifecycle: Persistent
role: Primary
subnets:
- 172.16.145.0/24
topology: Layer2
2. Import a VM whose VMI has the following annotation:
template:
metadata:
annotations:
network.kubevirt.io/addresses: '{"udn-primary": ["172.16.145.2"]}'
Actual results:
If a user tries to import an existing VM with that address - i.e. the second address in the subnet - the importing operation will fail with a confusing error message: """ failed to ensure requested or annotated IPs [172.16.170.2/24] for test-user-defined-network-ns/layer2-udn/test-user-defined-network-ns/virt-launcher-vm-under-test-bc9d275c89544fc8-57k8q: provided IP is already allocated """
Expected results:
The documentation should clearly indicate that IP address is taken by default by the UDN infrastructure.
Additional info: