Thursday, 2018-09-27

*** hongbin has joined #openstack-kuryr01:19
*** aojea has joined #openstack-kuryr01:23
*** aojea has quit IRC01:27
*** openstackgerrit has joined #openstack-kuryr01:31
openstackgerritMerged openstack/kuryr-kubernetes master: Drop unnecessary import  https://review.openstack.org/60541801:31
*** hongbin has quit IRC03:47
openstackgerritLuis Tomas Bolivar proposed openstack/kuryr-kubernetes master: Add support for OVN provider in Endpoint LBaaS driver  https://review.openstack.org/60316306:32
openstackgerritLuis Tomas Bolivar proposed openstack/kuryr-kubernetes master: svc namespace isolation support for different octavia drivers  https://review.openstack.org/60471706:32
openstackgerritLuis Tomas Bolivar proposed openstack/kuryr-kubernetes master: Add gate for Octavia provider OVN  https://review.openstack.org/60403606:32
*** pcaruana has joined #openstack-kuryr06:33
ltomasbodmellado, https://review.openstack.org/#/c/605068/06:40
ltomasbodmellado, also: https://review.openstack.org/#/c/604036/ https://review.openstack.org/#/c/603163/ https://review.openstack.org/#/c/604717/06:41
ltomasboand https://review.openstack.org/#/c/605072/06:42
*** celebdor has joined #openstack-kuryr07:32
*** aperevalov has joined #openstack-kuryr07:32
celebdorltomasbo: dulek: In regards to https://review.openstack.org/#/c/604717/5/kuryr_kubernetes/config.py07:36
*** gkadam has joined #openstack-kuryr07:36
celebdorshouldn't we choose the mode depending on the provider with which we create the LB?07:36
ltomasbocelebdor, yep07:36
celebdorI am not convinced this is configuration stuff07:37
ltomasbowell, yes and no07:37
celebdorwhy not?07:37
ltomasbofor now, yes, as ovn-provider will need create since they are not creating any SG07:37
ltomasbobut when they fix it, it could be update or create07:38
celebdorshouldn't then there be a configuration and default per provider?07:38
dulekcelebdor: I guess if your Kuryr is running on admin/service tenant, then it could be update for Octavia as well?07:38
dulekcelebdor: BTW - I kind of liked that reraise decorator. ;)07:38
celebdordulek: I didn't send the patch to remove it yet, did I?07:39
celebdorI have the patch more or less ready07:39
celebdorwe use it in two places07:39
dulekcelebdor: Nah, haven't seen it yet. If it isn't necessary it's okay to remove it of course.07:39
celebdorin one it doesn't really give any advantage07:40
dulekcelebdor: Okay, that settles it. :)07:40
ltomasboyep, as of today, ovn-provider needs create (as they are using the default tenant SG) and amphora driver will require update and admin tenant07:40
celebdorin the other case, in retry.py, removing it makes things a bit awkward (although more explicit)07:40
celebdorI will not remove it from retry until I find a nicer way to put it07:40
ltomasbodulek, celebdor: what patch are you talking about now?07:41
ltomasbo(seems interesting but I'm not following, I guess I was not present on the previous conversation)07:41
celebdorltomasbo: My stated intention to drop oslo.utils07:42
ltomasbocelebdor, ok!07:42
celebdorI said it yesterday, that I want to drop deps right and left07:42
ltomasboyep yep, and this is about dropping the retry decorator...07:42
celebdorltomasbo:07:45
celebdorltomasbo: no07:45
celebdorabout dropping the reraise context manager from the retry handler07:45
openstackgerritAntoni Segura Puimedon proposed openstack/kuryr-kubernetes master: drop reraise from the controller  https://review.openstack.org/60560507:45
celebdorltomasbo: dulek: This is getting it out of the lbaas code ^^07:46
celebdorthe retry one I'll look a bit more07:46
celebdorcause I don't like how I replaced it07:46
dulekcelebdor: Retry in watcher?07:46
ltomasboin a related noted (now that I see the cleanup_bogus_pool) when should we remove lbaasv2 related code?07:48
ltomasbo(as well as non-daemonized cni)07:49
celebdorltomasbo: not sure I follow07:49
ltomasbothis cleanup_bogus_pool function was just there for the lbaasv2 driver07:49
ltomasboor it was not?07:50
celebdordon't recall07:51
ltomasbo    def _cleanup_bogus_pool(self, lbaas, pool, lb_algorithm):07:51
ltomasbo        # REVISIT(ivc): LBaaSv2 creates pool object despite raising an07:51
ltomasbo        # exception. The created pool is not bound to listener, but07:51
ltomasbo        # it is bound to loadbalancer and will cause an error on07:51
ltomasbo        # 'release_loadbalancer'.07:51
celebdordulek: this http://paste.openstack.org/show/730988/07:51
celebdorbut I think it should be simpler07:51
ltomasboohh, now if I paste 5 lines, I received a sigyn alert!07:51
celebdorcause now it's blindly just doing practically what the context manager was doing07:52
ltomasboabout stopping now or I'll be kick out! xD07:52
celebdorltomasbo: wow07:52
celebdorThat's cool07:52
dulekcelebdor: Hey, is it used anywhere? I think we have a few dead handler classes?07:52
celebdordulek: where, the retry handler?07:53
ltomasbocelebdor, yep, it even says, this time is ok because I've been for a while in the channel...07:53
dulekcelebdor: I'm just not sure.07:53
celebdordulek: it is in the pipeline07:53
dulekDamn.07:53
celebdordulek: look for h_retry.Retry07:54
celebdorit's the one responsible for retrying things when we do resource not ready07:54
celebdorltomasbo: you should add that to the downstream channel07:54
celebdorI've seen people paste big stuff there07:54
celebdorxD07:54
ltomasboxD07:55
*** garyloug has joined #openstack-kuryr08:23
openstackgerritMichał Dulko proposed openstack/kuryr-kubernetes master: Add HA gate  https://review.openstack.org/58822308:24
*** janki has joined #openstack-kuryr08:27
celebdorltomasbo: dulek: I think https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/handlers/retry.py#L59-L63 is incorrect08:42
celebdorif for some reason we get an exception in the sleep code08:42
*** Sigyn has quit IRC08:44
dulekcelebdor: I'll need a coffee to analyze this. That stuff is overly complicated as well.08:45
celebdorit will never set the handler health08:45
*** Sigyn has joined #openstack-kuryr08:45
*** Sigyn has quit IRC08:45
celebdordulek: that's the problem with reraise08:45
ltomasbocelebdor, that code is like black magic to me, only look at it when there is no other option...08:45
celebdorit makes it looks simple08:45
celebdorxD08:45
*** Sigyn has joined #openstack-kuryr08:45
*** Sigyn has quit IRC08:45
celebdorltomasbo: dulek let me paste you what I think is the right flow08:45
*** Sigyn has joined #openstack-kuryr08:48
*** Sigyn has quit IRC08:48
openstackgerritAntoni Segura Puimedon proposed openstack/kuryr-kubernetes master: Set handler health even in _sleep exception  https://review.openstack.org/60562008:49
openstackgerritAntoni Segura Puimedon proposed openstack/kuryr-kubernetes master: Set handler health even in _sleep exception  https://review.openstack.org/60562008:49
celebdorltomasbo: dulek: ^^08:49
*** Sigyn has joined #openstack-kuryr08:50
*** Sigyn has quit IRC08:51
celebdorltomasbo: dulek: only StopWatch remaining from oslo.utils08:51
*** gkadam is now known as gkadam-afk08:52
ltomasbocelebdor, man you are fast...08:52
celebdorwhich has a 1y7m message from ivc_08:52
celebdorstating that it should probably be integrated with retry08:52
celebdorand it maybe should08:52
dulekcelebdor: xD, consider integration. :D08:52
celebdorcause it is a different source of exponential backoffs08:53
celebdor:/08:53
celebdordoes anybody volunteer?08:53
celebdorxD08:53
*** Sigyn has joined #openstack-kuryr08:56
celebdorheh, there's these few places with untouched ivc_ code that are scary08:57
celebdorxD08:57
*** gkadam-afk is now known as gkadam08:59
ltomasboyep, most of the ivc_ notes look scary...09:01
*** janki has quit IRC09:13
celebdorltomasbo: so not volunteering, eh?09:28
celebdorxD09:28
ltomasboxD09:29
openstackgerritAntoni Segura Puimedon proposed openstack/kuryr-kubernetes master: Set handler health even in _sleep exception  https://review.openstack.org/60562009:53
*** garyloug has quit IRC11:01
openstackgerritAntoni Segura Puimedon proposed openstack/kuryr-kubernetes master: Add support for pre-commit-hooks  https://review.openstack.org/60564911:07
celebdordmellado: dulek: ltomasbo: be good to forgetful people like me and accept ^^11:08
celebdor:-)11:08
ltomasbocelebdor, nice!11:09
celebdor:-)11:13
celebdorthanks11:13
celebdorWe could add more nice hooks11:13
celebdorI'm thinking of auto-formatting11:13
celebdorlike go-fmt with ambv black11:13
*** pcaruana has quit IRC11:50
dmelladolol12:23
dmelladoI'll take a look12:23
*** pcaruana has joined #openstack-kuryr12:39
*** rh-jelabarre has joined #openstack-kuryr13:43
*** maysams has joined #openstack-kuryr13:50
openstackgerritAntoni Segura Puimedon proposed openstack/kuryr-kubernetes master: drop reraise from the controller  https://review.openstack.org/60560514:12
openstackgerritAntoni Segura Puimedon proposed openstack/kuryr-kubernetes master: Set handler health even in _sleep exception  https://review.openstack.org/60562014:15
*** jistr is now known as jistr|call14:31
openstackgerritLuis Tomas Bolivar proposed openstack/kuryr-kubernetes master: [WIP] Move VIF pod annotation to CRDs  https://review.openstack.org/59932014:47
celebdorltomasbo: does ^^ work?14:50
ltomasbocelebdor, I don't think so, I pushed some changes I had from my last time testing it14:51
ltomasbocelebdor, I hit one problem when trying to make the cni watching on the CRDs14:51
ltomasboand is that watching CRDs is not supported...14:51
ltomasboso, I'm thinking now of annotation pods with something like14:51
ltomasboeth0: {port: crd-port-selflink, status: ACTIVE|...}14:52
ltomasbobut I need to test it14:52
dulekltomasbo: Hey, I don't think I have had issues with watching a CRD.14:54
ltomasbocelebdor, also, it is still no polished at all... so if you want to take a quick look is fine, but don't spend time making a in-depth review14:55
ltomasbodulek, really?14:56
ltomasbodulek, I'm even almost sure that I read that only a couple of fields were supported...14:56
dulekltomasbo: https://review.openstack.org/#/c/527243/11/kuryr_kubernetes/cni/plugins/k8s_cni_registry.py@33514:56
dulekcouple of fields?14:56
dulekltomasbo: I suspect you have one mistake there, let me check…14:57
ltomasbodulek, I think I'm refering to this:14:57
ltomasbo# FIXME(dulek): fieldSelector is not available for CRD's until K8s 1.9.14:57
dulekltomasbo: :)14:57
dulekltomasbo: But you can filter on Kuryr side for 1.8.14:58
dulekltomasbo: So it's not that bad even if suboptimal.14:58
ltomasbodulek, this was what it was not working for me actually;14:59
ltomasbo:14:59
ltomasbo         self.watcher.add(14:59
ltomasbo+            "%(base)s/kuryrports" % {14:59
ltomasbo+                'base': k_const.K8S_API_CRD})14:59
dulekltomasbo: Yeah, I thought about it.14:59
dulekltomasbo: You haven't provided thread pool to daemon's Watcher instance, right?15:00
ltomasboumm15:00
ltomasboI was adding that to cni/daemon/service.py15:00
dulekltomasbo: https://review.openstack.org/#/c/527243/11/kuryr_kubernetes/cni/daemon/service.py@18615:01
ltomasboinstead of wathcing on hostname pods15:01
dulekltomasbo: Without this Watcher is able only to watch one path.15:01
dulekltomasbo: Ah, so you're adding it *instead*. Okay.15:01
ltomasboyep (I was...)15:01
dulekltomasbo: Okay, so I'm not sure what was wrong then, but I definitely have watched for CRDs with success.15:02
ltomasbook, probably I missed something...15:03
ltomasbodulek, this was what I tested... http://paste.openstack.org/show/731023/15:04
ltomasboit hang waiting for the port information15:05
dulekltomasbo: https://github.com/openstack/kuryr-kubernetes/blob/0478a47502beed7efece43a55a39cdd17ee2e96c/kuryr_kubernetes/cni/handlers.py#L3415:05
ltomasboohh, f***ck15:06
ltomasbosee, I was missing something...15:06
dulekltomasbo: Hey, at least we've found it!15:06
ltomasbowe  --> you...15:06
dulekltomasbo: Oh come on, it's teamwork. :P15:15
ltomasbo:D15:15
ltomasbogoing to give it a try!15:16
*** jistr|call is now known as jistr15:46
openstackgerritDaniel Mellado proposed openstack/kuryr-kubernetes master: [WIP] Support network policy update  https://review.openstack.org/60515016:01
celebdorltomasbo: dulek: Folks we're on k8s 1.1116:03
celebdorit means I should probably update the damned devstack16:03
openstackgerritMerged openstack/kuryr-kubernetes master: Add support for pre-commit-hooks  https://review.openstack.org/60564916:17
*** gkadam has quit IRC17:20
*** dims_ is now known as dims18:05
*** jistr has quit IRC18:47
*** jistr has joined #openstack-kuryr18:49
*** maysams has quit IRC18:55
*** jistr has quit IRC19:08
*** jistr has joined #openstack-kuryr19:08
*** jistr has quit IRC19:23
*** jistr has joined #openstack-kuryr19:26
*** jistr has quit IRC19:28
*** jistr has joined #openstack-kuryr19:29
*** jistr has quit IRC19:34
*** jistr has joined #openstack-kuryr19:37
*** jistr has quit IRC19:39
*** jistr has joined #openstack-kuryr19:49
*** pcaruana has quit IRC19:54
*** aojea has joined #openstack-kuryr19:57
*** aojea has quit IRC20:32
*** aojea has joined #openstack-kuryr20:33
*** rh-jelabarre has quit IRC21:10
*** aojea has quit IRC22:38
*** celebdor has quit IRC23:10
*** maysams has joined #openstack-kuryr23:59

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