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

[MTV] PreserveStaticIPs fails to match manually configured MAC address on VMware VMs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Critical Critical
    • 2.8.0
    • 2.7.11
    • None
    • Important
    • Customer Reported

      Description of problem:

      In VMware it is possible to manaully configure the MAC address on a virtual network adatper. This results in a MAC address that can contain upper and/or lower case characters.
      
      It appears the validator matches strings without ignoring case:
      
      https://github.com/kubev2v/forklift/blob/main/pkg/controller/plan/adapter/vsphere/validator.go#L314
      
      This results in the IP address of the VM not being preserved during migration:
      
      ~~~
      "Guest information on vNICs is missing, cannot preserve static IPs. Make sure VMware tools are installed and the VM is running."
      ~~~

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

      MTV: 2.7.11

      How reproducible:

      Always / 100%
      

      Steps to Reproduce:

      1. Create a virtual network adapter on a VMware virtual machine with upper case characters.
      2. Migrate the virtual machine using MTV. 

      Actual results:

      Virtual machine IP address is not preserved during the migration.

      Expected results:

      MAC addresses should be matched case insensitive and the IP address of the virtual machine should be preserved during the migration process.

      Additional info:

       

              rh-ee-ehazan Elad Hazan
              rh-support-jcutler Jonathan Cutler
              Chenli Hu Chenli Hu
              Votes:
              1 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: