Ask Your Question
0

(Kilo) Swift Installation Ubuntu 14.04: swiftclient.service.SwiftError: 'Account not found'

asked 2016-02-26 08:05:46 -0600

Riccardo gravatar image

Hi all,

I've tried to install swift on two object nodes following latest (10 January 2016) installation guide for Kilo release. I've followed the guide in every detail and tried to install twice. When I verify the installation:

#swift -V 3 stat

Traceback (most recent call last):
  File "/usr/bin/swift", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/dist-packages/swiftclient/shell.py", line 1287, in main
    globals()['st_%s' % args[0]](parser, argv[1:], output)
  File "/usr/lib/python2.7/dist-packages/swiftclient/shell.py", line 492, in st_stat
    stat_result = swift.stat()
  File "/usr/lib/python2.7/dist-packages/swiftclient/service.py", line 443, in stat
    raise SwiftError('Account not found', exc=err)
swiftclient.service.SwiftError: 'Account not found'

Do you have any clues on what/where might be the error?

Thanks and Kind Regards,

Riccardo


Debug Log

DEBUG:keystoneclient.auth.identity.v3:Making authentication request to http://controller:35357/v3/auth/tokens
INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller
DEBUG:urllib3.connectionpool:Setting read timeout to None
DEBUG:urllib3.connectionpool:"POST /v3/auth/tokens HTTP/1.1" 201 4747
DEBUG:iso8601.iso8601:Parsed 2016-02-26T13:29:34.657991Z into {'tz_sign': None, 'second_fraction': u'657991', 'hour': u'13', 'daydash': u'26', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'34', 'tz_minute': None, 'year': u'2016', 'separator': u'T', 'monthdash': u'02', 'day': None, 'minute': u'29'} with default timezone <iso8601.iso8601.Utc object at 0x7f42363950d0>
DEBUG:iso8601.iso8601:Got u'2016' for 'year' with default None
DEBUG:iso8601.iso8601:Got u'02' for 'monthdash' with default 1
DEBUG:iso8601.iso8601:Got 2 for 'month' with default 2
DEBUG:iso8601.iso8601:Got u'26' for 'daydash' with default 1
DEBUG:iso8601.iso8601:Got 26 for 'day' with default 26
DEBUG:iso8601.iso8601:Got u'13' for 'hour' with default None
DEBUG:iso8601.iso8601:Got u'29' for 'minute' with default None
DEBUG:iso8601.iso8601:Got u'34' for 'second' with default None
INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller
DEBUG:urllib3.connectionpool:Setting read timeout to <object object at 0x7f4239c02090>
DEBUG:urllib3.connectionpool:"HEAD /v1/AUTH_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 400 0
INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -I -H "X-Auth-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
INFO:swiftclient:RESP STATUS: 400 Bad Request
INFO:swiftclient:RESP HEADERS: [('date', 'Fri, 26 Feb 2016 12:29:34 GMT'), ('content-length', '0'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx5e89c5cc0e8848ffa6dba-0056d0452e')]
ERROR:swiftclient:Account HEAD failed: http://controller:8080/v1/AUTH_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 400 Bad Request
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1243, in _retry
    rv = func(self.url, self.token, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 528, in head_account
    http_response_content=body)
ClientException: Account HEAD failed: http://controller:8080/v1/AUTH_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 400 Bad Request
Traceback (most recent call last):
  File "/usr/bin/swift", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/dist-packages/swiftclient/shell.py", line 1287, in main
    globals()['st_%s ...
(more)
edit retag flag offensive close merge delete

Comments

I found some issues with swiftclient and keystone v3. Try it with openstack container list

Regards

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-02-29 12:10:16 -0600 )edit

Hi Eduardo, Thanks for your help,I installed the previous Icehouse release and found the same issue, but solved See: https://ask.openstack.org/en/question/89373/icehouse-swift-account-head-failed-httpswiftproxy80808080v1auth_-400-bad-request (https://ask.openstack.org/en/question...)

Riccardo gravatar imageRiccardo ( 2016-03-07 06:50:59 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-02-26 11:07:03 -0600

Riccardo gravatar image

Hi all,

On another note, when I try to list I do get an invalid path and the token seems truncated. Might this be an issue since I'm using ISCSI drives on SAN and Multipath-tools?

 swift -V 3 list
Account GET failed: http://controller:8080/v1/AUTH_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx?format=json 400 Bad Request  [first 60 chars of response] Invalid path: /mapper/objstb/726/AUTH_xxxxxxxxxxxxxxxxxxxxxx

Thanks for any help, Kind Regards, Riccardo

edit flag offensive delete link more

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-02-26 05:17:11 -0600

Seen: 165 times

Last updated: Feb 26 '16