Bug #13628
closed
rgw:swift use Civetweb ssl can not get right url
Added by weijun duan over 8 years ago.
Updated almost 8 years ago.
Backport:
hammer,infernalis
Description
$swift -A https://node112/auth/v1 -U keyuser:keyuser -K keyuser stat -v --insecure
StorageURL: http://node112:0/swift/v1
Auth Token: AUTH_rgwtk0f0000006b6579757365723a6b657975736572b82ccf13229fc5511fd23156d55e2910ebfcfbb924be9e25d38dc03702e3995b94ac29a1
Account: v1
Containers: 0
Objects: 0
Bytes: 0
Server: Proxy
It should return StorageURL: https://node112/swift/v1
This led to swift use civetweb ssl unusable
ceph.conf
[client.radosgw.gateway]
host = node112
keyring = /etc/ceph/ceph.client.radosgw.keyring
log file = /var/log/radosgw/client.radosgw.gateway.log
#rgw frontends = civetweb port=80
rgw frontends = "civetweb port=443s ssl_certificate=/home/ceph/ssl/server.pem"
rgw dns name = node112
debug rgw = 30
$swift -A https://node112/auth/v1 -U keyuser:keyuser -K keyuser stat -v --insecure
StorageURL: http://node112:0/swift/v1
Auth Token: AUTH_rgwtk0f0000006b6579757365723a6b657975736572b82ccf13229fc5511fd23156d55e2910ebfcfbb924be9e25d38dc03702e3995b94ac29a1
Account: v1
Containers: 0
Objects: 0
Bytes: 0
Server: Proxy
should be
$curl -D- -H 'X-Auth-User: keyuser:keyuser' -H 'X-Auth-Key: keyuser' https://node112/auth/v1.0 -k
HTTP/1.1 204 No Content
X-Storage-Url: http://node112:0/swift/v1
X-Storage-Token: AUTH_rgwtk0f0000006b6579757365723a6b657975736572d1ea7a56dcfb24c1ceda31560d09b31614b8a06aa79e3fb7922b86ab39d4e676b710acb0
X-Auth-Token: AUTH_rgwtk0f0000006b6579757365723a6b657975736572d1ea7a56dcfb24c1ceda31560d09b31614b8a06aa79e3fb7922b86ab39d4e676b710acb0
Content-type: application/json
Content-Length: 0
paste mistake
- Project changed from Ceph to rgw
- Status changed from New to Pending Backport
- Backport set to hammer
Merged, commit:c601a807e0161aca9b1dc48e25cfc52c79e03eed
- Copied to Backport #13716: rgw:swift use Civetweb ssl can not get right url added
- Backport changed from hammer to hammer,infernalis
Yehuda, that commit is in master only, so I'm adding infernalis.
- Copied to Backport #13717: rgw:swift use Civetweb ssl can not get right url added
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF