Tuesday, 2023-06-20

rajivHi12:01
dmendiza[m]🙋‍♂️12:02
dmendiza[m]d34dh0r53 meeting?12:03
mharleyo/12:03
rajivi have few questions regarding `barbican-manage db clean`, hope there is a meeting today ?12:06
dmendiza[m]I guess d34dh0r53 is not around 12:15
dmendiza[m]#startmeeting barbican12:15
opendevmeetMeeting 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
opendevmeetUseful Commands: #action #agreed #help #info #idea #link #topic #startvote.12:15
opendevmeetThe meeting name has been set to 'barbican'12:15
dmendiza[m]#topic Roll Call12:16
dmendiza[m]I need a coffee ☕12:16
dmendiza[m]It's @xek who should be running this, not d34dh0r5312:17
dmendiza[m]rajiv , mharley @_oftc_mharley:matrix.org: still around?12:17
mharleyI'm here.12:18
Luzio/12:18
rajivyes12:18
rajivi havent cleaned up db past 3 years, i am planning to introduce a cron job for every 3hrs.12:20
rajivi couldnt find the barbican-manage output details, apart in models.py file12:20
dmendiza[m]rajiv: OK, i'll add that to the agenda12:20
rajivis there any docu ?12:21
dmendiza[m]As usual the agenda is over here:12:21
dmendiza[m]#link https://etherpad.opendev.org/p/barbican-weekly-meeting12:21
dmendiza[m]#topic Review Past Meeting Action Items12:21
dmendiza[m]Looks like the last weekly meeting was this one:12:22
dmendiza[m]#link https://meetings.opendev.org/meetings/barbican/2023/barbican.2023-06-06-12.00.html12:22
dmendiza[m]and there were no action items12:22
dmendiza[m]moving on12:22
dmendiza[m]#topic Liaison Updates12:22
dmendiza[m]tosky: around?12:23
toskyhi!12:23
toskyno updates from me 12:23
dmendiza[m]sounds good, thanks!12:23
toskyI haven't even checked if anything related happened on the PTG12:23
dmendiza[m]I just came back from PTO so I don't have any updates either12:23
tosky(which I didn't attend)12:23
dmendiza[m]same, I was out on vacation while a few other folks went up to Vancouver12:24
dmendiza[m]I'm assuming d34dh0r53 is still not around for VMT updates12:24
dmendiza[m]moving on12:24
dmendiza[m]#topic DB cleaning12:24
dmendiza[m]rajiv: this is your topic12:25
rajivthanks, i get the below output in qa, anything i need to lookout for ?12:25
rajivis there a better to share code here ?12:26
rajiv2023-06-15 08:38:36,052 26 INFO barbican.model.clean [-] Cleaned up 784 entries for Order with no children in OrderRetryTask12:26
rajiv2023-06-15 08:38:36,920 26 INFO barbican.model.clean [-] Cleaned up 99671 entries for EncryptedDatum12:26
rajiv2023-06-15 08:38:36,925 26 INFO barbican.model.clean [-] Cleaned up 786 entries for SecretUserMetadatum12:26
rajiv2023-06-15 08:38:38,051 26 INFO barbican.model.clean [-] Cleaned up 199354 entries for SecretStoreMetadatum12:26
rajivi cannot understand SecretStoreMetadatum in models.py, is there better documentation to understand what has been cleaned up ?12:27
rajivi also presume, once db is cleaned up, there isnt a way to restore ? apart taking a snapshot prior cleaning ?12:27
dmendiza[m]rajiv: paste of a few lines is fine.  For longer output use https://paste.opendev.org/12:30
dmendiza[m]this is the only docs I'm aware of:12:31
dmendiza[m]#link https://docs.openstack.org/barbican/latest/admin/database_cleaning.html12:31
rajivhttps://paste.opendev.org/show/bdZFMnIZrjiHocD2S3a4/12:31
dmendiza[m]> what has been cleaned up ?12:31
dmendiza[m]By default, everything in Barbican is soft-deleted12:32
rajivyes, i referred this page, but i dont understand whats SecretStoreMetadatum, EncryptedDatum, etc, i presume these are table names, correct ? 12:32
dmendiza[m]Theyre python object names12:32
rajivi have shared the barbican-manage db command output in the above paste link12:32
dmendiza[m]#link https://opendev.org/openstack/barbican/src/branch/master/barbican/model/models.py#L38612:33
dmendiza[m]#link https://opendev.org/openstack/barbican/src/branch/master/barbican/model/models.py#L45312:33
dmendiza[m]rajiv: by default, "db clean" takes everything that was "soft-deleted" and deltes it for real12:33
dmendiza[m]ie, actually purges the data from the DB12:34
dmendiza[m]> there isnt a way to restore ? apart taking a snapshot prior cleaning ?12:34
dmendiza[m]this is correct.12:34
dmendiza[m]Objects that are soft-delted have a "deleted" column that is set to 1, and don't show up in API queries12:35
rajivokay, i wanted to understand the cleaning logic in detail12:35
dmendiza[m]db clean looks for those objects and deletes them from the db12:35
rajivoh ok12:35
dmendiza[m]100% agree that the output of the cli tool could be better12:36
rajivso from the output i shared in the paste link, everything looks expected ? i wanted to confirm before rolling out the change to production!12:36
dmendiza[m]Yes, I don't see anything out of the ordinary there12:37
rajivcool, thanks12:37
dmendiza[m]but definitely be sure you have a DB backup strategy before you start running db clean regularly12:37
rajivsure, db backups are taken every 15mins or if there is any change12:39
rajivmaybe to start with, i will set the cron job for once a day12:39
dmendiza[m]Awesome, yeah you should be good to go then.12:39
rajiv:) 12:40
dmendiza[m]Great12:42
dmendiza[m]any other questions on this topic?12:42
dmendiza[m]I'll take that as a no12:48
dmendiza[m]moving on 12:48
dmendiza[m]#topic Open Discussion12:48
dmendiza[m]Anything else y'all want to talk about?12:48
dmendiza[m]OK, moving on12:50
dmendiza[m]#topic Bug Review12:50
dmendiza[m]#link https://bugs.launchpad.net/barbican/+bugs?orderby=-id&start=012:51
dmendiza[m]Looks like there are no new bugs in Launchpad for Barbican12:52
dmendiza[m]#link https://bugs.launchpad.net/python-barbicanclient/+bugs?orderby=-id&start=012:52
dmendiza[m]Looks like no new bugs in python-barbicanclient either12:53
dmendiza[m]but we do need to update the description12:53
dmendiza[m]the link preview in Matrix is showing me a message about migrating to Storyboard12:53
dmendiza[m]which is no longer true12:53
dmendiza[m]#action dmendiza to update python-barbicanclient launchpad to update Storyboard redirect12:54
dmendiza[m]#link https://bugs.launchpad.net/castellan/+bugs?orderby=-id&start=012:54
dmendiza[m]And no new Castellan bugs12:54
dmendiza[m]#link https://bugs.launchpad.net/cursive/+bugs?orderby=-id&start=012:54
dmendiza[m]and also no new Cursive bugs12:55
dmendiza[m]that's all I have for today.  Thanks for joining, y'all12:55
dmendiza[m]#endmeeting12:55
opendevmeetMeeting ended Tue Jun 20 12:55:17 2023 UTC.  Information about MeetBot at http://wiki.debian.org/MeetBot . (v 0.1.4)12:55
opendevmeetMinutes:        https://meetings.opendev.org/meetings/barbican/2023/barbican.2023-06-20-12.15.html12:55
opendevmeetMinutes (text): https://meetings.opendev.org/meetings/barbican/2023/barbican.2023-06-20-12.15.txt12:55
opendevmeetLog:            https://meetings.opendev.org/meetings/barbican/2023/barbican.2023-06-20-12.15.log.html12:55

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!