[Openstack] [OpenStack] swift mitaka version is not working.

James Clark jclark at solinea.com
Wed Jul 13 05:33:55 UTC 2016


Hello,

> On Jul 13, 2016, at 10:41 AM, Nalee Jang <nalee999 at gmail.com> wrote:
> 
> Nowadays, I have installed OpenStack Swift Mitaka manually referring to OpenStack official ubuntu manual. but swift is not working. swift is erupting below error messages. I don't understand this situation. I think swift configuration is correct. because I have checked my swift configuration many times. so I checked storage devices. but there was only objects directory. 
> 
> Please help me. What configuration do I check?

Those errors below appear to be an authentication issue (assuming keystone given the account name format in your log). 

Perhaps verify your keystone configuration, double-checking [filter:authtoken] and [filter:keystoneauth] sections. It is curious that there is no underscore in the account name after AUTH if this is the default configuration.

Here is the behaviour in Ubuntu 16.04 with the latest swift packages (2.7.0-0ubuntu2):

$ swift --debug stat
DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to https://keystone-01.lab.meat.cloud:5000/v3/auth/tokens
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): keystone-01.lab.meat.cloud
DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/auth/tokens HTTP/1.1" 201 1820
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): swift-01.lab.meat.cloud
DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_0bd9774713e84129889d7d4bc1e7f707 HTTP/1.1" 204 0
DEBUG:swiftclient:REQ: curl -i http://swift-01.lab.meat.cloud:8080/v1/AUTH_0bd9774713e84129889d7d4bc1e7f707 -I -H "X-Auth-Token: gAAAAABXhdDTMCBFKEde3G3NWbIruVd1WnwNmVL_LI0w7iUsfW6pvjh2F0n8UtTccp9YPYYFksr-Tw3Q973kaUU0AZbBFglr-Egv6nOjoauJ95-ekCZkGhfmP3ipd2HmS5vkkB1-B_TST4lGxkrdikF8sTkUxSn7k7OU02MzvOiguq00QGlkPRU"
DEBUG:swiftclient:RESP STATUS: 204 No Content
DEBUG:swiftclient:RESP HEADERS: {u'Content-Length': u'0', u'X-Account-Object-Count': u'9', u'x-account-project-domain-id': u'd18c4b01d3fe41fc9155bdabcfe490b8', u'X-Account-Storage-Policy-Policy-0-Bytes-Used': u'8084012', u'X-Account-Storage-Policy-Policy-0-Container-Count': u'1', u'X-Timestamp': u'1467964245.56419', u'X-Account-Storage-Policy-Policy-0-Object-Count': u'9', u'X-Trans-Id': u'tx5b847f9daffa466699bb0-005785d0d3', u'Date': u'Wed, 13 Jul 2016 05:25:39 GMT', u'X-Account-Bytes-Used': u'8084012', u'X-Account-Container-Count': u'1', u'Content-Type': u'text/plain; charset=utf-8', u'Accept-Ranges': u'bytes'}
                        Account: AUTH_0bd9774713e84129889d7d4bc1e7f707
                     Containers: 1
                        Objects: 9
                          Bytes: 8084012
Containers in policy "policy-0": 1
   Objects in policy "policy-0": 9
     Bytes in policy "policy-0": 8084012
    X-Account-Project-Domain-Id: d18c4b01d3fe41fc9155bdabcfe490b8
                    X-Timestamp: 1467964245.56419
                     X-Trans-Id: tx5b847f9daffa466699bb0-005785d0d3
                   Content-Type: text/plain; charset=utf-8
                  Accept-Ranges: bytes

> 
> 
> 
> == current log if swift command execute
> root at controller:~# swift stat
> 
> Account HEAD failed: http://192.168.56.101:8080/v1/AUTHf23c0ab37da742c4a047a64226681a93 401 Unauthorized
> 
> 
> == proxy-server logs ==
> root at controller:/var/log# tail -f proxyserver.log
> 
> Jul  9 17:23:39 controller account-server: - - 09/Jul/2016/08/23/39 HEAD /v1/AUTH5951307446914a7981b3faedf6471c72 HTTP/1.0 204 - Swift - - - - tx40bfe658a3d345e486c6d-005780b48b - 0.0104 RL - 1468052619.720752001 1468052619.731138945 -
> 
> Jul  9 17:23:39 controller account-server: STDERR: WARNING:account-server:Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}} (txn: tx40bfe658a3d345e486c6d-005780b48b)
> 





More information about the Openstack mailing list