How to recreate account?

Asked by sirkonst

I don't understand how create account again after delete.

In swift-proxy config:
> allow_account_management = true
> account_autocreate = true

My actions:
# create account
$ curl http://127.0.0.1:8080/v1/TEST_3 -X PUT
> 201 Created
# mark for delete
$ curl http://127.0.0.1:6080/v1/TEST_3 -X DELET
# ...
# wait for running swift-account-reaper
# ..
# and try create account again
$ curl http://127.0.0.1:8080/v1/TEST_3 -X PUT
# but always get error
> Recently deleted

How to force re-create account after deletion?

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
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
sirkonst (sirkonst) said :
#2

ping

Revision history for this message
Best gholt (gholt) said :
#3

I believe the system waits for a week or more before allowing an account to be recreated again. With most installations, this isn't an issue because new Swift accounts are usually created with "account hashes" that reflect back to a "real" account in another system, like Keystone.

There are ways to re-enable an account after deletion through direct manipulation (resetting flags in the underlying sqlite databases), but no tools for that yet. Again, it just hasn't been an issue with actual installations so nobody's spent the time making it happen, yet.

Revision history for this message
sirkonst (sirkonst) said :
#4

Thanks gholt, that solved my question.