13:00:18 #startmeeting neutron_db 13:00:19 Meeting started Mon Jun 23 13:00:18 2014 UTC and is due to finish in 60 minutes. The chair is HenryG. Information about MeetBot at http://wiki.debian.org/MeetBot. 13:00:20 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 13:00:23 The meeting name has been set to 'neutron_db' 13:00:37 Agenda #link https://wiki.openstack.org/wiki/Meetings/NeutronDB#Agenda 13:00:48 #topic Blueprint 13:01:06 The spec has a +2! Thanks salv-orlando! 13:02:03 Assuming there is not much left on the BP/spec, let's talk about implementation 13:02:11 #topic Work in progress 13:02:40 The patch by akamyshnikova_ has hit a hiccup 13:02:59 I think the biggest question is updating the versions of sqlalchemy and alembic 13:03:20 #link https://review.openstack.org/96438 13:03:57 Right. I am not familiar with the process for updating global requirements. 13:04:24 Do we need to get that approved first, and how long does it take? 13:04:36 I assume all OpenStack projects are affected? 13:04:59 The oslo db will need this versions too 13:05:07 so I think yes 13:05:25 hmm, I don't we need to update the global requirements 13:05:43 the version number we have there is enough for us 13:06:09 “there” as neutron or oslo.db? 13:06:37 global-requirements and hence in all projects 13:07:02 rpodolyaka: Jenkins comment on the patch: " 13:07:02 gate-neutron-requirements http://logs.openstack.org/38/96438/11/check/gate-neutron-requirements/f3239f5 : Incompatible requirement found; see https://wiki.openstack.org/wiki/Requirements" 13:07:13 * rpodolyaka looks 13:07:19 rpolodolyaka: obviously, thanks 13:08:00 ahh, akamyshnikova_ updated the lower bound, I missed that 13:08:16 yeah, this will obviously conflict with global requirements 13:08:42 You should send a patch to openstack/requirements 13:08:46 so the way we've been dealing with this in oslo.db so far is that we've been skipping the test if the version of sqlalchemy wasn't sufficient 13:08:53 but this won't work for us in neutron 13:09:01 as this is not something we can skip 13:09:20 so yeah, we'll need to update global-requirements 13:09:48 Is this a big deal? 13:09:50 0.8.4 has been released for a while, so this should not be a problem for distros 13:09:58 rpodolyaka: you know sqlalchemy better than anyone else in this room. I don’t think there is any concern in upgrading minimum requirement to 0.8.4 in globa, what do you reckon? 13:10:11 ok I think you’ve already answered that 13:10:19 yeah :) 13:10:25 What about alembic? 13:10:31 0.7.8 is a way too old 13:10:47 AFAIR 0.6.2 was released about 5-6 months ago 13:11:22 * rpodolyaka haven't checked new LTSes, but 0.6.2 must be there 13:11:36 Sounds safe(ish) to me. 13:11:39 what’s the reason for pinning alembic to 0,6,2 (just curious) 13:12:07 it adds the logic of unique constraints comparison 13:12:15 ok got it 13:12:18 so no missing uniques detection without prior to 0.6.2 13:12:37 the same is true for SA 0.8.4 13:13:39 So we should submit a request to openstack/requirements? Any volunteers? 13:13:50 akamyshnikova_: ? I'll +1 :) 13:14:17 ok 13:15:08 #action akamyshnikova_ to submit request to openstack/requirements to bump min versions of sqlalchemy and alembic 13:15:51 info for updating globa reqs: https://wiki.openstack.org/wiki/Requirements 13:16:02 Thanks salv-orlando 13:16:11 salv-orlando, thanks! 13:16:16 The other hiccup in the patch is: 13:16:21 "Cannot drop index 'firewall_rules_ibfk_1': needed in a foreign key constraint" 13:17:34 in my comment to Henry I describe why does this appear :) I think about some possible solutions. 13:18:27 currently this is about unsync models and migrations 13:18:38 akamyshnikova_: can you summarize your possible solutions? Or do you want to discuss in the review? 13:19:51 My understanding is we should have a migration before healing to sync the models with the db. 13:20:45 But I could be wrong. 13:21:45 the main idea is check foreign keys before checking indexes separately or when we checking index check if there is a foreign key. 13:23:45 In fact models almost sync with migrations except some arguable moments that are still on review or abandoned 13:23:46 You mean to do this within the healing migration? 13:24:51 yeah, in method remove_index or in separate one 13:25:28 OK, sounds good. 13:25:42 Any other questions on the WIP? 13:26:26 #topic Open discussion 13:27:41 I am still fuzzy on when exactly we should remove auto-generation of db schema from models at startup. 13:28:03 salv-orlando: ^^ 13:28:56 HneryG: eventually 13:29:07 OK :) 13:29:17 hello all, I just wanted to say that I am gonna work on adding a retry logic for failed db operations. I will file a spec this week, hopefully you guys can have a look :) 13:29:19 seriously, auto generation has a prerequisite which is bringing the migrations in sync with the models 13:29:43 other than that, you can go ahead with completing that work I think. 13:30:33 salv-orlando: I will at least keep the patch from going stale 13:31:15 rossella_s: sounds good. Feel free to add me as a reviewer so I see it 13:31:28 HenryG: I will 13:31:30 rossella_s: are you talking about DBConnectionError, Deadlocks, or everything 13:32:33 salv-orlando: DBConnectionError should be already handled, am I wrong? I was thinking of Deadlock as first step...I'd like to port the wrapper used in nova https://review.openstack.org/#/c/22276/3/nova/db/sqlalchemy/api.py 13:33:47 rossella_s: right. porting that deadlock wrapper is useful. altough I was wonder why is that not yet part of oslo.db, ropolyaka? 13:33:55 ropodolyaka: ^ ^ 13:34:20 but maybe we’re digressing now. I will hand it over to HenryG and wait for open discussion for going back to this. 13:34:38 salv-orlando: we are in open discussion :) 13:35:07 And I was going to ask rpodolyaka about oslo.db 13:35:07 salv-orlando: it is, but it might be difficult for neutron to reuse it 13:35:11 HenryG: we have some time, right? 25 minutes left 13:35:22 rpodolyaka: why difficult? 13:35:28 salv-orlando: as neutron doesn't have this DBAPI layer the other project do 13:35:59 rpodolyaka: What are the plans to port neutron to oslo.db? 13:36:16 HenryG: that’s my call as I’m the liaison for neutron 13:36:35 salv-orlando: What are the plans to port neutron to oslo.db? :) 13:36:38 HenryG: I'm going to upload a patch this week 13:36:42 I’m working on drafting a plan - I’d like to be able to push a spec by tomorrow 13:37:03 but from what I’ve gathered we have two blockers - one is schema auto generation 13:37:07 and the other is alembic. 13:37:37 In what way is alembic a blocker? 13:37:41 From what I gather oslo.db only supports sqlalchemy migrate atm. 13:37:52 I would like to make a complete “migration” to oslo.db 13:38:13 and use alembic from there. But there are ways around this problme, it’s not a show stopper 13:38:13 salv-orlando: yeah, we have experimental alembic support but it's being polished 13:38:28 salv-orlando: so it's not usable yet :( 13:38:48 we'll ask Mike to help us to get it merged 13:40:01 OK it sounds like plans are in place for addressing the blockers. It will just take time. 13:40:53 Any other questions? 13:41:08 salv-orlando: I will wait for your spec regarding the port to oslo db and then from there draft something about the retry logic 13:42:29 ok rossella_s 13:45:49 Thanks everyone 13:45:58 #endmeeting