Wednesday, 2017-04-26

openstackgerritMerged openstack/dragonflow master: Remove useless parameters for super class of RyuDFAdapter  https://review.openstack.org/45837700:58
*** dmellado has quit IRC01:00
*** dmellado has joined #openstack-dragonflow01:02
openstackgerrithujie proposed openstack/dragonflow master: remove duplicated bum flow for provider app  https://review.openstack.org/45905302:31
*** VenuReddy1 has joined #openstack-dragonflow03:41
*** VenuReddy has quit IRC03:43
openstackgerritMerged openstack/dragonflow master: Fix mech_driver not found  https://review.openstack.org/45613703:49
*** VenuReddy has joined #openstack-dragonflow04:18
*** VenuReddy2 has joined #openstack-dragonflow04:20
*** VenuReddy1 has quit IRC04:20
*** VenuReddy1 has joined #openstack-dragonflow04:21
*** VenuReddy has quit IRC04:24
*** VenuReddy2 has quit IRC04:24
*** VenuReddy has joined #openstack-dragonflow04:31
*** VenuReddy1 has quit IRC04:33
*** VenuReddy1 has joined #openstack-dragonflow04:43
*** VenuReddy has quit IRC04:46
*** gongysh has joined #openstack-dragonflow04:46
*** gongysh has quit IRC04:49
*** VenuReddy1 has quit IRC05:06
*** VenuReddy has joined #openstack-dragonflow05:06
*** VenuReddy1 has joined #openstack-dragonflow05:57
*** VenuReddy has quit IRC05:59
*** VenuReddy1 has quit IRC06:04
*** VenuReddy has joined #openstack-dragonflow06:04
*** VenuReddy has quit IRC06:17
*** VenuReddy has joined #openstack-dragonflow06:17
*** VenuReddy1 has joined #openstack-dragonflow06:28
*** VenuReddy has quit IRC06:28
*** l_jacob_ has quit IRC06:35
openstackgerritjingting proposed openstack/dragonflow master: Support VM live migration  https://review.openstack.org/39475906:40
openstackgerritjingting proposed openstack/dragonflow master: Support VM live migration  https://review.openstack.org/39475906:42
*** dimak_ has joined #openstack-dragonflow07:00
*** lewo has joined #openstack-dragonflow07:16
*** VenuReddy has joined #openstack-dragonflow07:17
*** VenuReddy1 has quit IRC07:19
*** VenuReddy1 has joined #openstack-dragonflow07:21
*** VenuReddy2 has joined #openstack-dragonflow07:23
*** VenuReddy has quit IRC07:23
*** VenuReddy1 has quit IRC07:25
oansondimak_, ping07:27
dimak_oanson, yes07:27
oansonI07:27
oansonI'm looking at https://review.openstack.org/#/c/459638/3/dragonflow/ovsdb/impl_idl.py@9607:27
*** VenuReddy2 has quit IRC07:27
*** VenuReddy has joined #openstack-dragonflow07:28
oansonI'm trying to think of a better flow that db_change_callback07:28
dimak_Yes, look at patch above07:28
dimak_I remove that07:28
oansonRight07:28
dimak_I can squash them if you'd like07:28
oanson1 sec, Let me look07:28
oansonI see.07:29
oansonBut now the events are emitted on the wrong thread07:29
oansondb_change_callback pushes the event onto a queue, which apply_db_changes then pulls and acts07:29
oansonThe changed code is in the ovsdb-monitor thread.07:30
*** VenuReddy1 has joined #openstack-dragonflow07:30
dimak_We'll thats not a NB event...07:30
oansonapply_db_changes runs in the controller threads07:30
dimak_Well*07:30
oansonTrue. But we want it to run in the controller thread, not the ovsdb-monitor thread07:30
dimak_Other thing that bothered be is dragonflow.db.models.ovs.OvsPort location, its not a Db model..07:31
dimak_We keep calling it that and treating it as such but maybe thats wrong07:31
oansonYou can move it to dragonflow.ovsdb07:31
oanson(A module inside, not directly on dragonflow.ovsdb (: )07:32
*** VenuReddy has quit IRC07:32
dimak_I think I'll do that07:32
oansonI'm thinking maybe we can pass a callable to the queue, have apply_db_changes call the callable07:32
oansonWith action = 'callable' or something, like 'log'07:33
dimak_And probably rename it07:33
dimak_no no no07:33
oansonIt was only a thought07:33
dimak_Hide table/action/key/value inside a callable as well then07:34
dimak_We can keep NbApi as the part that creates callables that apply db changes, and make local controller a thread that pops callables and executes them07:36
dimak_Just an idea07:36
oansonThat's what happens now07:37
oansonJust in api_nb, not df_controller07:37
oansonI'm beginning to think that the way it is at the end of 459638 is the best we can do07:37
oansonWe don't need special handling in api_nb - that's done in df_controller07:38
dimak_I just dislike the fact that we use table_name for a model that has no table07:38
dimak_and applying it as if were a nb update07:39
dimak_Its a bit confusing07:39
oansonmf.get_model works also on model names, not just table names, right?07:39
dimak_Yeah, I though of changing that07:39
oansonSo we can pass the model name to the event - then the model doesn't need a table name07:40
dimak_Maybe we can change ModelBase.emit to push all events to a queue07:40
dimak_then you can emit from any thread07:40
dimak_and have a dispatcher thread to take care of the queue items07:40
oansonI like that 'emit' emits immediately07:40
oansonMaybe add a 'queue event' somewhere, saying we want the event to be emitted but by someone else07:41
dimak_We can pass class name as table name and it'll work07:41
dimak_its just awkward that I have to pack this thing into a DbChange objects07:41
dimak_Plus jsonize and unjsonize it07:41
oansonYes - that is strange07:42
oansonI like the dispatcher idea07:43
oansonHave db_change_callback tell the dispatcher to queue the relevant event07:44
oansonThen have OVSDB monitor also queue different events07:44
dimak_Yes07:44
oansonMove the whole thing out of nb_api. The subscriber should queue events anyway07:44
dimak_It's what it already does :P07:45
oansonYes, but it does it through code in nb_api07:45
*** VenuReddy has joined #openstack-dragonflow07:45
*** VenuReddy2 has joined #openstack-dragonflow07:46
oansondimak_, to summarize - we need a dispatcher that queues events, and then emits them on the correct thread07:48
*** VenuReddy1 has quit IRC07:48
dimak_Why not handle all the events on a single thread / pool?07:49
*** VenuReddy1 has joined #openstack-dragonflow07:49
oansonThe events are sent to the dispatcher by subscriber and OVSDB monitor. They are taken from the dispatcher by the controller07:49
oansondimak_, yes. That's what the df-controller does07:49
dimak_Yeah07:49
oansonIn the bgp service case (xiaohhui's patches) the BGP service (not the DF controller) takes the events07:49
*** VenuReddy has quit IRC07:50
dimak_We can add a "dispatcher/worker" facility07:50
oansonYes.07:50
dimak_And have any service invoke it on its last line of run()07:50
*** VenuReddy2 has quit IRC07:50
oansonLet's skip the thread-pool, however. That won't work well in python due to the GIL07:51
oansondimak_, or a mixin overriding run. The publisher service, e.g., might use a different mechanism07:51
dimak_Yes, we should iron out the details, see what fits the existing use cases best07:52
oansonSounds like a spec :)07:52
dimak_I'll scribe something up07:53
oansonCheers07:54
dimak_Though do we block OvsPort migration for that?07:54
oansonNo07:54
oansonBut the skip nbapi for ovsport is blocked for that07:55
dimak_OvsPort is not referenced by any other model so its nothing urgent07:55
oansonTrue. And it depends on lport migration, which is still giving us trouble07:56
oansonBut I'd be happy to see this migration come to a happy end :)07:57
oansonCommented on both reviews07:59
*** VenuReddy has joined #openstack-dragonflow08:00
dimak_Great, thanks08:00
*** VenuReddy2 has joined #openstack-dragonflow08:00
*** VenuReddy has quit IRC08:04
*** VenuReddy1 has quit IRC08:04
*** VenuReddy has joined #openstack-dragonflow08:04
*** VenuReddy1 has joined #openstack-dragonflow08:05
*** VenuReddy2 has quit IRC08:07
*** VenuReddy has quit IRC08:08
*** VenuReddy1 has quit IRC08:10
openstackgerritjingting proposed openstack/dragonflow master: Support VM live migration  https://review.openstack.org/39475908:20
*** xiaohhui has joined #openstack-dragonflow08:24
*** VenuReddy has joined #openstack-dragonflow11:20
oansonlihi, I've approved the SG migration patch. Note that there are some comments on it11:34
oansonAre you still planning a refactor to that feature?11:34
oansonlihi, Uhm, ping :)11:34
lihioanson, pong :)11:35
oansonJust checking if you're here :)11:35
lihiyeah, but it will take some time until I'll get to it11:36
oansonNo rush. As long as the functional stuff is in, no one is blocked11:36
openstackgerritOmer Anson proposed openstack/dragonflow master: Support comparison of ModelProxy with None  https://review.openstack.org/45962611:41
openstackgerritMerged openstack/dragonflow master: Migrate Security Groups to new model structure  https://review.openstack.org/44554813:08
*** dimak_ has quit IRC15:17
*** VenuReddy1 has joined #openstack-dragonflow15:20
*** VenuReddy2 has joined #openstack-dragonflow15:20
*** VenuReddy has quit IRC15:23
*** VenuReddy1 has quit IRC15:25
*** VenuReddy has joined #openstack-dragonflow15:33
*** VenuReddy2 has quit IRC15:37
*** wangfeng has joined #openstack-dragonflow15:47
*** VenuReddy1 has joined #openstack-dragonflow16:02
*** VenuReddy has quit IRC16:05
*** dimak_ has joined #openstack-dragonflow18:58
*** saggi- has joined #openstack-dragonflow20:12
*** saggi has quit IRC20:13
*** saggi- is now known as saggi20:13
*** dimak_ has quit IRC23:10

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