[Openstack] [Swift] Problem about erasurecode and authentication of swift.

Nalee Jang nalee999 at gmail.com
Wed Jan 4 07:57:25 UTC 2017


Hello guys! Happy New Year!!

I am NaleeJang from OpenStack Korea User Group.

Nowadays, I met problem about OpenStack swift.
I'm testing to deploy swift mitaka version. but there are erasurecode and
authentication problems.

so I found erasurecode problems on the internet. and I solved it through
asking of other people.
and I restarted swift-proxy. but when I commended "swift stat", I saw below
message.

Please help me~!!

====
# swift stat
Account HEAD failed:
http://controller:8080/v1/AUTHd9dcaafdd1a94840b86ed1ae97390bbe 403 Forbidden

===
below is authtoken and keystoneauth part of my 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 = fb9ef93e47264b5ba720ec62dbcd5e21
user_domain_id = fb9ef93e47264b5ba720ec62dbcd5e21
project_name = service
username = swift
password = swiftpass
delay_auth_decision = True

[filter:keystoneauth]
operator_roles = admin, user

====
below is  debug log.

root at controller:~# swift --debug stat
DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to
http://controller:35357/v3/auth/tokens
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
(1): controller
DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/auth/tokens
HTTP/1.1" 201 1750
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection
(1): controller
DEBUG:requests.packages.urllib3.connectionpool:"HEAD
/v1/AUTHd9dcaafdd1a94840b86ed1ae97390bbe HTTP/1.1" 403 0
INFO:swiftclient:REQ: curl -i
http://controller:8080/v1/AUTHd9dcaafdd1a94840b86ed1ae97390bbe -I -H
"X-Auth-Token:
gAAAAABYa8693W2Ob8CDgeaDDmMN-DHB8N001D16KuGdxEKY0-MAKVaiQAAY9K-8bcAXmkc-7BszrXp5rAKT7kzzNbFiBtoIzkryltlZkGQWgCkqNWrQ6waY83TQHoe_1EiSoqCQZ-TPf0t9k5vkkKawUP8IGJjYmt7-nt6JBd3L9fF2eYolnjU"
INFO:swiftclient:RESP STATUS: 403 Forbidden
INFO:swiftclient:RESP HEADERS: {u'Date': u'Tue, 03 Jan 2017 16:18:05 GMT',
u'Content-Length': u'0', u'Content-Type': u'text/html; charset=UTF-8',
u'X-Trans-Id': u'tx9a2a2881e71f4e82b7db9-00586bcebd'}
ERROR:swiftclient:Account HEAD failed:
http://controller:8080/v1/AUTHd9dcaafdd1a94840b86ed1ae97390bbe 403 Forbidden
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1565,
in _retry
    service_token=self.service_token, **kwargs)
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 747,
in head_account
    http_response_content=body)
ClientException: Account HEAD failed:
http://controller:8080/v1/AUTHd9dcaafdd1a94840b86ed1ae97390bbe 403 Forbidden
ERROR:swiftclient.service:Account HEAD failed:
http://controller:8080/v1/AUTHd9dcaafdd1a94840b86ed1ae97390bbe 403 Forbidden
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/swiftclient/service.py", line 440,
in stat
    items, headers = get_future_result(stats_future)
  File "/usr/lib/python2.7/dist-packages/swiftclient/service.py", line 207,
in get_future_result
    res = f.result(timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/concurrent/futures/_base.py", line
405, in result
    return self.__get_result()
  File "/usr/lib/python2.7/dist-packages/concurrent/futures/thread.py",
line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/swiftclient/multithreading.py",
line 188, in conn_fn
    return fn(*conn_args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/swiftclient/command_helpers.py",
line 23, in stat_account
    headers = conn.head_account()
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1605,
in head_account
    return self._retry(None, head_account)
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1565,
in _retry
    service_token=self.service_token, **kwargs)
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 747,
in head_account
    http_response_content=body)
ClientException: Account HEAD failed:
http://controller:8080/v1/AUTHd9dcaafdd1a94840b86ed1ae97390bbe 403 Forbidden
Account HEAD failed:
http://controller:8080/v1/AUTHd9dcaafdd1a94840b86ed1ae97390bbe 403 Forbidden
root at controller:~#

-- 
==================================================
 - 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/20170104/45d625b5/attachment.html>


More information about the Openstack mailing list