12:15:34 #startmeeting barbican 12:15:34 Meeting started Tue Jun 20 12:15:34 2023 UTC and is due to finish in 60 minutes. The chair is dmendiza[m]. Information about MeetBot at http://wiki.debian.org/MeetBot. 12:15:34 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 12:15:34 The meeting name has been set to 'barbican' 12:16:06 #topic Roll Call 12:16:43 I need a coffee ☕ 12:17:08 It's @xek who should be running this, not d34dh0r53 12:17:52 rajiv , mharley @_oftc_mharley:matrix.org: still around? 12:18:04 I'm here. 12:18:06 o/ 12:18:17 yes 12:20:06 i havent cleaned up db past 3 years, i am planning to introduce a cron job for every 3hrs. 12:20:35 i couldnt find the barbican-manage output details, apart in models.py file 12:20:52 rajiv: OK, i'll add that to the agenda 12:21:07 is there any docu ? 12:21:17 As usual the agenda is over here: 12:21:25 #link https://etherpad.opendev.org/p/barbican-weekly-meeting 12:21:35 #topic Review Past Meeting Action Items 12:22:13 Looks like the last weekly meeting was this one: 12:22:15 #link https://meetings.opendev.org/meetings/barbican/2023/barbican.2023-06-06-12.00.html 12:22:31 and there were no action items 12:22:38 moving on 12:22:55 #topic Liaison Updates 12:23:01 tosky: around? 12:23:08 hi! 12:23:20 no updates from me 12:23:29 sounds good, thanks! 12:23:38 I haven't even checked if anything related happened on the PTG 12:23:44 I just came back from PTO so I don't have any updates either 12:23:47 (which I didn't attend) 12:24:08 same, I was out on vacation while a few other folks went up to Vancouver 12:24:30 I'm assuming d34dh0r53 is still not around for VMT updates 12:24:38 moving on 12:24:54 #topic DB cleaning 12:25:04 rajiv: this is your topic 12:25:57 thanks, i get the below output in qa, anything i need to lookout for ? 12:26:08 is there a better to share code here ? 12:26:18 2023-06-15 08:38:36,052 26 INFO barbican.model.clean [-] Cleaned up 784 entries for Order with no children in OrderRetryTask 12:26:23 2023-06-15 08:38:36,920 26 INFO barbican.model.clean [-] Cleaned up 99671 entries for EncryptedDatum 12:26:28 2023-06-15 08:38:36,925 26 INFO barbican.model.clean [-] Cleaned up 786 entries for SecretUserMetadatum 12:26:32 2023-06-15 08:38:38,051 26 INFO barbican.model.clean [-] Cleaned up 199354 entries for SecretStoreMetadatum 12:27:08 i cannot understand SecretStoreMetadatum in models.py, is there better documentation to understand what has been cleaned up ? 12:27:53 i also presume, once db is cleaned up, there isnt a way to restore ? apart taking a snapshot prior cleaning ? 12:30:27 rajiv: paste of a few lines is fine. For longer output use https://paste.opendev.org/ 12:31:11 this is the only docs I'm aware of: 12:31:13 #link https://docs.openstack.org/barbican/latest/admin/database_cleaning.html 12:31:19 https://paste.opendev.org/show/bdZFMnIZrjiHocD2S3a4/ 12:31:54 > what has been cleaned up ? 12:32:08 By default, everything in Barbican is soft-deleted 12:32:20 yes, i referred this page, but i dont understand whats SecretStoreMetadatum, EncryptedDatum, etc, i presume these are table names, correct ? 12:32:35 Theyre python object names 12:32:50 i have shared the barbican-manage db command output in the above paste link 12:33:02 #link https://opendev.org/openstack/barbican/src/branch/master/barbican/model/models.py#L386 12:33:17 #link https://opendev.org/openstack/barbican/src/branch/master/barbican/model/models.py#L453 12:33:59 rajiv: by default, "db clean" takes everything that was "soft-deleted" and deltes it for real 12:34:08 ie, actually purges the data from the DB 12:34:26 > there isnt a way to restore ? apart taking a snapshot prior cleaning ? 12:34:26 this is correct. 12:35:11 Objects that are soft-delted have a "deleted" column that is set to 1, and don't show up in API queries 12:35:15 okay, i wanted to understand the cleaning logic in detail 12:35:27 db clean looks for those objects and deletes them from the db 12:35:28 oh ok 12:36:01 100% agree that the output of the cli tool could be better 12:36:32 so from the output i shared in the paste link, everything looks expected ? i wanted to confirm before rolling out the change to production! 12:37:31 Yes, I don't see anything out of the ordinary there 12:37:48 cool, thanks 12:37:49 but definitely be sure you have a DB backup strategy before you start running db clean regularly 12:39:28 sure, db backups are taken every 15mins or if there is any change 12:39:44 maybe to start with, i will set the cron job for once a day 12:39:44 Awesome, yeah you should be good to go then. 12:40:32 :) 12:42:35 Great 12:42:39 any other questions on this topic? 12:48:13 I'll take that as a no 12:48:15 moving on 12:48:24 #topic Open Discussion 12:48:32 Anything else y'all want to talk about? 12:50:55 OK, moving on 12:50:59 #topic Bug Review 12:51:21 #link https://bugs.launchpad.net/barbican/+bugs?orderby=-id&start=0 12:52:39 Looks like there are no new bugs in Launchpad for Barbican 12:52:51 #link https://bugs.launchpad.net/python-barbicanclient/+bugs?orderby=-id&start=0 12:53:32 Looks like no new bugs in python-barbicanclient either 12:53:38 but we do need to update the description 12:53:53 the link preview in Matrix is showing me a message about migrating to Storyboard 12:53:58 which is no longer true 12:54:13 #action dmendiza to update python-barbicanclient launchpad to update Storyboard redirect 12:54:43 #link https://bugs.launchpad.net/castellan/+bugs?orderby=-id&start=0 12:54:50 And no new Castellan bugs 12:54:59 #link https://bugs.launchpad.net/cursive/+bugs?orderby=-id&start=0 12:55:03 and also no new Cursive bugs 12:55:14 that's all I have for today. Thanks for joining, y'all 12:55:17 #endmeeting