Uploaded image for project: 'Migration Toolkit for Virtualization'
  1. Migration Toolkit for Virtualization
  2. MTV-2308

Failed to create VM with special combination of dot and dashes after migration

XMLWordPrintable

      Description of problem:

      Warm migrate VM: "mtv.func.-.rhel.-...8.8" from vSphere7 to OCP cluster, the plan get warning:
      "Target VM name does not comply with DNS1123 RFC, will be automatically changed"
      
      Start the migration plan, it failed in "Virtual Machine Creation" phase with error below, if MTV changed the name, need to make sure the new name work. 
      ---------------------------------------------------------------------------------
      VirtualMachine.kubevirt.io "mtv.func.-.rhel.-...8.8" is invalid: metadata.name: Invalid value: "mtv.func.-.rhel.-...8.8": 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])?)*')

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

      MTV 2.8.0-37(IIB 943611) with CNV 4.17.6

      How reproducible:

      Always

      Steps to Reproduce:

      1) Prepare a VM: "mtv.func..rhel....8.8" on vSphere7

      2) Create warm migration plan to migrate the vm to ocp cluster, get warning message:

      "Target VM name does not comply with DNS1123 RFC, will be automatically changed"

      3) Start the migration plan, it failed in "Virtual Machine Creation" phase with error, if MTV changed the name, need to make sure the new name work.

      Actual results:

      In step3: Migration plan failed with error, failed to create VM

      Expected results:

      In step3: Migration plan succeeded, create VM successfully

      Additional info:

      • For VM name: ".mtv.func.win2022.", the new name is "mtv.func.win2022-vgsu", the plan executed successfully

              yzamir@redhat.com Yaacov Zamir
              chhu@redhat.com Chenli Hu
              Ameen Barakat Ameen Barakat
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: