Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-64500

[4.19] Persistent IPs feature breaks if VMI interface do not adhere to a lowercase RFC 1123 subdomain

XMLWordPrintable

    • Customer Escalated, Customer Reported
    • None

      Description of problem:

      If a VMI interface name is not a proper domain name and we use persistent IPs VMIs do not spin
      
      {"controller": "virtualmachineinstance", "controllerGroup": "kubevirt.io", "controllerKind": "VirtualMachineInstance", "VirtualMachineInstance": {"name":"vmi-fedora","namespace":"localnet-subnet-persistent-ips"}, "namespace": "localnet-subnet-persistent-ips", "name": "vmi-fedora", "reconcileID": "d38b83b1-ab26-42c6-8a72-44bf2c638d22", "error": "IPAMClaim.k8s.cni.cncf.io \"vmi-fedora.iface2_myhcp3-hcp3-localnet-ens224\" is invalid: metadata.name: Invalid value: \"vmi-fedora.iface2_myhcp3-hcp3-localnet-ens224\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')"}
      
      This is related to ipamclaims name should follow the RFC 1123 standard

      Version-Release number of selected component (if applicable):

      4.18

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create a VMI with a interface name with "_" pointing to a ovn-k network with persistent IPs activated
      

      Actual results:

      {"controller": "virtualmachineinstance", "controllerGroup": "kubevirt.io", "controllerKind": "VirtualMachineInstance", "VirtualMachineInstance": {"name":"vmi-fedora","namespace":"localnet-subnet-persistent-ips"}, "namespace": "localnet-subnet-persistent-ips", "name": "vmi-fedora", "reconcileID": "d38b83b1-ab26-42c6-8a72-44bf2c638d22", "error": "IPAMClaim.k8s.cni.cncf.io \"vmi-fedora.iface2_myhcp3-hcp3-localnet-ens224\" is invalid: metadata.name: Invalid value: \"vmi-fedora.iface2_myhcp3-hcp3-localnet-ens224\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')"}

      Expected results:

      VMI is successfully scheduled and ipamclaim created.

      Additional info:

      We have discover this at hypershift since the additional network generate the interface name and uses underscore for it.

              ellorent Felix Enrique Llorente Pastora
              ellorent Felix Enrique Llorente Pastora
              Yossi Segev Yossi Segev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: