You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the nutanix.ncp.ntnx_vms module to power-off a VM, the ansible output reports a success, even when an error occurs.
VMs are not always powered down correctly, but ansible always produces the same successful output.
The underlying error can be seen in the Prism Central UI and the verbose ansible log as per below.
Expected behavior
When an error is returned by the Prism Central UI, ansible should fail the task instead of reporting successful.
Additional context
Nutanix support confirmed that an AOS update may be needed to resolve the power-off issue.
The issue here is that our ansible playbooks are always marking the task as Successful, even when we can clearly see an error in the API response and in the Prism Central UI.
The text was updated successfully, but these errors were encountered:
Using the nutanix.ncp.ntnx_vms module to power-off a VM, the ansible output reports a success, even when an error occurs.
VMs are not always powered down correctly, but ansible always produces the same successful output.
The underlying error can be seen in the Prism Central UI and the verbose ansible log as per below.
{
"changed": true,
"error": null,
"response": {
"status": {
"name": "m8",
"state": "ERROR",
"execution_context": {
"task_uuid": [
"37d3e6d-****-0489"
]
},
To Reproduce
Steps to reproduce the behavior:
Sample from ansible role:
Expected behavior
When an error is returned by the Prism Central UI, ansible should fail the task instead of reporting successful.
Additional context
Nutanix support confirmed that an AOS update may be needed to resolve the power-off issue.
The issue here is that our ansible playbooks are always marking the task as Successful, even when we can clearly see an error in the API response and in the Prism Central UI.
The text was updated successfully, but these errors were encountered: