No auth-server running

asked 2010-11-29 13:45:30 -0500

neu242 gravatar image

Hi.

default_cluster_url doesn't seem to be read. The following shouldn't return 127.0.0.1:

$ swift-auth-add-user -K devauth test tester7 testing7 http://127.0.0.1:8080/v1/AUTH_e23c73631ece41a98347858558352aab (http://127.0.0.1:8080/v1/AUTH_e23c736...)

Here's my /etc/swift/auth-server.conf:

[DEFAULT] bind_ip = 0.0.0.0 bind_port = 11000 user = myuser

[pipeline:main] pipeline = auth-server

[app:auth-server] use = egg:swift#auth default_cluster_url = http://192.168.2.3:8080/v1

Highly recommended to change this.

super_admin_key = devauth

What am I doing wrong?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2010-11-29 16:06:51 -0500

clay-gerrard gravatar image

Hrm... you should try and restart your auth server to make sure that it's using the latest config settings

"swift-init auth reload"

Also, I haven't tested this yet - but you may need to create an admin user on a new account instead of an unprivileged user on an existing account. Look at the "-a" option of "swift-auth-add-user" - try: swift-auth-add-user -K devauth ulrtest testuser testpass

Also note that any existing accounts will already be in the database with the "127.0.0.1" url - so they'll need to be recreated (you'll have to remove /etc/swift/auth.db or issue sql against it directly to update the rows).

edit flag offensive delete link more
0

answered 2010-12-07 16:27:14 -0500

when you add account:user, if the account already exist, the default_cluster_url will use the same url with that exist account; if the account not exist, then they will use the auth-server.conf's default_cluster_url.

you can see swift.auth.server ---> create_user: row = conn.execute( 'SELECT url, cfaccount FROM account WHERE account = ?', (account,)).fetchone() if row: url = row[0]

so, clayg said " you may need to create an admin user on a new account instead of an unprivileged user on an existing account" is right.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2010-11-29 13:45:30 -0500

Seen: 25 times

Last updated: Dec 07 '10