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

creating VM from snapshot failed with name validation error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • CNV v4.19.5
    • CNV v4.19.0
    • CNV User Interface
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • CNV v4.19.0.rhel9-172
    • None

      Description of problem:

      Default name generated when creating VM from snapshot causes validation error. Error "Invalid value: "rhel-9-bronze-dinosaur-81-snapshot-20250521-150959-falsew6940r-": 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])?)*')" for field "metadata.name".

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

      4.19

      How reproducible:

      always 

      Steps to Reproduce:

      1. Create a VM (example: rhel-9-bronze-dinosaur-81)
      2. Create a snapshot of that VM
      3. Use the snapshot to create a new VM
      4. seeing error Error "Invalid value: "rhel-9-bronze-dinosaur-81-snapshot-20250521-150959-falsew6940r-": 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])?)*')" for field "metadata.name".

      Actual results:

       

      Expected results:

       

      Additional info:

       

          There are no Sub-Tasks for this issue.

              rh-ee-bnahmias Batya Nahmias Rivkin
              gkapoor@redhat.com Geetika Kapoor
              Leon Kladnitsky Leon Kladnitsky
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: