Monday, 2018-12-24

*** psachin has joined #openstack-swift03:07
*** viks__ has joined #openstack-swift06: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 to06:51
viks__delete an account/project?06:51
*** ccamacho has joined #openstack-swift09:45
*** mikecmpbll has quit IRC10:22
*** e0ne has joined #openstack-swift10:31
*** mikecmpbll has joined #openstack-swift11:03
DHEviks__: 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 cleanup11: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 IRC12:49
*** saltsa has joined #openstack-swift13:19
*** psachin has quit IRC13:30
*** e0ne has joined #openstack-swift13:32
DHEswift 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 up16:07
*** e0ne has quit IRC16:45
*** e0ne has joined #openstack-swift18:14
notmynameviks__: 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 recu19:17
notmynamersively delete everything in the account19:17
notmynameyou 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-L24119:18
*** baojg has quit IRC20:25
*** baojg has joined #openstack-swift20:26
*** e0ne has quit IRC21:22
*** baojg has quit IRC21:40
*** baojg has joined #openstack-swift21:41

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!