Ask Your Question
1

swift error

asked 2016-07-28 05:03:53 -0500

openstackstarter gravatar image

updated 2016-07-29 07:41:42 -0500

Hi I'm using 3node architecture and followed through Openstack Guide Mitaka for Ubuntu. From dashboard, I can download and upload files, but on control-node when I try to use swiftclient, I receive error: Account HEAD failed: http://control-node:8080/v1/AUTH_f35e1aa6ef3f436f9a95864033d9220a 503 Service Unavailable. I have no idea what is wrong. How do I solve this error?

demo-openrc.sh

export OS_PROJECT_DOMAIN_NAME=default
export OS_USER_DOMAIN_NAME=default
export OS_PROJECT_NAME=demo
export OS_USERNAME=demo
export OS_PASSWORD=demopass
export OS_AUTH_URL=http://control-node:5000/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2
#export OS_VOLUME_API_VERSION=2

swift stat --debug

DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to http://control-node:5000/v3/auth/tokens
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): control-node
DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/auth/tokens HTTP/1.1" 201 9190
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): control-node
DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_f35e1aa6ef3f436f9a95864033d9220a HTTP/1.1" 503 0
INFO:swiftclient:REQ: curl -i http://control-node:8080/v1/AUTH_f35e1aa6ef3f436f9a95864033d9220a -I -H "X-Auth-Token: gAAAAABXmdaeoH3LoHuN4-J_CNboVldItxlpLpY74MnpL9g7YxF2QBPHXqzTR30Qk3sIJFJNG1rxd5mEUy7xyeWaOIMqwUb1l2y7vCBHpzlnzxsYVFV24jq4Sqbg9l9uRm4btVKaKaKL5QGx5xfbLXROjA_Ba_UXUvvS5iInC8gt3ryTyxsOT80"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: {u'Date': u'Thu, 28 Jul 2016 09:55:42 GMT', u'Content-Length': u'0', u'Content-Type': u'text/html; charset=UTF-8', u'X-Trans-Id': u'tx26567d43aa9a4ca59b8d1-005799d69e'}
DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_f35e1aa6ef3f436f9a95864033d9220a HTTP/1.1" 503 0
INFO:swiftclient:REQ: curl -i http://control-node:8080/v1/AUTH_f35e1aa6ef3f436f9a95864033d9220a -I -H "X-Auth-Token: gAAAAABXmdaeoH3LoHuN4-J_CNboVldItxlpLpY74MnpL9g7YxF2QBPHXqzTR30Qk3sIJFJNG1rxd5mEUy7xyeWaOIMqwUb1l2y7vCBHpzlnzxsYVFV24jq4Sqbg9l9uRm4btVKaKaKL5QGx5xfbLXROjA_Ba_UXUvvS5iInC8gt3ryTyxsOT80"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: {u'Date': u'Thu, 28 Jul 2016 09:55:43 GMT', u'Content-Length': u'0', u'Content-Type': u'text/html; charset=UTF-8', u'X-Trans-Id': u'tx27acffa489ca4805b0064-005799d69f'}
DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_f35e1aa6ef3f436f9a95864033d9220a HTTP/1.1" 503 0
INFO:swiftclient:REQ: curl -i http://control-node:8080/v1/AUTH_f35e1aa6ef3f436f9a95864033d9220a -I -H "X-Auth-Token: gAAAAABXmdaeoH3LoHuN4-J_CNboVldItxlpLpY74MnpL9g7YxF2QBPHXqzTR30Qk3sIJFJNG1rxd5mEUy7xyeWaOIMqwUb1l2y7vCBHpzlnzxsYVFV24jq4Sqbg9l9uRm4btVKaKaKL5QGx5xfbLXROjA_Ba_UXUvvS5iInC8gt3ryTyxsOT80"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: {u'Date': u'Thu, 28 Jul 2016 09:55:45 GMT', u'Content-Length': u'0', u'Content-Type': u'text/html; charset=UTF-8', u'X-Trans-Id': u'txaa3d45f0de11448e81ee7-005799d6a1'}
DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_f35e1aa6ef3f436f9a95864033d9220a HTTP/1.1" 503 0
INFO:swiftclient:REQ: curl -i http://control-node:8080/v1/AUTH_f35e1aa6ef3f436f9a95864033d9220a -I -H "X-Auth-Token: gAAAAABXmdaeoH3LoHuN4-J_CNboVldItxlpLpY74MnpL9g7YxF2QBPHXqzTR30Qk3sIJFJNG1rxd5mEUy7xyeWaOIMqwUb1l2y7vCBHpzlnzxsYVFV24jq4Sqbg9l9uRm4btVKaKaKL5QGx5xfbLXROjA_Ba_UXUvvS5iInC8gt3ryTyxsOT80"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: {u'Date': u'Thu, 28 Jul 2016 09:55:49 GMT', u'Content-Length': u'0', u'Content-Type': u'text/html; charset=UTF-8', u'X-Trans-Id': u'txb527b1d4859346a09ab6b-005799d6a5'}
DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_f35e1aa6ef3f436f9a95864033d9220a HTTP/1.1" 503 0
INFO:swiftclient:REQ: curl -i http://control-node:8080/v1/AUTH_f35e1aa6ef3f436f9a95864033d9220a -I -H "X-Auth-Token: gAAAAABXmdaeoH3LoHuN4-J_CNboVldItxlpLpY74MnpL9g7YxF2QBPHXqzTR30Qk3sIJFJNG1rxd5mEUy7xyeWaOIMqwUb1l2y7vCBHpzlnzxsYVFV24jq4Sqbg9l9uRm4btVKaKaKL5QGx5xfbLXROjA_Ba_UXUvvS5iInC8gt3ryTyxsOT80"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: {u'Date': u'Thu, 28 Jul 2016 09:55:57 GMT', u'Content-Length': u'0', u'Content-Type': u'text/html; charset=UTF-8', u'X-Trans-Id': u'tx824604d3f791499a9fa7f-005799d6ad'}
DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_f35e1aa6ef3f436f9a95864033d9220a HTTP/1.1" 503 0
INFO:swiftclient:REQ: curl -i http://control-node:8080/v1/AUTH_f35e1aa6ef3f436f9a95864033d9220a -I -H "X-Auth-Token: gAAAAABXmdaeoH3LoHuN4-J_CNboVldItxlpLpY74MnpL9g7YxF2QBPHXqzTR30Qk3sIJFJNG1rxd5mEUy7xyeWaOIMqwUb1l2y7vCBHpzlnzxsYVFV24jq4Sqbg9l9uRm4btVKaKaKL5QGx5xfbLXROjA_Ba_UXUvvS5iInC8gt3ryTyxsOT80"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-07-28 12:14:03 -0500

