-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
6.19.0
-
None
Description of problem:
While performing power on/off actions on a VM through the compute resource API, the request fails and returns an error instead of executing successfully.
Error -
"ERF42-9613 [Foreman::Exception]: Virtual machine was not found by id 1"
How reproducible:
Always
Is this issue a regression from an earlier version:
No
Steps to Reproduce:
1. Infrastructure -> Compute Resources -> Create OCP-V Compute Resources
2. Run API call -
PUT /api/compute_resources/:id/available_virtual_machines/:vm_id/power
Actual behavior:
The API call is not working with the VM ID, and as a result, it fails to perform the power action on the VM.
Expected behavior:
The API request is expected to complete successfully and initiate the specified power operation on the VM.
Additional info:
The same issue has been identified in the CLI, and a bug has been raised SAT-42582.