Comment 21 for bug 1505273

Revision history for this message
Maksym Strukov (unbelll) wrote :

Verified as fixed in 8.0-570

[root@nailgun ~]# curl -s -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "admin"}}}' -H 'Content-type: application/json' http://10.109.25.2:5000/v2.0/tokens
{"access": {"token": {"issued_at": "2016-02-19T12:21:41.798504", "expires": "2016-02-20T12:21:41Z", "id": "8beb2c1f6b2c4745ac78e2296416f179", "tenant": {"description": "", "enabled": true, "id": "13382b34fa8e4e7ab1f6695d80c2d595", "name": "admin"}, "audit_ids": ["7TDFCu8cQt2bLeQdXTNlWQ"]}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.109.25.2:8000/ostf", "region": "RegionOne", "internalURL": "http://10.109.25.2:8000/ostf", "id": "dacfb57b4ec74aa1899d2e51213c78eb", "publicURL": "http://10.109.25.2:8000/ostf"}], "endpoints_links": [], "type": "ostf", "name": "ostf"}, {"endpoints": [{"adminURL": "http://10.109.25.2:8000/api", "region": "RegionOne", "internalURL": "http://10.109.25.2:8000/api", "id": "f68271098315479d8e2152a303bf426c", "publicURL": "http://10.109.25.2:8000/api"}], "endpoints_links": [], "type": "fuel", "name": "nailgun"}, {"endpoints": [{"adminURL": "http://10.109.25.2:35357/v2.0/v2.0", "region": "RegionOne", "internalURL": "http://10.109.25.2:5000/v2.0/v2.0", "id": "e43b006835be4ec588f1367cce2c7c14", "publicURL": "http://10.109.25.2:5000/v2.0/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "7be419bf1d554f34a877f564ab132489", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["b999d49c009d4e6493f3aa65a3968fbe"]}}}

[root@nailgun ~]# TOKEN=8beb2c1f6b2c4745ac78e2296416f179

[root@nailgun ~]# curl -k -i http://10.109.25.2:8080/swift/v1/test/test -X PUT -H "X-Auth-Token: $TOKEN" -H "Transfer-Encoding: chunked" -H "Content-Length: 5274" HTTP/1.1 405 Not Allowed
Server: nginx
Date: Fri, 19 Feb 2016 12:21:59 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 166
Connection: keep-alive

<html>
<head><title>405 Not Allowed</title></head>
<body bgcolor="white">
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx</center>
</body>
</html>