Plugin deployment errors hidden in astute debug log
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Invalid
|
Medium
|
Fuel Sustaining | ||
Mitaka |
Invalid
|
Medium
|
Fuel Sustaining |
Bug Description
Detailed description:
When a plugin fails to deploy, an error is reported to the UI and shown in the astute log, for example:
[461] Error running RPC method granular_deploy: Failed to execute hook 'compute-
The actual failure is also included in the astute log, but only visible when you show DEBUG logs, and hidden below several other DEBUG prints from this failure making it non-obvious what the error was.
For example:
2016-08-10 13:16:05 DEBUG [461] f4aecd3c-
cwd: /etc/fuel/
stdout:
stderr: Traceback (most recent call last):
File "./compute_
check_
File "./compute_
reportError
File "./compute_
raise Exception(err)
Exception: Default SR type should be EXT or NFS. If using local storage, Please make sure thin provisioning is enabled on your host during installation.
exit code: 1
Steps to reproduce:
Install a plugin and manipulate things in such a way that installation will fail (e.g. set the wrong password for a XenServer host.
Expected result:
Exception returned from the plugin is shown in the ERROR logs as a minimum, with preference to the Exception message also being displayed in the main UI as the reason for the failure to deploy.
Actual result:
Opaque message "Inspect astute logs" with the actual failure not obviously visible as it's hidden in DEBUG output
Reproducibility:
100%
Workaround:
View all debug logs for astute to view the plug-in error message
Impact:
It makes assisting customers who are deploying this difficult as error messages are not prominently displayed
tags: | added: area-ui |
tags: | added: ui-deployment-hitory |
tags: |
added: ui-deployment-history removed: ui-deployment-hitory |
tags: | removed: ui-deployment-history |
tags: |
added: area-python removed: area-ui |
tags: | added: area-astute |
no longer affects: | fuel/newton |
This issue has been fixed since 9.0 with new task-based deployment engine which essentially provides deployment tasks history feature. Please assign to <9 releases if you need it to be fixed there.