xlab-si / xopera-opera

xOpera orchestrator compliant with TOSCA YAML v1.3 in the making
https://xlab-si.github.io/xopera-docs/
Apache License 2.0
35 stars 14 forks source link

Provide additional info in OperationError #233

Closed alexmaslenn closed 2 years ago

alexmaslenn commented 2 years ago

In case of node operation failed OperationalError is raised. Currently this exception contains no meaningful info, but it would be convenient to have:

  1. Name of the node failed
  2. Name of the interface failed
  3. Name of the operation failed

This would significantly help to present the users of xOpera as SaaS a nice description of the problem that occurred.

Additionally it would be great to extract some meaningful info from Ansible output like the name of the failed task, its message and stderr.

anzoman commented 2 years ago

Thanks @alexmaslenn, this could be a great enhancement.