Failure in workflows cause the message to be displayed twice
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
The handle() method for worflows expects a boolean to be returned to indicate if the workflow completed successfully, however returning False results in two error messages being displayed.
https:/
You can reproduce by causing an error somewhere where we use the handle() method and return False. For example:
1. Go to the Access & Security page
2. Click on Allocate IP
3. Turn off the Neutron service (or nova-network if using it for networking)
4. Click on "Allocate IP" in the modal: 2 error messages are displayed ("Error: Connection to neutron failed: Maximum attempts reached" and "Error: Unable to retrieve floating IP pools.")
I suspect it's because both exceptions.handle() and the workflows call on messages.error():
https:/
https:/
Changed in horizon: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in horizon: | |
assignee: | nobody → Vlad Okhrimenko (vokhrimenko) |
Changed in horizon: | |
status: | Triaged → In Progress |
Changed in horizon: | |
status: | In Progress → Confirmed |
So, it should be handled by the view or by the exception handler?