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

Nalee Jang nalee999 at gmail.com
Wed Jul 13 06:29:27 UTC 2016


Thank you for answering.

After I got a your reply, I checked my keystone configuration and
proxy-server.conf. so I modified endpoint url of swift. but I have seen
same error messages.


=== swift endpoint url  ===

root at controller:~# openstack endpoint list --service swift

+----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------------------------------+

| ID                               | Region    | Service Name | Service
Type | Enabled | Interface | URL
  |

+----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------------------------------+

| 2c4d53590b17491ea98044840ae6e2a7 | RegionOne | swift        |
object-store | True    | public    |
http://192.168.56.101:8080/v1/AUTH_%(tenant_id)s |

| 69aabb63c0e8498cb50968d2b36b2054 | RegionOne | swift        |
object-store | True    | internal  |
http://192.168.56.101:8080/v1/AUTH_%(tenant_id)s |

| 6ff5e56ad0684a608653d3b69fc90113 | RegionOne | swift        |
object-store | True    | admin     | http://192.168.56.101:8080/v1
          |

+----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------------------------------+


== keystone project list ==

root at controller:~# openstack project list

+----------------------------------+---------+

| ID                               | Name    |

+----------------------------------+---------+

| 1a459e00cbfb435f93d07049e6efe6de | test    |

| 5951307446914a7981b3faedf6471c72 | admin   |

| e824d80cea214de3972c5389732c41f4 | service |

| f23c0ab37da742c4a047a64226681a93 | demo    |

+----------------------------------+---------+


== proxy-server.conf ==

root at controller:~# vi /etc/swift/proxy-server.conf

...

[filter:authtoken]

paste.filter_factory = keystonemiddleware.auth_token:filter_factory

auth_uri = http://192.168.56.101:5000

auth_url = http://192.168.56.101:35357

memcached_servers = 192.168.56.101:11211

auth_plugin = password

project_domain_id = default

user_domain_id = default

project_name = service

username = swift

password = swiftpass

delay_auth_decision = True


[filter:keystoneauth]

use = egg:swift#keystoneauth

operator_roles = admin, user, ResellerAdmin


== proxy-server error logs ==

root at controller:~# swift --debug stat

DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to
http://192.168.56.101:35357/v3/auth/tokens

INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
(1): 192.168.56.101

DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/auth/tokens
HTTP/1.1" 201 8547

INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
(1): 192.168.56.101

DEBUG:requests.packages.urllib3.connectionpool:"HEAD
/v1/AUTH_5951307446914a7981b3faedf6471c72 HTTP/1.1" 503 0

INFO:swiftclient:REQ: curl -i
http://192.168.56.101:8080/v1/AUTH_5951307446914a7981b3faedf6471c72 -I -H
"X-Auth-Token:
gAAAAABXhd1b6W6Rx7lNgATcbjOx_36TAWGDxhtMC0tMB4s1kNWTJByElNKVOiWc40_F_e_smoFefwjlhgLuu48w8IBhleAegmaNoYgPNbyTrInvFkdKqKViNqHzwZH9GoChz-ZDABTU2TMfeAT-kT3Ugz7eVhHe4Gk-mq2JfPE6_S0niKKnrlQ"

INFO:swiftclient:RESP STATUS: 503 Service Unavailable

INFO:swiftclient:RESP HEADERS: {u'Date': u'Wed, 13 Jul 2016 06:19:07 GMT',
u'Content-Length': u'0', u'Content-Type': u'text/html; charset=UTF-8',
u'X-Trans-Id': u'txbaac09fabf1c477eac991-005785dd5b'}

DEBUG:requests.packages.urllib3.connectionpool:"HEAD
/v1/AUTH_5951307446914a7981b3faedf6471c72 HTTP/1.1" 503 0

INFO:swiftclient:REQ: curl -i
http://192.168.56.101:8080/v1/AUTH_5951307446914a7981b3faedf6471c72 -I -H
"X-Auth-Token:
gAAAAABXhd1b6W6Rx7lNgATcbjOx_36TAWGDxhtMC0tMB4s1kNWTJByElNKVOiWc40_F_e_smoFefwjlhgLuu48w8IBhleAegmaNoYgPNbyTrInvFkdKqKViNqHzwZH9GoChz-ZDABTU2TMfeAT-kT3Ugz7eVhHe4Gk-mq2JfPE6_S0niKKnrlQ"

INFO:swiftclient:RESP STATUS: 503 Service Unavailable

2016-07-13 14:33 GMT+09:00 James Clark <jclark at solinea.com>:

> 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)
> >
>
>


-- 
==================================================
 - Community : *Openstack Korea Community*
 - Name          : Nalee Jang (장현정)
 - Company    : ASD Korea Cloudike System Engineer.
 - Contact       : +82-10-3454-4260 / nalee999 at gmail.com
 - Blog            : http://naleejang.tistory.com
 - HomePage  : http://www.openstack.or.kr
 - Facebook   : https://www.facebook.com/groups/openstack.kr/
==================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160713/16bf73a9/attachment.html>


More information about the Openstack mailing list