swiftclient.service.SwiftError: 'Account not found'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| openstack-manuals |
Medium
|
Alexandra Settle |
Bug Description
-------
Built: 2015-08-07T01:59:18 00:00
git SHA: abdedacebf22df1
URL: http://
source File: file:/home/
xml:id: swift-install-
Udayendu Kar (udayendu-kar) wrote : | #1 |
Changed in openstack-manuals: | |
assignee: | nobody → willy lin (willy-l) |
Fix proposed to branch: master
Review: https:/
Changed in openstack-manuals: | |
status: | New → In Progress |
Change abandoned by willy lin (<email address hidden>) on branch: master
Review: https:/
Fix proposed to branch: master
Review: https:/
Vitaly Yevstigneyev (asmaral71) wrote : | #5 |
The workaround described above did not work for me: I'm still experiencing this error.
Udayendu Kar (udayendu-kar) wrote : | #6 |
@Vitaly,
Try the below:
# swift -V 3 stat
Sorry for my typo in the above. I was just testing without '-V 3' but its 100% reproducible in my system with '-V 3' which is the correct way as per the doc. With the default entry as per the doc, I am getting that error but after replacing that with the new entry its working. My new entry is:
pipeline = catch_errors healthcheck cache authtoken proxy-logging proxy-server
NOTE: After the change you have to restart 'swift-proxy' service and source the file having environmental variables bedore rinning "swift -V 3 stat" command.
Apart from that line, no changes were made in "proxy-server.conf" file. Its just having the change as mentioned in the openstack swift doc.
If you have already tried the above then let me know, I will change the password and will share my proxy-server.conf file for you.
Matt Kassawara (ionosphere80) wrote : | #7 |
Why are you disabling the 'keystoneauth' pipeline?
Changed in openstack-manuals: | |
status: | In Progress → Incomplete |
Udayendu Kar (udayendu-kar) wrote : | #8 |
Matt,
I dont want to disable but with keystomeauth I am unable to use swift.
Change abandoned by willy lin (<email address hidden>) on branch: master
Review: https:/
Hi Willy Lin,
Were you able to progress on this solution any further? Do you need help triaging this bug?
Thanks.
Changed in openstack-manuals: | |
importance: | Undecided → Medium |
@udayendu-kar
More information needs to be provided for this bug to be verified. Have you solved your issue? If so, were you able to replicate it more than once?
Changed in openstack-manuals: | |
assignee: | willy lin (willy-l) → Alexandra Settle (alexandra-settle) |
I'm closing this as I cannot triage this bug and replicate it.
If someone can prove that this bug is indeed able to be replicated and a problem within the documentation, please reopen.
Changed in openstack-manuals: | |
status: | Incomplete → Invalid |
sfinga (holanova-al) wrote : | #13 |
Hi,
I tried to solve this bug one week ago. Disabling keystoneauth in pipeline helped me, but without authentication with keystone I was able to get any file from any tenant.
So I tried deploy DevStack with Swift and then I compare proxy-server.conf files.
There was some differences in pipeline and in order of filters. I set the proxy-server.conf file same way as in DevStack and it works.
root@prx03:~# vim /etc/swift/
[DEFAULT]
bind_ip = 0.0.0.0
bind_port = 8080
swift_dir = /etc/swift
user = swift
log_level = DEBUG
[pipeline:main]
pipeline = catch_errors gatekeeper healthcheck proxy-logging cache container_sync bulk tempurl ratelimit crossdomain authtoken keystoneauth tempauth formpost staticweb container-quotas account-quotas slo dlo proxy-logging proxy-server
[app:proxy-server]
account_autocreate = true
conn_timeout = 20
node_timeout = 120
use = egg:swift#proxy
[filter:tempauth]
user_swifttenan
user_swifttenan
user_swifttenan
use = egg:swift#tempauth
user_admin_admin = admin .admin .reseller_admin
user_test_tester = testing .admin
user_test2_tester2 = testing2 .admin
user_test_tester3 = testing3
user_test5_tester5 = testing5 service
[filter:
use = egg:swift#
[filter:cache]
use = egg:swift#memcache
[filter:ratelimit]
use = egg:swift#ratelimit
[filter:
use = egg:swift#
[filter:
use = egg:swift#
[filter:
use = egg:swift#
[filter:staticweb]
use = egg:swift#staticweb
[filter:tempurl]
use = egg:swift#tempurl
[filter:formpost]
use = egg:swift#formpost
[filter:name_check]
use = egg:swift#
[filter:
use = egg:swift#
[filter:
reveal_
use = egg:swift#
[filter:bulk]
use = egg:swift#bulk
[filter:slo]
use = egg:swift#slo
[filter:dlo]
use = egg:swift#dlo
[filter:
use = egg:swift#
[filter:
use = egg:swift#
[filter:gatekeeper]
use = egg:swift#
[filter:
use = egg:swift#
[filter:xprofile]
use = egg:swift#xprofile
[filter:
use = egg:swift#
[filter:
use = egg:swift#
[filter:authtoken]
include_
cache = swift.cache
delay_auth_decision = 1
signing_dir = /var/cache/swift
auth_uri = http://
project_domain_id = default
project_name = service
user_domain_id = default
password = password
username = swift
auth_url = http://
auth_plugin = password
paste.filter_
log_name = swift
[filter:
operator_roles = Member, admin
use = egg:swift#
After that I restarted proxy server.
root@prx03:~# swift-init proxy-server restart
And check if swift works.
root@ctl01:~# source keystonercv3
root@ctl01:~# swift -V 3 stat
root@ctl01:~# swift -V 3 stat
Account: AUTH_cd3b21ac43
Containers: 0
Objects: 0
B...
As per the swift installation documentation on controller node, following need to be there in proxy-server.conf:
In the [pipeline:main] section, enable the appropriate modules:
~~~~
[pipeline:main]
pipeline = catch_errors gatekeeper healthcheck proxy-logging cache container_sync bulk ratelimit authtoken keystoneauth container-quotas account-quotas slo dlo proxy-logging proxy-server
~~~~
Which is causing the below error:
~~~~ exit(main( )) python2. 7/dist- packages/ swiftclient/ shell.py" , line 1287, in main )['st_% s' % args[0]](parser, argv[1:], output) python2. 7/dist- packages/ swiftclient/ shell.py" , line 492, in st_stat python2. 7/dist- packages/ swiftclient/ service. py", line 443, in stat service. SwiftError: 'Account not found'
# swift stat
Traceback (most recent call last):
File "/usr/bin/swift", line 10, in <module>
sys.
File "/usr/lib/
globals(
File "/usr/lib/
stat_result = swift.stat()
File "/usr/lib/
raise SwiftError('Account not found', exc=err)
swiftclient.
~~~~
To overcome this error, need to change the above entry to:
~~~~
pipeline = catch_errors healthcheck cache authtoken proxy-logging proxy-server
~~~~