openstack swift install problem:swiftclient.service.SwiftError: 'Account not found'

asked 2015-04-15 00:15:13 -0600

xiaokangwang gravatar image

updated 2015-04-22 10:58:29 -0600

rbowen gravatar image

when I execute the command: swift stat on the controller node the error fllows like this :

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

who can help me resolve this error? here is my proxy-server.conf:

'[DEFAULT]
bind_port = 8080
user = swift
swift_dir = /etc/swift
[pipeline:main]
pipeline = catch_errors healthcheck cache authtoken proxy-server
[app:proxy-server]
use = egg:swift#proxy
allow_account_management = true
account_autocreate = true
[filter:tempauth]
use = egg:swift#tempauth
[filter:authtoken]
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
auth_uri = http://controller:5000/v2.0
identity_uri = http://controller:35357
admin_tenant_name = service
admin_user = swift
admin_password = wxk_123
delay_auth_decision = true
[filter:keystoneauth]
use = egg:swift#keystoneauth
operator_roles = admin,_member_
[filter:healthcheck]
use = egg:swift#healthcheck
[filter:cache]
use = egg:swift#memcache
memcache_servers = 127.0.0.1:11211
[filter:ratelimit]
use = egg:swift#ratelimit
[filter:domain_remap]
use = egg:swift#domain_remap
[filter:catch_errors]
use = egg:swift#catch_errors
[filter:cname_lookup]
# Note: this middleware requires python-dnspython
use = egg:swift#cname_lookup
[filter:staticweb]
use = egg:swift#staticweb
[filter:tempurl]
use = egg:swift#tempurl
[filter:formpost]
use = egg:swift#formpost
[filter:name_check]
use = egg:swift#name_check
[filter:list-endpoints]
use = egg:swift#list_endpoints
[filter:proxy-logging]
use = egg:swift#proxy_logging
[filter:container-quotas]
use = egg:swift#container_quotas
[filter:slo]
use = egg:swift#slo
[filter:dlo]
use = egg:swift#dlo
[filter:gatekeeper]
use = egg:swift#gatekeeper
[filter:container_sync]
use = egg:swift#container_sync
[filter:xprofile]
use = egg:swift#xprofile
'

in swift.conf I do some exchange like this :

swift_hash_path_suffix = cloud
swift_hash_path_prefix = inspur
[storage-policy:0]
name = Policy-0
default = yes
.
edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2015-04-22 11:05:01 -0600

zaitcev gravatar image

If this is the first account, most likely permissions are screwed up in the back-end storage, so accounts are not created. The stat doesn't expect that to happen and aborts.

edit flag offensive delete link more
0

answered 2015-05-11 07:18:54 -0600

junneyang gravatar image

i encountered the same eproblem, i have tried all the methods provided on this wbstite, waiting for your help !!! the traceback as below:

[root@devstack OpenStack]# swift --debug stat /usr/lib/python2.6/site-packages/keystoneclient/access.py:20: DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_utils instead. from oslo.utils import timeutils DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://controller0:35357/v2.0/tokens INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller0 DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 1395 DEBUG:iso8601.iso8601:Parsed 2015-05-10T10:03:22Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'10', 'daydash': u'10', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'22', 'tz_minute': None, 'year': u'2015', 'separator': u'T', 'monthdash': u'05', 'day': None, 'minute': u'03'} with default timezone DEBUG:iso8601.iso8601:Got u'2015' for 'year' with default None DEBUG:iso8601.iso8601:Got u'05' for 'monthdash' with default 1 DEBUG:iso8601.iso8601:Got 5 for 'month' with default 5 DEBUG:iso8601.iso8601:Got u'10' for 'daydash' with default 1 DEBUG:iso8601.iso8601:Got 10 for 'day' with default 10 DEBUG:iso8601.iso8601:Got u'10' for 'hour' with default None DEBUG:iso8601.iso8601:Got u'03' for 'minute' with default None DEBUG:iso8601.iso8601:Got u'22' for 'second' with default None INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller0 DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_fc5fe691bf5647e7b4d9987842fb7c97 HTTP/1.1" 401 0 INFO:swiftclient:REQ: curl -i http://controller0:8080/v1/AUTH_fc5fe691bf5647e7b4d9987842fb7c97 (http://controller0:8080/v1/AUTH_fc5fe...) -I -H "X-Auth-Token: 2e5c8b48e8d14bde9c0d1be076f39f91" INFO:swiftclient:RESP STATUS: 401 UnauthorizedINFO:swiftclient:RESP HEADERS: [('content-length', '0'), ('connection', 'keep-alive'), ('x-trans-id', 'tx3219a54648b14a3da8570-00554f1eda'), ('date', 'Sun, 10 May 2015 09:03:22 GMT'), ('content-type', 'text/html; charset=UTF-8'), ('www-authenticate', 'Swift realm="AUTH_fc5fe691bf5647e7b4d9987842fb7c97"')] DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://controller0:35357/v2.0/tokens INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller0 DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 1395 DEBUG:iso8601.iso8601:Parsed 2015-05-10T10:03:23Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'10', 'daydash': u'10', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'23', 'tz_minute': None, 'year': u'2015', 'separator': u'T', 'monthdash': u'05', 'day': None, 'minute': u'03'} with default timezone DEBUG:iso8601.iso8601:Got u'2015' for 'year' with default None DEBUG:iso8601.iso8601:Got u'05' for 'monthdash' with default 1 DEBUG:iso8601.iso8601:Got 5 for 'month' with default 5 DEBUG:iso8601.iso8601:Got u'10' for 'daydash' with default 1 DEBUG:iso8601.iso8601:Got 10 for 'day' with default 10 DEBUG:iso8601.iso8601:Got u'10' for 'hour' with default None DEBUG:iso8601.iso8601:Got u'03' for 'minute' with default None DEBUG:iso8601.iso8601:Got u'23' for 'second' with default None INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller0 DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_fc5fe691bf5647e7b4d9987842fb7c97 HTTP/1.1" 401 ... (more)

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-04-15 00:12:20 -0600

Seen: 463 times

Last updated: May 11 '15