updated 2016-07-28 12:15:52 -0500

A problem in the /etc/swift/proxy-server.conf file in the [filter:authtoken] section will cause this error. My working configuration contains:

[filter:authtoken]
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
auth_uri = http://controller/5000
auth_url = http://controller/35357
memcached_servers = controller:11211
auth_plugin = password
project_domain_name = default
user_domain_name = default
project_name = service
username = swift
password = swiftpassword
delay_auth_decision = True

Replace controller with the hostname of your controller (control-node?) and replace swiftpassword with the password assigned to the swift user when it was created by openstack user create... Then restart openstack-swift-proxy.

edit flag offensive delete link more

Comments

Thanks for your answer Barry!I updated my question with my configuration of proxy-server.conf 10.0.0.1 is IP addr of my controller host. The only differences are auth_type -> auth_plugin and domain -> ID, where left side is mine. This wouldn't be the problem,would they? Got any other suggestion..?:)

openstackstarter gravatar imageopenstackstarter ( 2016-07-29 00:41:06 -0500 )edit
1

Oh wait, I changed those settings I mentioned and It solved my problem! Thank you for your help. I really really appreciate it!

openstackstarter gravatar imageopenstackstarter ( 2016-07-29 00:50:36 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-07-28 05:03:53 -0500

Seen: 493 times

Last updated: Jul 29 '16