13:01:52 #startmeeting neutron_db 13:01:53 Meeting started Mon Jul 21 13:01:52 2014 UTC and is due to finish in 60 minutes. The chair is HenryG. Information about MeetBot at http://wiki.debian.org/MeetBot. 13:01:54 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 13:01:57 The meeting name has been set to 'neutron_db' 13:02:02 Agenda #link https://wiki.openstack.org/wiki/Meetings/NeutronDB#Agenda 13:02:11 Thanks again to everyone for the great work in getting the healing merged! 13:02:23 Now we need to clean up some things and look at testing. 13:02:33 #topic Unit Tests 13:02:49 Problems with migrations unit test in the gate 13:02:52 yeah, so spent some time today debugging unit tests failures in the gate 13:02:57 #link: https://review.openstack.org/76520 13:03:21 #link https://review.openstack.org/107992 13:03:27 the reason is that we have tables using different mysql engines: some of them use innodb, other use myisam 13:03:47 the problem is that you can reference a column of a myisam table from an innodb table 13:04:02 the mysql version in the gate defaults to myisam 13:04:23 and we specify the engine to be used only in a few migration scripts 13:04:30 while others use default value 13:04:37 I've done some time ago patch to unify engines, maybe it can be handy - https://review.openstack.org/#/c/81334/ 13:04:56 e.g. my mysql defaults to innodb 13:05:02 so the same tests work fine for me 13:05:21 so the solution is straightforward - convert all tables to innodb 13:05:35 and check all new tables to be created will use it 13:06:02 the problem is that we have to support existing installations of neutron 13:06:09 which might have myisam tables 13:06:22 converting those to innodb can take *some* time 13:06:55 so this particular migration script is going to be slow 13:07:37 jlibosva: yeah, we definitely will need that 13:07:51 for new installations 13:08:22 and for existing ones - another migration script... 13:08:44 I am not familiar with backends and storage engines. Does this affect PostgresSQL? 13:08:45 * rpodolyaka blames mysql defaults... 13:08:55 HenryG, no 13:08:56 nope 13:09:05 Phew. 13:09:53 OK, so we see how the patch to force InnoDB goes, then rebase the unit test patch on that? 13:10:28 HenryG, yes 13:10:31 yeah. and jlibosva's patch to patch existing migration scripts 13:10:49 we could even squash them 13:10:56 It also contains function to change current tables to use given storage engine 13:11:10 ah, great 13:11:17 Either way is fine/ 13:11:35 jlibosva: have you tested it on big tables? 13:11:50 big == >1KK of rows 13:11:56 rpodolyaka: no, just ordinary 13:12:03 and it takes some time ... 13:12:08 yep :( 13:12:22 anyway, it doesn't seem we have much choice her 13:12:28 agreed 13:12:43 though, I'd ask mysql gurus first :) 13:13:19 Do you think many existing installations have MyISAM tables? 13:13:54 good question 13:14:03 it depends on the mysql version these installations use 13:14:37 I mean, there may be no such cases at all 13:15:34 ..or all the tables might be myisam ones (except 3 tables we set the engine explicitly for) 13:16:51 if some table use myisam heal_migration wll fail 13:17:03 We'll have to document that it will take time if there are big existing MyISAM tables. 13:17:36 I just hope mysql switched the default value to innodb a long time ago... 13:18:05 Why is the gate defaulting to MyISAM? 13:19:01 we should check the mysqld config of the gate 13:19:24 either we set the default engine to be myisam, or mysql does 13:19:50 rpodolyaka: Can you investigate? 13:20:07 HenryG: sure! 13:20:19 rpodolyaka@rpodolyaka-pc:~/src/config$ grep -i myisam . -R 13:20:19 ./modules/openstack_project/manifests/slave_db.pp: 'default_engine' => 'MyISAM', 13:20:30 will take a look 13:20:53 #action rpodolyaka to research storage engine configuration in the gate 13:21:00 rpodolyaka: Thanks! 13:21:08 np 13:21:27 Let's move on to the next item in the agenda 13:21:49 #topic Rewriting History 13:21:59 Nuage plugin wants to delete some migrations from the timeline 13:22:07 #link https://review.openstack.org/105611 13:22:14 Do they have a reason to do so? 13:22:29 imo it could be done by usual migration script 13:22:35 They changed their design 13:22:59 They want to undo that and do it a different way 13:23:14 in commit message mentioned that no deployment work was done 13:23:31 akamyshnikova: yes 13:24:54 Question is, should we allow them to remove the two migrations? Or as jlibosva said, fix it with a new migration? 13:25:10 I don't like the idea of removing migrations, but may be in this it is ok... 13:25:40 If someone is working with trunk and deployed juno, they already have all tables because of db_heal 13:26:00 if they make a change in timeline before healing, the change won't affect people using current trunk 13:27:12 jlibosva: You are right. Even if they do not use nuage plugin, it is a problem. 13:27:17 yes 13:27:29 Because now all tables are in the DB. 13:28:02 OK, I will comment on that patch. 13:28:35 next 13:28:42 #topic Model Class Consolidation 13:29:06 This is about moving all model classes to one directory. 13:29:57 This is a big code shuffle change. 13:30:07 I think it would be better to separate plugin models instead of putting everything in one file 13:30:15 Because of packaging 13:31:05 jlibosva: Agreed. In fact, I think we should have a lot of separate files. Almost as there are today. 13:31:17 But all under one directory 13:31:35 And containing only the models. 13:31:40 good idea 13:32:05 it will give packagers option to exclude plugin specific models 13:32:21 hm, then again, they are already in db 13:32:58 jlibosva: right. From now on they should not split models out of any packages. 13:33:05 * jlibosva shuts up :) 13:33:44 But having separate files will allow more efficient importing in the rest of the neutron code base where needed. 13:34:18 We don't need everyone import all models all the time. 13:34:45 I think it is OK to file a bug for this work? 13:35:15 can not it be part of bp about db-refactor? 13:35:47 I agree with akamyshnikova 13:36:02 akamyshnikova: It could be, but mestery wants to mark that BP as done this week. :) 13:36:24 HenryG: I can start working on it today 13:37:00 (Although I see no problem using an "Implemented" BP to commit code.) 13:37:04 jlibosva: Thanks! 13:37:53 I mean that should optimistically imply we can make it this week :-) 13:38:01 moving on 13:38:08 #topic Grenade 13:38:23 I have not given this much attention :( 13:38:29 I did a little 13:38:32 https://review.openstack.org/#/c/106000/ 13:38:48 I fail to get sdague to take a look on the link above 13:39:40 It should bring neutron grenade testing back to life. Although, there still could be tempest failures due to flakies since it runs tempest twice 13:40:24 #action HenryG and mestery to poke sdague to look at https://review.openstack.org/106000 13:41:09 Thanks jlibosva, I'll try to help getting more traction on this now 13:41:24 HenryG: thanks 13:41:41 HenryG: Looked 13:42:27 mestery: thanks! 13:43:26 #topic Reorganize Migrations 13:43:42 salv-orlando is not here 13:43:57 akamyshnikova: I guess you are not working much on this yet? 13:44:43 Sorry 13:44:50 #link http://git.openstack.org/cgit/openstack/neutron-specs/tree/specs/juno/reorganize_migrations.rst 13:44:52 I have a talk with salv-orlando on Friday, but with all this tests failing I don't have time to think much about it 13:45:16 akamyshnikova: Understood. No problem. 13:46:02 We'll discuss it more when the test items are done 13:46:11 HenryG, thanks 13:46:18 #topic Open discussion 13:47:21 I have one thing: There is neutron-db-manage command that doesn't fit with other similar openstack component's tools 13:47:50 e.g. nova has "nova db sync" without providing any configuration file because it can be obtained automatically with oslo function 13:48:35 I'd like to unify this with other services so Neutron doesn't differ. My question is: should I file it as a bug or BP? SAD has passed :( 13:48:45 and what are your opinions on this idea? 13:49:28 for me it sounds more like bp 13:49:45 agreed 13:50:02 Which means Kilo 13:50:10 I think that is OK though 13:50:44 I have one small question. Are we going to have some meeting or talks on summit in Paris this year that I should participate in? 13:50:49 For Juno we should just tweak the template for autogenerate 13:52:39 akamyshnikova: the design sessions are usually decided quite late. 13:53:38 That said, I personally don't have any DB session planned, since the Neutron DB 'team' is so small. 13:54:07 HenryG, ok, thanks :) 13:54:25 Not sure about oslo.db at the summit. rpodolyaka ? 13:55:04 akamyshnikova: But I highly recommend attending the summit anyway, for all openstack developers. :) 13:55:52 HenryG: not sure, if I make to the summit this time 13:59:46 Well, I hope to have an informal session with any DB folks that are at the summit. We'll just discuss any items that are current at the time, and maybe discuss future plans. 14:00:32 But it looks like the big items will be behind us by then. 14:00:55 Thanks everyone! 14:01:01 #endmeeting