Wednesday, 2017-04-05

*** dougbtv|laptop has quit IRC00:24
*** yuanying has joined #openstack-kuryr00:34
*** hongbin has quit IRC00:43
*** limao has joined #openstack-kuryr00:53
openstackgerritRuijing proposed openstack/kuryr-kubernetes master: Add ODL devstack example  https://review.openstack.org/44930901:27
*** vikasc has quit IRC02:16
*** vikasc has joined #openstack-kuryr02:33
*** hongbin has joined #openstack-kuryr03:10
openstackgerritRuijing proposed openstack/kuryr-kubernetes master: Fix vagrant ssh issue for virtualbox bento  https://review.openstack.org/45344503:20
vikascivc_, ping03:46
vikascivc_, f target pod gets launched on a node which is not using kuryr-cni, then lbaas will get created in Neutron. And this lbaas does not gets deleted. I encountered this scenario on my local cluster. Now wondering does Kuryr support this type of cluster where some nodes can use non-kuryr cni. Thoughts?03:46
vikascs/f/if03:46
*** limao has quit IRC04:07
*** limao has joined #openstack-kuryr04:08
*** hongbin has quit IRC04:08
*** limao has quit IRC04:12
openstackgerritvikas choudhary proposed openstack/kuryr-kubernetes master: Add devstack support for https k8s api server  https://review.openstack.org/45313804:19
*** limao has joined #openstack-kuryr04:56
*** limao has quit IRC05:01
*** limao has joined #openstack-kuryr05:02
*** aojea has joined #openstack-kuryr05:21
*** aojea has quit IRC05:30
*** pmannidi has quit IRC05:47
*** janki has joined #openstack-kuryr05:48
*** jchhatbar has joined #openstack-kuryr05:59
*** janki has quit IRC06:02
*** jchhatbar is now known as janki06:06
*** pcaruana has joined #openstack-kuryr06:08
*** pmannidi has joined #openstack-kuryr06:12
*** kzaitsev_ws has joined #openstack-kuryr06:38
*** ltomasbo|away is now known as ltomasbo06:58
*** dimak_ has joined #openstack-kuryr07:10
*** gsagie has joined #openstack-kuryr07:22
*** aojea has joined #openstack-kuryr07:24
*** vikasc is now known as vikasc|lunch07:31
*** pmannidi has quit IRC07:47
*** egonzalez has joined #openstack-kuryr07:48
*** gsagie has quit IRC07:54
apuimedovikasc|lunch: you encountered that problem with this patch series or with the original WIP?07:59
vikasc|lunchapuimedo, with this patch series08:00
apuimedook08:00
apuimedoI would be fine with just a REVISIT note08:00
*** vikasc|lunch is now known as vikasc08:00
vikascapuimedo, me too08:00
*** aojea_ has joined #openstack-kuryr08:01
vikascapuimedo, and may be bug ticket for the sake of tracking "Kuryr service handling should not create lbaas in Neutron if all endpoints of service are pods on non-kuryr cni"08:02
*** aojea has quit IRC08:04
*** kzaitsev_ws has quit IRC08:13
openstackgerritvikas choudhary proposed openstack/kuryr-kubernetes master: Add devstack support for https k8s api server  https://review.openstack.org/45313808:16
apuimedovikasc: agreed08:24
dmellado+1, sounds reasonable08:25
dmelladounlike the spanish tax agency08:25
dmelladoxD08:25
apuimedoxD08:27
*** kzaitsev_ws has joined #openstack-kuryr08:32
*** neiljerram has joined #openstack-kuryr08:39
ltomasbohi folks08:45
ltomasboapuimedo, ivc_, I'm testing the lbaas patch08:46
ltomasboand when a service is created I'm getting the next ResourceNotReady exception08:46
ltomasboResourceNotReady: Resource not ready: LBaaSLoadBalancer(id=<?>,ip=172.30.122.141,name='default/docker-registry',project_id='af706450a3814e99853b1582f64facb2',subnet_id=f374cfce-e45c-435e-908b-0ae72db96747)08:46
apuimedoltomasbo: ivc_: isn't it just waiting for the LB?08:47
apuimedo(to be active)08:47
ltomasboit makes sense that we get that error as the loadbalancer is not yet in place08:47
ltomasbobut, the information in that message must be wrong08:47
ltomasbosince it is pointing to the docker-registry08:47
ltomasbowhich it is running since long before08:47
ltomasboit should belong to the new-created lb, right?08:48
ltomasbosomething like 'name=default/ruby-hello-world' ...08:48
ltomasboapuimedo, ivc_: or am I missing something?08:49
*** garyloug has joined #openstack-kuryr08:52
* dmellado having some network issues today08:53
dmelladomight be offline to check08:53
*** neiljerram has quit IRC09:21
*** neiljerram has joined #openstack-kuryr09:23
*** limao has quit IRC09:25
*** limao has joined #openstack-kuryr09:26
apuimedoltomasbo: I'd bet a chickpea that it is because it saw teh docker registry service for the first time09:27
apuimedoand tried to create an lb for it09:27
apuimedo(so you may not need to manually create LBs for infra services with this patch09:28
apuimedo)09:28
ltomasboyes, it automatically created them09:28
ltomasbobut that was also after that happens09:28
ltomasboand every now and then, without I get more of those warnings09:28
ltomasbowithout pods being created09:28
ltomasbobut yes, it was nice to use the patch to create those lbaas, pools, members, instead of having to do that manually...09:29
*** limao has quit IRC09:30
kzaitsev_wsltomasbo: I bet it's not even the new patch09:41
*** mchiappero has quit IRC09:42
kzaitsev_wsit doesn't throw ResourceNotReady anywhere in the code09:42
kzaitsev_wsLBaaSSpecHandler does and it is already merged =)09:43
janonymousCan i know the steps which could be used to test lbaas service patch?09:53
janonymouskzaitsev_ws:What steps did you used?09:54
dmelladoapuimedo: re: ansible openshift09:54
dmelladodid you push to the repo?09:54
ltomasbokzaitsev_ws, could be that it is not due to this patch09:57
ltomasbokzaitsev_ws, the exception is generated at the lbaas driver, but still it is when the handlers (this patch) calls it09:58
kzaitsev_wsltomasbo: hm. exception happens in LBaaSSpecHandler.on_present handler. the patch only adds a new handler to the pipeline _after_ the SpecHandler, and it doesn't seem to interact with any existing code10:05
kzaitsev_wsjanonymous: you need to apply the patch, re-install kuryr-k8s to apply new setuptools endpoint and have lbaas configured )10:06
janonymousI used vagrant :P10:06
kzaitsev_wsjanonymous: I don't think it changes any of the steps I described =)10:07
dmelladoheh10:08
dmelladojanonymous: of course if you just re-do your setup that will be done, but if you just do what kzaitsev_ws said it'll be quicker!10:08
ltomasbokzaitsev_ws, the error happens at /home/centos/kuryr-kubernetes/kuryr_kubernetes/controller/handlers/lbaas.py", line 441, in _sync_lbaas_loadbalancer10:08
janonymouskzaitsev_ws: correct. so once that is done how exactly the load balancer functionality could be tested?10:08
janonymousdmellado:heh10:08
ltomasboso, the new code does interact with the lbaas2 existing driver10:09
dmelladoltomasbo: when does that happen?10:09
ltomasbohttps://review.openstack.org/#/c/376045/20/kuryr_kubernetes/controller/handlers/lbaas.py10:10
ltomasbodmellado, here at the LBaaSBalancerHandler10:10
kzaitsev_wsjanonymous: kubectl expose deployment deployment-name10:14
kzaitsev_wsworks for me )10:14
janonymousohkay, got it10:14
janonymouskzaitsev_ws: thanks10:15
apuimedodmellado: nope10:15
apuimedoI will do so now10:15
dmelladoapuimedo: too bad! xD10:16
kzaitsev_wsltomasbo: oh, I see, the error is thrown from a different part then10:16
kzaitsev_wsyou're right10:16
*** pcaruana|afk| has joined #openstack-kuryr10:21
openstackgerritMarco Chiappero proposed openstack/kuryr-kubernetes master: [WIP] Add MACVLAN based interfaces for nested containers  https://review.openstack.org/44066910:23
*** pcaruana|afk| has quit IRC10:23
*** pcaruana has quit IRC10:24
*** pcaruana has joined #openstack-kuryr10:25
*** janki has quit IRC10:34
*** jchhatbar has joined #openstack-kuryr10:34
*** neiljerram has quit IRC11:13
*** jchhatbar_ has joined #openstack-kuryr11:14
*** neiljerram has joined #openstack-kuryr11:15
*** jchhatbar_ is now known as janki11:15
*** jchhatbar has quit IRC11:17
*** mchiappero has joined #openstack-kuryr11:59
apuimedoltomasbo: ping12:27
ltomasboapuimedo, pong12:27
ivc_vikasc ltomasbo i've addressed your comments12:42
ltomasboivc_, regarding the comment about the if ... change = True12:43
ivc_ltomasbo yes?12:43
ltomasbowhy do you need all the ifs?12:43
ivc_because i need all 3 calls to be called independently and A() or B() or C() does not provide that12:44
ltomasbowhy is it different to do if (remove_unused_member or sync_lbaas or new_member)12:44
ivc_ltomasbo because in python (and pretty much any other language) B() would not get called if A() == True12:46
ltomasbook12:47
ltomasboI just don't like all the ifs there12:47
ivc_it can be changed to any([A(), B(), C()]), but that does not look good either12:49
ivc_ltomasbo ^12:49
ivc_more specifically, ifs are good for checking code coverage12:51
ltomasboand bad for performance12:52
ltomasboivc_, to me any([A(), B(), C()]) feels like a better choice12:56
ltomasboit is pretty much reading what it is doing, if any of those, then true12:56
ivc_ltomasbo 'bad for performance' how?13:09
ltomasboit is not a big deal, but it impacts the performance as you (the cpu) cannot know for sure which one will be the next cpu instruction to execute13:12
ivc_ltomasbo we are talking about python here right?13:12
ltomasboso, it is usually recommended to limit the amount of ifs (when possible)13:12
ltomasbono no13:12
ltomasbono python, this is due to the way cpu instruction are executed, with segmentation and pre-feching and such13:13
ivc_man i know about cpu and all that13:13
ivc_but we are using python here, not c or asm13:13
ltomasbo:D13:13
dmelladopls don't tell me we'll be starting to see some JMP calls around kuryr13:15
dmelladoxD13:15
ivc_so 'if branching' overhead does not make much sense considering we are using interpreter13:15
ivc_ltomasbo also, i prefer those ifs because it highlights that all 3 calls are made regardless of others. and while any([]) is more compact, its more of a hack13:17
*** limao has joined #openstack-kuryr13:18
ltomasboivc_, to me it is easier to read it with the any, but that is my opinion. Nothing bad about the ifs approach.13:20
*** limao_ has joined #openstack-kuryr13:21
ltomasbodmellado, so, no 'goto XXX' in the code?? xD13:23
dmelladoltomasbo: that's a dangerous way you're going down xD13:23
*** jchhatbar has joined #openstack-kuryr13:23
*** limao has quit IRC13:23
ivc_dmellado hey goto is fine13:23
dmelladoanother step, and we'll start numbering the code lines with13:24
dmellado1013:24
dmellado2013:24
dmelladoand so13:24
dmelladoxD13:24
*** jchhatbar_ has joined #openstack-kuryr13:24
*** janki has quit IRC13:27
apuimedodmellado: no. Kuryr is designed to run on Lisp machines only13:27
apuimedoI'm working on a transpiler13:27
dmelladoapuimedo: how about a logo port?13:28
*** jchhatbar has quit IRC13:28
*** jchhatbar has joined #openstack-kuryr13:32
*** jchhatbar_ has quit IRC13:35
*** janki has joined #openstack-kuryr13:35
apuimedoI had it at school13:36
*** jchhatbar has quit IRC13:38
dmelladome too13:40
* dmellado recalls the turtle13:40
dmelladorollcall, kuryr logo port13:40
dmelladoxd13:40
apuimedo-113:42
dmelladoohhhh13:44
*** jchhatbar has joined #openstack-kuryr13:46
*** jchhatbar_ has joined #openstack-kuryr13:47
*** janki has quit IRC13:49
*** jchhatbar has quit IRC13:51
*** hongbin has joined #openstack-kuryr14:06
*** dimak_ has quit IRC14:08
openstackgerritMarco Chiappero proposed openstack/kuryr-kubernetes master: Add MACVLAN based interfaces for nested containers  https://review.openstack.org/44066915:03
*** kzaitsev_ws has quit IRC15:12
*** jchhatbar_ has quit IRC15:24
*** rustlebee is now known as russellb15:29
*** russellb has quit IRC15:29
*** russellb has joined #openstack-kuryr15:29
apuimedoltomasbo: this https://review.openstack.org/#/c/453215/1/kuryr_kubernetes/cni/api.py one liner is quite hacky15:31
apuimedoto set an empty dict and access it all at once15:31
apuimedoltomasbo: dmellado: wouldn't it be better to just do result['dns'] = {'nameservers': nameservers}15:32
ltomasboumm, I got that recommendation in another patch, think it was ivc_15:33
ltomasbowaht if results['dns'] has something?15:33
mchiapperofolks, what should we do then with log messages and translations? pep8 complains...15:33
ltomasboit doesn't in this case15:34
ivc_ltomasbo why not get instead of setdefault?15:34
ivc_ltomasbo disregard that comment ^15:35
ltomasbo:D15:36
ivc_mchiappero we fix it so pep8 does not complain? *pokerface*15:37
ivc_ltomasbo for that setdefault, just do result['dns'] = {'nameservers': nameservers}15:39
ltomasboapuimedo, ivc_, I can do that (for now) as no one else is writing at dns in that method, but note that is not the correct way to do it (unless there is an if none then..)15:40
ltomasboas it will remove any data dns may have before that15:40
ivc_ltomasbo result has no 'dns' key15:40
ivc_and it is initialised right in that method15:41
apuimedoivc_: exactly  my point15:41
mchiapperoivc_: ?15:42
ivc_mchiappero LOG.warning(_LW(blablabla))15:44
mchiapperowe had a chat some time ago and I've been told not to translate anymore15:45
ivc_uhm, why?15:45
mchiapperoI don't remember who was part of the conversation but the rationale was like making easier for people to look up solutions by having english only messages15:46
apuimedoivc_: it was dropped15:46
apuimedologs are not to be translated anymore in openstack15:47
ivc_then we need to update pep815:47
ivc_rules15:47
mchiapperoapuimedo: how to get the patches merged though since they fail on pep8?15:47
mchiapperoI was expecting the CI checks to be already up to date15:48
ivc_mchiappero just do _LW for now15:48
apuimedommmm. DId we forget to merge the new hacking?15:48
mchiapperook, if you're okay with updating later I'll do15:48
*** aojea_ has quit IRC15:49
ivc_we have those in other places anyway15:49
mchiapperoI mean, I'm ok with any option, just let me know what's the preferred approach currently :)15:49
mchiapperothere was a patch under review some time ago, since I wasn't sure which one would have been merged first I decided not to translate15:50
apuimedoI'll check why it still wants it15:50
mchiapperobut no problem, I can revert them right away15:50
mchiapperook, let me know :)15:51
mchiapperoapuimedo: would it be ok to translate in order to get it merged and remove the translation later? We have both now :)16:10
apuimedoyes16:10
apuimedoit would be okay16:10
mchiapperook, so, don't forget to review the latest code16:10
mchiapperowe plan to follow up with some improvements on the parent detection, but if possible accept this one meanwhile16:11
mchiapperothanks!16:11
mchiappero:)16:12
apuimedovery well16:14
ivc_vikasc ping16:27
ivc_mchiappero apuimedo btw we got https://review.openstack.org/#/c/450501/ for log i18n already :)16:42
*** limao_ has quit IRC16:48
*** limao has joined #openstack-kuryr16:48
openstackgerritMerged openstack/kuryr-kubernetes master: Fix vagrant ssh issue for virtualbox bento  https://review.openstack.org/45344516:49
mchiapperoivc_: yeah I know, but 1) it doesn't include the new code of course 2) I'm not sure with how that doesn't fail16:52
ivc_mchiappero check tox.ini in that ps16:53
*** limao has quit IRC16:54
mchiapperooh yeah, sorry16:54
mchiapperounless that gets +2 & workflown NOW, we will push translated logs16:55
mchiapperoand follow up later16:55
ivc_mchiappero you can probably also use that tox.ini change in you patch16:55
mchiappero:D16:55
mchiapperowell it's not related to the patch itself so...16:56
ivc_up to you :)16:56
mchiapperonp, thanks for the help :)16:57
*** egonzalez has quit IRC17:03
*** saneax has quit IRC17:04
*** saneax has joined #openstack-kuryr17:11
openstackgerritGary Loughnane proposed openstack/kuryr-kubernetes master: Add MACVLAN based interfaces for nested containers  https://review.openstack.org/44066917:13
*** garyloug has quit IRC17:24
*** tonanhngo has joined #openstack-kuryr17:47
*** tonanhngo_ has joined #openstack-kuryr17:50
*** tonanhngo has quit IRC17:51
*** tonanhngo_ has quit IRC17:54
*** tonanhngo has joined #openstack-kuryr17:55
*** ltomasbo is now known as ltomasbo|away18:09
*** dimak_ has joined #openstack-kuryr18:39
*** dougbtv|laptop has joined #openstack-kuryr19:02
*** dimak_ has quit IRC19:11
*** dougbtv|laptop has quit IRC19:30
*** oanson has quit IRC19:47
*** irenab has quit IRC19:53
*** lihi has quit IRC19:53
*** oanson has joined #openstack-kuryr19:55
*** lihi has joined #openstack-kuryr19:55
*** irenab has joined #openstack-kuryr19:56
*** pcaruana has quit IRC20:01
*** aojea has joined #openstack-kuryr20:11
*** lihi has quit IRC20:33
*** lihi has joined #openstack-kuryr20:34
apuimedoivc_: I think we can take https://review.openstack.org/#/c/450501/221:21
openstackgerritMerged openstack/kuryr-kubernetes master: Add devstack support for https k8s api server  https://review.openstack.org/45313821:33
*** aojea has quit IRC21:53
*** pmannidi has joined #openstack-kuryr22:28
*** pmannidi has quit IRC22:40
*** pmannidi has joined #openstack-kuryr22:45

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