*** psachin has joined #openstack-swift | 03:07 | |
*** viks__ has joined #openstack-swift | 06:37 | |
viks__ | Hi, I have a question regarding project/account deletion. If i delete a project in keystone, will it automatically delete all data related to that project in swift? or is there any tool which does that job or do i need to write my own script something like mark each object in each container of that project for deletion with X-Delete-At or X-Delete-After before deleting the project? Can anyone help me regarding how to | 06:51 |
---|---|---|
viks__ | delete an account/project? | 06:51 |
*** ccamacho has joined #openstack-swift | 09:45 | |
*** mikecmpbll has quit IRC | 10:22 | |
*** e0ne has joined #openstack-swift | 10:31 | |
*** mikecmpbll has joined #openstack-swift | 11:03 | |
DHE | viks__: no, that doesn't work that way. you will have to issue a DELETE yourself with an admin account, and the account-reaper can do the cleanup | 11:10 |
viks__ | DHE: thanks for the reply... so if i issue `openstack project delete <project name>`, the account/container/objects of that project will get automatically deleted after `interval` in reaper section? Am i correct? | 11:19 |
*** e0ne has quit IRC | 12:49 | |
*** saltsa has joined #openstack-swift | 13:19 | |
*** psachin has quit IRC | 13:30 | |
*** e0ne has joined #openstack-swift | 13:32 | |
DHE | swift uses keystone for authentication, but it's not going to pick up on the account being deleted by keystone separately. I think you'll have to issue a "DELETE /v1/AUTH_xxxxxxxx" HTTP command to mark the account as deleted, then the reaper will chew it up | 16:07 |
*** e0ne has quit IRC | 16:45 | |
*** e0ne has joined #openstack-swift | 18:14 | |
notmyname | viks__: what DHE said is correct. deleting a project in keystone will not delete any data in swift (unless there's some integration that I don't know about). as an admin, you will need to issue a DELETE to the swift account with a reseller admin token (normally this is the "admin" role in keystone IIRC). when that happens, the account will be marked as deleted and the account-reaper will recu | 19:17 |
notmyname | rsively delete everything in the account | 19:17 |
notmyname | you can delay the start of account reaping via the delay_reaping config value: https://github.com/openstack/swift/blob/master/etc/account-server.conf-sample#L234-L241 | 19:18 |
*** baojg has quit IRC | 20:25 | |
*** baojg has joined #openstack-swift | 20:26 | |
*** e0ne has quit IRC | 21:22 | |
*** baojg has quit IRC | 21:40 | |
*** baojg has joined #openstack-swift | 21:41 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!