Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-74590

docs: user has no way of knowing the second subnet IP of a primary UDN is taken

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.21.0
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • Proposed
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:

          

              ocp-docs-bot OCP DocsBot
              mduarted@redhat.com Miguel Duarte de Mora Barroso
              Zhanqi Zhao Zhanqi Zhao
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: