Tuesday, 2017-05-30

*** yuanying has quit IRC00:00
*** yuanying has joined #openstack-kuryr00:01
*** salv-orlando has joined #openstack-kuryr00:15
*** salv-orlando has quit IRC00:19
*** hongbin has quit IRC00:27
*** yamamoto_ has joined #openstack-kuryr01:19
*** salv-orlando has joined #openstack-kuryr02:16
*** salv-orlando has quit IRC02:22
*** hongbin has joined #openstack-kuryr02:54
*** yamamoto_ has quit IRC03:06
*** gouthamr has quit IRC03:07
*** hongbin has quit IRC03:27
*** janki has joined #openstack-kuryr03:38
*** yamamoto_ has joined #openstack-kuryr03:58
*** aojea has joined #openstack-kuryr03:59
*** aojea has quit IRC04:04
*** salv-orlando has joined #openstack-kuryr04:19
*** salv-orlando has quit IRC04:23
*** salv-orlando has joined #openstack-kuryr04:39
*** ltomasbo|away is now known as ltomasbo05:37
*** aojea has joined #openstack-kuryr05:39
*** aojea has quit IRC05:54
*** aojea has joined #openstack-kuryr05:54
*** aojea has quit IRC05:58
*** salv-orlando has quit IRC06:19
janonymous ivc_: ping06:42
janonymousivc_: In current k8s watcher implementation to stop watching we directly kill the thread?06:43
janonymousivc_: (using ?watch )06:43
kzaitsev_wsdocker_manager.go:372] NetworkPlugin cni failed on the status hook for pod 'pod_name_here' - Unexpected command output Device "eth0" does not exist.06:51
kzaitsev_wshas anyone seen this behaviour06:51
kzaitsev_wsi'm on k8s 1.5.4 for testing reasons06:52
*** neiljerram has joined #openstack-kuryr07:01
kzaitsev_wslooks like k8s containers start without eth0, but that feels correct07:06
kzaitsev_wsI guess CNI should configure it07:06
*** salv-orlando has joined #openstack-kuryr07:11
janonymouskzaitsev_ws: what's the output of sudo journalctl -u kube*07:12
kzaitsev_wslet me get a clean example07:15
janonymoushttps://github.com/kubernetes/kubernetes/blob/release-1.5/pkg/kubelet/dockertools/docker_manager.go#L36807:17
kzaitsev_wsmeanwhile - here's output from kuryr-k8s07:17
kzaitsev_wshttp://paste.openstack.org/show/610925/07:17
kzaitsev_wsjanonymous: yeah, I've looked through it. it checks IP of eth007:18
kzaitsev_wsprobably it's not the reason of my errors though07:19
janonymousyes, what is dm.networkPlugin.Name()07:19
janonymousNetworkPlugin cni failed on the status hook for pod(  'pod_name_here'  -- dm.networkPlugin.Name())07:20
janonymousops i read it wrong, cni only07:22
janonymousIn paste above it shows: NoMatches: No 'kuryr_kubernetes.vif_translators' driver found, looking for u'binding_failed'07:23
janonymoushave you checked binding directory in kuryr.conf and scripts at locations07:23
kzaitsev_wsjanonymous: yeah, seems that I messed with it in a wrong way =/07:24
janonymous:D , roll back :D07:24
*** salv-orl_ has joined #openstack-kuryr07:27
*** salv-orlando has quit IRC07:30
*** aojea has joined #openstack-kuryr07:31
*** pcaruana has joined #openstack-kuryr07:33
*** pcaruana has quit IRC07:39
*** pcaruana has joined #openstack-kuryr07:39
*** ltomasbo is now known as ltomasbo|away07:42
*** neiljerram has quit IRC07:44
*** egonzalez has joined #openstack-kuryr07:47
kzaitsev_wsugh. I really don't remember changing those07:48
kzaitsev_wsjanonymous: what should it be?07:52
*** garyloug has joined #openstack-kuryr08:01
janonymouskzaitsev_ws: This might give an idea: https://github.com/openstack/kuryr-kubernetes/blob/master/devstack/plugin.sh#L41008:03
kzaitsev_wsthat's for cni configuration, not kuryr.conf08:05
kzaitsev_wsbut yeah, I get the idea08:05
*** neiljerram has joined #openstack-kuryr08:17
*** openstackgerrit has quit IRC08:18
kzaitsev_wsoh, I think I found my patch that I used to create services without pods %)08:35
*** ltomasbo|away is now known as ltomasbo08:41
kzaitsev_wsk, looks like a cleanup helped09:03
kzaitsev_wsok, I suspect rabbit was the culprit09:15
kzaitsev_wsalthough seems like I restored my lab back to being operational09:18
janonymousGreat!09:18
*** dimak_ has joined #openstack-kuryr09:24
*** egonzalez has quit IRC09:27
*** vikasc has quit IRC09:27
*** mchiappero has quit IRC09:27
*** huats has quit IRC09:27
*** huats has joined #openstack-kuryr09:32
*** dimak_ has quit IRC10:01
ivc_janonymous why do you need to stop watch?10:06
*** dimak_ has joined #openstack-kuryr10:07
ivc_janonymous here is the 'kill': https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/watcher.py#L13310:09
ivc_janonymous but it is only used in https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/controller/service.py#L6210:10
janonymousivc_: yup saw those, was thinking about graceful stop , but nothing to do with code was a generic question to know10:11
janonymousivc_: i have some questions regarding watcher10:11
ivc_janonymous in general yes, we just kill the thread (tho if it restarts it will pick up the queued events i think)10:12
janonymousivc_:So while migrating to k8s client they use https://github.com/kubernetes-incubator/client-python#example instead of full urls which we used in  https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/cni/main.py#L6710:13
*** egonzalez has joined #openstack-kuryr10:13
*** vikasc has joined #openstack-kuryr10:13
*** mchiappero has joined #openstack-kuryr10:13
janonymousList is defined in : https://raw.githubusercontent.com/kubernetes-incubator/client-python/master/kubernetes/client/apis/core_v1_api.py10:13
ivc_janonymous so the difference is that they watch per namespace and we watch all namespaces then?10:14
janonymousSo i could directly change url to api object because a disctionary of resources is maintained in watcher with key as path(string)10:14
*** dimak_ has quit IRC10:14
ivc_janonymous do they have an API to watch all pods from all namespaces similar to how we do it?10:14
ivc_janonymous ah i guess its 'list_pod_for_all_namespaces'10:15
janonymousivc_ : they provide watch query parameter10:15
janonymousivc_: second example: https://github.com/kubernetes-incubator/client-python#example10:15
janonymousyes10:15
*** dims has quit IRC10:15
janonymousi have found names corresponding to our queries in code10:15
janonymousbut the problem is mapping of resources maintained in watcher10:16
janonymousonce solution is to not change anything and pass keyword arguments10:16
janonymousIn https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/cni/main.py#L67 and extract params apart from url in https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/watcher.py#L13510:17
*** dimak_ has joined #openstack-kuryr10:17
ivc_janonymous alsos note the cni code you linked uses fieldSelector, but that will not be used once once we move to daemon/exec cni10:18
janonymousyes10:18
*** dims has joined #openstack-kuryr10:18
janonymousi found out we can pass it as: w.stream(v1.list_namespaced_pod, params.args.K8S_POD_NAMESPACE, fieldSelector='metadata.name=%(pod)s' % {'pod': params.args.K8S_POD_NAME}):10:18
janonymousivc_: how do you suggest to proceed?10:19
janonymousaddtionaly kwargs or other approach..10:20
ivc_janonymous i don't quite see the problem here, could you explain in more detail?10:21
janonymousyes10:21
*** dimak_ has quit IRC10:23
janonymousivc: So If we pass Path(string) in https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/cni/main.py#L67 --> then https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/watcher.py#L86 maintains a resource list with key as path10:24
janonymousWhich finally calls : https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/watcher.py#L13810:24
janonymousivc_: But in Client  we will something like: v1.list_namespaced_pod(params.args.K8S_POD_NAMESPACE, fieldSelector='metadata.name=%(pod)s' % {'pod': params.args.K8S_POD_NAME})   instead of path10:26
janonymous*we will add10:26
janonymoushere: https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/cni/main.py#L6710:27
ivc_janonymous shouldn't it be w.stream(v1. list_namespaced_pod, ...)? from https://github.com/kubernetes-incubator/client-python/blob/master/examples/example2.py10:27
janonymousyes i ommitted to create less confusion :D10:28
janonymousit will that only10:28
janonymous*It will be like that only10:28
janonymousOr i guess i should upload semi completed patch for better understanding, but i might have to go in few more mins10:30
ivc_janonymous well one way to do it would be to kuryr_watcher.add(target='list_namespaced_pod', **kwargs) i think (and use target + kwargs converted to tuple as key instead of our 'path')10:31
*** yamamoto_ has quit IRC10:31
ivc_janonymous and we can have that 'list_namespaced_pod' as WATCH_NS_POD constant10:32
janonymousthere are 4 places where these are used10:33
ivc_janonymous then you'd do k8s_watch.stream(v1.getattr(target), **kwargs)10:33
janonymoushttps://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/controller/service.py#L4410:34
ivc_janonymous yes, instead of that list you'd have [WATCH_ALL_PODS, WATCH_ALL_SERVICES, WATCH_ALL_ENDPOINTS] i guess10:34
ivc_janonymous or just ALL_PODS, etc. without WATCH_ prefix maybe10:35
janonymousand that about resource dictionary? https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/watcher.py#L8610:35
ivc_janonymous as i said, "use target + kwargs converted to tuple as key instead of our 'path'"10:36
janonymousyeah that would do10:37
janonymousthanks i will make changes and would discuss if i get stuck somewhere :)10:37
ivc_janonymous you could also introduce some WatchTarget (or some better name) type instead those ALL_PODS, but that imo would be an overkill10:37
janonymousyup10:38
ivc_janonymous also this list https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/controller/service.py#L44 was supposed to come from kuryr.conf initially, but then we discussed 'profiles' which will setup the watcher, so there's no need for a watcher to be kuryr.conf-friendly10:41
janonymousivc_: oh ohkay, thanks!10:43
janonymousivc_: i will add you for review10:43
ivc_janonymous sure10:43
ivc_janonymous here's your key=tuple([target] + sorted(tuple(kwargs.items())))10:55
ivc_janonymous ah that second 'tuple' is redundant :), so key=tuple([target] + sorted(d.items()))10:56
*** dims has quit IRC11:05
*** janki has quit IRC11:06
*** janki has joined #openstack-kuryr11:07
*** dims has joined #openstack-kuryr11:11
*** yamamoto has joined #openstack-kuryr11:12
*** aojea has quit IRC11:49
*** janki has quit IRC12:06
*** atoth has quit IRC12:23
*** mestery has quit IRC12:24
*** mestery has joined #openstack-kuryr12:27
*** atoth has joined #openstack-kuryr12:38
*** atoth has quit IRC12:39
*** atoth has joined #openstack-kuryr12:40
*** openstackgerrit has joined #openstack-kuryr12:42
openstackgerritLuis Tomas Bolivar proposed openstack/kuryr-kubernetes master: Generic vif driver extension to enable ports reuse  https://review.openstack.org/43687612:42
*** garyloug_ has joined #openstack-kuryr12:57
*** garyloug has quit IRC12:57
*** gouthamr has joined #openstack-kuryr13:25
*** salv-orlando has joined #openstack-kuryr13:27
*** salv-orl_ has quit IRC13:30
*** aojea has joined #openstack-kuryr13:43
*** salv-orlando has quit IRC14:02
*** gouthamr has quit IRC14:20
*** gouthamr has joined #openstack-kuryr14:23
*** hongbin has joined #openstack-kuryr14:48
openstackgerritLuis Tomas Bolivar proposed openstack/kuryr-kubernetes master: Generic vif pool driver extension to precreate reusable ports  https://review.openstack.org/43687715:14
*** kzaitsev_ws has quit IRC15:21
*** yamamoto has quit IRC15:28
*** yamamoto has joined #openstack-kuryr15:28
*** yamamoto has quit IRC15:33
*** aojea has quit IRC15:58
*** aojea has joined #openstack-kuryr15:59
*** tonanhngo has joined #openstack-kuryr16:00
*** aojea has quit IRC16:03
openstackgerritLuis Tomas Bolivar proposed openstack/kuryr-kubernetes master: Nested vif driver extension to enable ports reuse  https://review.openstack.org/43689316:05
*** egonzalez has quit IRC16:09
*** salv-orlando has joined #openstack-kuryr16:29
*** yamamoto has joined #openstack-kuryr16:35
*** tonanhngo has quit IRC16:36
*** rwallner has joined #openstack-kuryr16:38
*** pcaruana has quit IRC16:43
*** ltomasbo is now known as ltomasbo|away16:44
*** yamamoto has quit IRC16:47
openstackgerritLuis Tomas Bolivar proposed openstack/kuryr-kubernetes master: Nested vlan vif pool driver extension to precreate reusable subports  https://review.openstack.org/43689416:52
*** rwallner has quit IRC17:22
*** rwallner has joined #openstack-kuryr17:25
*** neiljerram has quit IRC17:28
*** egonzalez has joined #openstack-kuryr17:50
*** yamamoto has joined #openstack-kuryr17:53
*** aojea has joined #openstack-kuryr17:53
*** tonanhngo has joined #openstack-kuryr18:29
*** neiljerram has joined #openstack-kuryr18:30
*** vikasc has quit IRC18:44
*** vikasc has joined #openstack-kuryr18:45
*** neiljerram has quit IRC18:46
*** neiljerram has joined #openstack-kuryr18:47
*** yamamoto has quit IRC19:00
*** yamamoto has joined #openstack-kuryr19:05
*** dimak_ has joined #openstack-kuryr19:10
*** neiljerram has quit IRC19:20
*** yamamoto has quit IRC19:25
*** salv-orl_ has joined #openstack-kuryr19:27
*** salv-orlando has quit IRC19:30
*** neiljerram has joined #openstack-kuryr19:36
*** egonzalez has quit IRC20:00
*** yamamoto has joined #openstack-kuryr20:26
*** Guest63352 has joined #openstack-kuryr20:27
*** Guest63352 is now known as ryanender20:33
*** yamamoto has quit IRC20:34
*** rwallner has quit IRC20:48
*** rwallner has joined #openstack-kuryr20:48
*** atoth has quit IRC20:50
*** rwallner has quit IRC20:52
*** ryanender has quit IRC20:59
*** atoth has joined #openstack-kuryr21:02
*** mridu has joined #openstack-kuryr21:12
*** mridu has quit IRC21:13
*** aojea has quit IRC21:17
*** dimak_ has quit IRC21:17
*** salv-orl_ has quit IRC21:50
*** salv-orlando has joined #openstack-kuryr21:50
*** salv-orlando has quit IRC21:54
*** dougbtv has quit IRC22:07
*** gouthamr has quit IRC22:13
*** gouthamr has joined #openstack-kuryr22:15
*** tonanhngo has quit IRC22:55
*** gouthamr has quit IRC22:59
*** gouthamr has joined #openstack-kuryr23:00
*** gouthamr has quit IRC23:02
*** gouthamr has joined #openstack-kuryr23:03
*** tonanhngo has joined #openstack-kuryr23:04
*** tonanhngo has quit IRC23:08
*** garyloug_ has quit IRC23:10
openstackgerritFrederick F. Kautz IV proposed openstack/kuryr-kubernetes master: Add support for USE_SCREEN and default to screen if USE_SYSTEMD is not set  https://review.openstack.org/46928023:14
*** dougbtv has joined #openstack-kuryr23:14
*** tonanhngo has joined #openstack-kuryr23:16
*** tonanhngo has quit IRC23:21
*** gouthamr has quit IRC23:50
*** gouthamr_ has joined #openstack-kuryr23:50
*** gouthamr_ has quit IRC23:57

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