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

VM Export fails to create service if the name has dots

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • CNV v4.20.0
    • CNV v4.17.11
    • Storage Platform
    • None
    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Important
    • Customer Reported
    • None

      Description of problem:

      I'm allowed to create a VM Export with dots in the name, however the associated service fails to be created because of the dots.
      
      This breaks MTV migrations of VMs with dots between OpenShift clusters.

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

      kubevirt-hyperconverged-operator.v4.17.11

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create a VM export with a dot in the name:
      
          virtctl vmexport create my-export-vm.test --vm=vm.test

      Actual results:

      - VM export is created
      - Export service fails to be created. This can be seen in the virt-controller logs:
      
      E0508 07:36:49.772385       1 util.go:72] Service "virt-export-my-export-vm.test" is invalid: metadata.name: Invalid value: "virt-export-my-export-vm.test": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name',  or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')

      Expected results:

      The service associated with the VM export must not have dots in the name.

      Additional info:

       

              gaohoward Howard Gao
              rhn-support-jortialc Juan Orti
              Yan Du Yan Du
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: