swift-auth 405 and 503 errors

Asked by Sonali Parthasarathy

When I try to execute this command, i get "Update failed: 503 Service Unavaialable" error

swift-auth-add-user -K devauth -a system root testpass

I changed the following in the conf files:

account-server.conf:
[DEFAULT]
mount_check =false

proxy-server.conf:
[DEFAULT]
bind_port = 8080

I've used revision 154. The syslog shows the following errors

Jan 6 18:50:38 ubuntu-x3850-2 auth-server validate_token('AUTH_tkf6b99764fe994deaad50287a69da0d6e', _, _) = (86399.985820055008, '.super_admin', '.single_use', '.reseller_admin') [0.00]
Jan 6 18:50:38 ubuntu-x3850-2 auth-server 127.0.0.1 - - [06/Jan/2011:23:50:38 +0000] "GET /token/AUTH_tkf6b99764fe994deaad50287a69da0d6e HTTP/1.0" 204 - "-" "-" - - - - - - - - - "-" "127.0.0.1" "-" 0.0036
Jan 6 18:50:38 ubuntu-x3850-2 auth-server ERROR attempting to create account http://127.0.0.1:8080/v1/AUTH_72c5c27b93c048b2930a8df3379e012c: 405 Method Not Allowed
Jan 6 18:50:38 ubuntu-x3850-2 auth-server FAILED create_user('test', 'tester', _, True, False) [0.03]
Jan 6 18:50:38 ubuntu-x3850-2 proxy-server - 127.0.0.1 06/Jan/2011/23/50/38 PUT /v1/AUTH_72c5c27b93c048b2930a8df3379e012c HTTP/1.0 405 - - .super_admin%3A.single_use%2CAUTH_tkf6b99764fe994deaad50287a69da0d6e - - - tx9937af5a-4eb1-41ec-b849-635e322b8f6b - 0.0021
Jan 6 18:50:38 ubuntu-x3850-2 auth-server 127.0.0.1 - - [06/Jan/2011:23:50:38 +0000] "PUT /account/test/tester HTTP/1.0" 503 - "-" "-" - - - - - - - - - "-" "127.0.0.1" "-" 0.0288

Any ideas on how to fix this?
Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
gholt
Solved:
Last query:
Last reply:
Revision history for this message
Best gholt (gholt) said :
#1

Quite likely you need to add allow_account_management = true to your proxy configuration.

Here's a bit more of an explanation from the mailing list:

https://lists.launchpad.net/openstack/msg00096.html

Revision history for this message
Sonali Parthasarathy (sonali2197) said :
#2

Thanks gholt, that solved my question.

Revision history for this message
Sonali Parthasarathy (sonali2197) said :
#3

In addition to that I had to change the permissions for the partitions