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

Create VM from custom template with "runStrategy: RerunOnFailure" generates error

XMLWordPrintable

    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • CNV v4.17.0.rhel9-60, CNV v4.16.1.rhel9-141
    • Moderate
    • No

      Description of problem:

      When creating a custom template where I replace running: true with runStrategy: RerunOnFailure and then attempt to quick create a VM from that template. The UI displays an error `Error "Running and RunStrategy are mutually exclusive" for field "spec.running"`. 

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

      4.14, and 4.15

      How reproducible:

      100%

      Steps to Reproduce:

      1. Create a custom template based on one of the existing ones. I picked the fedora template and make a copy of it and modfied running: true to runStrategy: rerunOnFailure. I saved it in default namespace.
      2. I attempted to quick create a VM from this new template. When clicking create I get the mentioned error message.
      3. I checked the generated yaml in the dialog and it looks perfectly fine. I can download the yaml and apply it with the cli and the generated VM starts fine.
      

      Actual results:

      Error message about a field that doesn't exist in the yaml

      Expected results:

      VM is created as expected

      Additional info:

      The generated yaml passed validation on the backend and is able to start. It is just the UI that prevents creation of the VM.

       

              upalatuc@redhat.com Ugo Palatucci
              rhn-support-awels Alexander Wels
              Leon Kladnitsky Leon Kladnitsky
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: