Exception handling in magnum remote commands
Problem:
Currently whenever any remote commands raise an exception, that exception is returned as RemoteError and user receives 500 status which is not correct behaviour.
For eg.
On deleting a non existing bay, BayNotFound exception is raised and that exception is wrapped in RemoteError(
Proposed Solution:
All the remote exceptions must be deserialised to actual exceptions raised. Then re-raise the appropiate exception from controller to client.
This blueprint will do all the necessary changes to handle remote exceptions and their test cases.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Low
- Drafter:
- Madhuri Kumari
- Direction:
- Needs approval
- Assignee:
- Madhuri Kumari
- Definition:
- New
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Madhuri Kumari
- Completed by
- Madhuri Kumari
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Register all magnum exceptions in allow_remote_exmods
Addressed by: https:/
Added remote exception handling in all bay APIs