-
Bug
-
Resolution: Done
-
Undefined
-
None
-
1
-
False
-
rubygem-fog-kubevirt-1.6.0
-
Satellite Rocket Sprint 14
-
sat-rocket
-
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:
- relates to
-
SAT-42060 Under "Compute Resources -> Virtual machines" power displayed incorrectly
-
- Testing
-