Make code compatible with v4 auth and workaround webob bug.
Webob library has a bug https://github.com/Pylons/webob/issues/149
which causes modification of req.body after first access. So it's
critical to calculate the body hash before any other access is made.
auth_params should be empty for v4 auth algorythm.
Related-Bug: #1410622
Conflicts:
nova/api/ec2/__init__.py
Change-Id: I06d798a125b700d9b4670448804d6be27f978d75
(cherry picked from commit fb588f87db65f28823f9e07a9900c34c7b3576a2)
Reviewed: https:/ /review. openstack. org/156921 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ae0c898c67b 4926c8fd99fdab2 b83fc1b38e1c70
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit ae0c898c67b4926 c8fd99fdab2b83f c1b38e1c70
Author: Andrey Pavlov <email address hidden>
Date: Mon Feb 2 16:32:24 2015 +0300
Make code compatible with v4 auth and workaround webob bug.
Webob library has a bug https:/ /github. com/Pylons/ webob/issues/ 149
which causes modification of req.body after first access. So it's
critical to calculate the body hash before any other access is made.
auth_params should be empty for v4 auth algorythm.
Related-Bug: #1410622
Conflicts: api/ec2/ __init_ _.py
nova/
Change-Id: I06d798a125b700 d9b4670448804d6 be27f978d75 823f9e07a9900c3 4c7b3576a2)
(cherry picked from commit fb588f87db65f28