Viewing resource policy actions
Once a resource policy recommendation is applied, either automatically or manually, it appears on the Actions screen, which displays all live migration attempts made for VM distribution or consolidation. If a VM migration fails, the system retries it up to five times, and each attempt is recorded in the action list.
To view the recommendation history
Admin panel
- Go to the Compute > Resource policies > Actions tab.
- Click the desired action in the list to view its details.
Command-line interface
-
List all recommendations for the desired resource policy. For example:
# vinfra service compute resource-policies recommendation list "Dynamic distribution" +--------------------------------------+-----------+----------------------------------+ | id | state | created_at | +--------------------------------------+-----------+----------------------------------+ | 7f8dd1fe-5634-4e1e-ad9c-e6d9db47a33b | SUCCEEDED | 2025-03-21T16:28:54.626936+00:00 | +--------------------------------------+-----------+----------------------------------+
-
List actions for the selected recommendation. For example:
# vinfra service compute resource-policies action list 7f8dd1fe-5634-4e1e-ad9c-e6d9db47a33b +-------------+-----------+----------------------------------------+------------------------------------------+ | id | state | description | input_parameters | +-------------+-----------+----------------------------------------+------------------------------------------+ | 23f2fb03<…> | SUCCEEDED | Moving a VM instance from source_node | destination_node: node001.vstoragedomain | | | | to destination_node | migration_type: auto | | | | | order: 0 | | | | | resource_id: 156022cf<…> | | | | | resource_name: vm8 | | | | | source_node: node002.vstoragedomain | +-------------+-----------+----------------------------------------+------------------------------------------+
-
Check details of the selected action. For example:
# vinfra service compute resource-policies action show 23f2fb03-5bc4-4778-8757-1d453c792a10 +-------------------+-----------------------------------------------------------+ | Field | Value | +-------------------+-----------------------------------------------------------+ | action_type | migrate | | created_at | 2025-03-21T12:40:17.081977Z | | description | Moving a VM instance from source_node to destination_node | | details | | | id | 23f2fb03-5bc4-4778-8757-1d453c792a10 | | input_parameters | migration_type: auto | | | order: 0 | | | resource_id: 156022cf-ca85-4a48-880b-9edb895aedac | | | resource_name: vm8 | | | source_node: node002.vstoragedomain | | parents | [] | | policy_id | 6e53463e-1d08-42e9-a02e-424018926e9e | | recommendation_id | 7f8dd1fe-5634-4e1e-ad9c-e6d9db47a33b | | state | SUCCEEDED | | updated_at | 2025-03-21T12:41:10.889919Z | +-------------------+-----------------------------------------------------------+
To troubleshoot a failed action
- On the Compute > Resource policies > Actions tab, click an action with the Failed status.
- In the action details, click Details to check the failure root cause.
- Click the VM name and navigate to the History tab on the VM pane.
- Examine the VM event log and find a failed operation initiated by the watcher service user.
- In the expanded log entry, obtain the request ID.
- Use the request ID to find error details in the
/var/log/hci/nova/nova-compute.logon the source and destination compute nodes.