there are accounts in your auth.db that do not begin with your new reseller prefix of "auth"

Asked by Du Ran

I found a message in my /var/log/syslog , it says:

Mar 9 19:31:23 ubuntuswift swift CRITICAL:
THERE ARE ACCOUNTS IN YOUR auth.db THAT DO NOT BEGIN WITH YOUR NEW RESELLER PREFIX OF "AUTH". YOU HAVE A FEW OPTIONS:
1) RUN "swift-auth-update-reseller-prefixes /tmp/swift_test_auth_2bba374d0b7d4699875e443a24abbbf5/auth.db AUTH", "swift-init auth-server restart", AND "swift-auth-recreate-accounts -K ..." TO CREATE FRESH ACCOUNTS. OR
2) REMOVE /tmp/swift_test_auth_2bba374d0b7d4699875e443a24abbbf5/auth.db, RUN "swift-init auth-server restart", AND RUN "swift-auth-add-user ..." TO CREATE BRAND NEW ACCOUNTS THAT WAY. OR
3) ADD "reseller_prefix = " (WITHOUT THE QUOTES) TO YOUR proxy-server.conf IN THE [filter:auth] SECTION AND TO YOUR auth-server.conf IN THE [app:auth-server] SECTION AND RUN "swift-init proxy-server restart" AND "swift-init auth-server restart" TO REVERT BACK TO YOUR PREVIOUS RESELLER PREFIX.
SINCE YOUR PREVIOUS RESELLER PREFIX WAS AN EMPTY STRING, IT IS NOT RECOMMENDED TO PERFORM OPTION 3 AS THAT WOULD MAKE SUPPORTING MULTIPLE RESELLERS MORE DIFFICULT.

but when I tried the above methods, it returned the following messages:

Updating /tmp/swift_test_auth_2bba374d0b7d4699875e443a24abbbf5/auth.db
Traceback (most recent call last):
  File "/usr/local/bin/swift-auth-update-reseller-prefixes", line 7, in <module>
    execfile(__file__)
  File "/home/bella/swift/trunk/bin/swift-auth-update-reseller-prefixes", line 32, in <module>
    conn = get_db_connection(db)
  File "/home/bella/swift/trunk/swift/common/db.py", line 147, in get_db_connection
    timeout=timeout)
swift.common.db.DatabaseConnectionError: DB connection error (/tmp/swift_test_auth_2bba374d0b7d4699875e443a24abbbf5/auth.db, 30):
Traceback (most recent call last):
  File "/home/bella/swift/trunk/swift/common/db.py", line 129, in get_db_connection
    factory=GreenDBConnection, timeout=timeout)
  File "/home/bella/swift/trunk/swift/common/db.py", line 68, in __init__
    sqlite3.Connection.__init__(self, *args, **kwargs)
OperationalError: unable to open database file
then I tried the second method , and found that the file /tmp/swift_test_auth_2bba374d0b7d4699875e443a24abbbf5/auth.db
dosen't exist.

what should I do next? By the way,what is reseller prefix? did I mis-config something?
thanks a lot.

Question information

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

Can you help with this problem?

Provide an answer of your own, or ask Du Ran for more information if necessary.

To post a message you must log in.