Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-41851

Fix start/stop for VMs using runStrategy instead of deprecated running

XMLWordPrintable

    • None
    • None
    • None
    • None

      Description of problem:
      Using foreman_kubevirt, when we try to power on/off for VM created directly on Openshift UI using template, we get the below error

      Error - HTTP status code 422, admission webhook "virtualmachine-validator.OpenShift Virtualization.io" denied the request: Running and RunStrategy are mutually exclusive. Note that Running is deprecated, please use RunStrategy instead for PUT https://{cnv_url}:6443/apis/OpenShift Virtualization.io/v1alpha3/namespaces/{namespace}/virtualmachines/vm-name
      

      How reproducible:

      Always

      Is this issue a regression from an earlier version:

      Steps to Reproduce:

      1. Define a new compute resource with type Kubevirt/OCP-V
      2. Create a VM on openshift UI using existing templates(don't create vm via satellite)
      3. Go to the "Virtual machines" tab under Infrastructure -> Compute Resources -> $CR
      4. Click the power on/off in Actions in for the VM(created in step 2)
      5. Fails to power on and off for VM directly created on Openshift UI. Notice the error message in alert

      Error - HTTP status code 422, admission webhook "virtualmachine-validator.OpenShift Virtualization.io" denied the request: Running and RunStrategy are mutually exclusive. Note that Running is deprecated, please use RunStrategy instead for PUT https://\{cnv_url}:6443/apis/OpenShift Virtualization.io/v1alpha3/namespaces/\{your_namespace}/virtualmachines/vm-name
      

      Actual behavior:
      Fails to Power on/off for VM directly created on Openshift UI(not created by foreman/satellite)
      Works for VM created via foreman/satellite

      Expected behavior:
      We should be able manage power(on/off) for both kind of VM created via foreman/satellite or directly created on Openshift

      Business Impact / Additional info:

              rh-ee-ajangir Arvind Jangir
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Leos Stejskal Leos Stejskal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: