Now when rpc client rebuild exception at the middleware,
the process will always fail because we have duplicate
keyword 'message' there. Considering we already have a bunch
of exceptions who need format key 'message' as below:
```
class VolumeDriverException(CinderException):
message = _("Volume driver reported an error: %(message)s")
```
Instead of refactor all of them, this patch just removes
the kwargs 'message' when exception is initialized.
Closes-Bug: #1728826
Change-Id: I6bfa34a42df1f44e16b7536246def610821b7cba
(cherry picked from commit c25a1485f2976bec871e804cb5aacd3fe095b05e)
Reviewed: https:/ /review. openstack. org/592699 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=2ecaad46a73 7c24965ae81fc19 947db9264de684
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 2ecaad46a737c24 965ae81fc19947d b9264de684
Author: TommyLike <email address hidden>
Date: Wed Jun 6 13:36:12 2018 +0800
Remove kwargs 'message' when exception is created
Now when rpc client rebuild exception at the middleware,
the process will always fail because we have duplicate
keyword 'message' there. Considering we already have a bunch
of exceptions who need format key 'message' as below:
``` eption( CinderException ):
class VolumeDriverExc
message = _("Volume driver reported an error: %(message)s")
```
Instead of refactor all of them, this patch just removes
the kwargs 'message' when exception is initialized.
Closes-Bug: #1728826
Change-Id: I6bfa34a42df1f4 4e16b7536246def 610821b7cba c871e804cb5aacd 3fe095b05e)
(cherry picked from commit c25a1485f2976be