signature v4 doesn't work with official tools
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Swift3 |
New
|
Undecided
|
Unassigned |
Bug Description
request with signature v4 is failed.
0) list and create credentials if needed
openstack ec2 credentials list
openstack ec2 credentials create
steps to reproduce 1:
1) set credentials to awscli profile and run it
aws --endpoint-url http://
A client error (InvalidRequest) occurred when calling the ListBuckets operation: Missing required header for this request: x-amz-content-
steps to reproduce 2:
1) download cirros image
wget http://
2) download and unzip OFFICIAL tools
wget http://
unzip ec2-ami-tools.zip
export TOOLS_DIR=
3) source cloud credentials and download certificates
nova x509-get-root-cert
nova x509-create-cert
4) prepare bundle
mkdir images
$TOOLS_
5) get s3 url
openstack endpoint list --service s3 --interface public --os-identity-
6) try to upload bundle and get error
$TOOLS_
response:
<?xml version='1.0' encoding='UTF-8'?>
<Error>
logs:
proxy-server: Connecting to Keystone sending this JSON: {"credentials": {"access": "a8f020880d4f4f
9zMy9hd3M0X3Jlc
proxy-server: Keystone reply error: status=401 reason=Unauthorized
proxy-server: Received error, exiting middleware with error: 401
7) with additional key '--sigv2' this tool works.
what's your swift3 middleware config? maybe just `location` mismatch between server and client?