*** vikasc has joined #openstack-kuryr | 00:04 | |
*** kzaitsev1pi has quit IRC | 00:14 | |
*** aojea has joined #openstack-kuryr | 00:24 | |
*** aojea has quit IRC | 00:28 | |
*** limao has joined #openstack-kuryr | 00:49 | |
*** mattmceuen has joined #openstack-kuryr | 01:27 | |
*** pmannidi has quit IRC | 01:33 | |
*** yedongcan has joined #openstack-kuryr | 01:41 | |
*** pmannidi has joined #openstack-kuryr | 02:20 | |
*** qwebirc89498 has joined #openstack-kuryr | 02:26 | |
*** hongbin has joined #openstack-kuryr | 02:26 | |
qwebirc89498 | Hello everyone | 02:26 |
---|---|---|
qwebirc89498 | I'm facing an issue when using kuryr-kubernetes with openstack | 02:27 |
qwebirc89498 | how to set the annotations for the kind: Service | 02:28 |
qwebirc89498 | apiVersion: v1 kind: Service metadata: name: nginx-kuryr-service22 annotations: openstack.org/kuryr-lbaas-spec: ????? | 02:29 |
qwebirc89498 | if we don't set the annotations for the kind: Service then we will have a KeyError | 02:33 |
qwebirc89498 | _get_lbaas_spec will try to get the needed info from the parameter service | 02:33 |
qwebirc89498 | annotations = service['metadata']['annotations'] annotation = annotations[k_const.K8S_ANNOTATION_LBAAS_SPEC] | 02:33 |
qwebirc89498 | any ideas on this configuration? | 02:34 |
*** yamamoto_ has joined #openstack-kuryr | 03:25 | |
qwebirc89498 | ping hongbin | 03:45 |
*** janki has joined #openstack-kuryr | 04:05 | |
*** limao has quit IRC | 04:10 | |
*** limao has joined #openstack-kuryr | 04:11 | |
*** limao has quit IRC | 04:11 | |
*** limao has joined #openstack-kuryr | 04:12 | |
*** hongbin has quit IRC | 04:16 | |
*** limao has quit IRC | 04:16 | |
*** salv-orlando has joined #openstack-kuryr | 04:26 | |
*** gouthamr has quit IRC | 04:30 | |
*** salv-orlando has quit IRC | 04:31 | |
*** yedongcan has quit IRC | 04:34 | |
*** limao has joined #openstack-kuryr | 04:36 | |
*** limao has quit IRC | 04:48 | |
*** salv-orlando has joined #openstack-kuryr | 05:00 | |
*** limao has joined #openstack-kuryr | 05:01 | |
*** yamamoto_ has quit IRC | 05:07 | |
*** ltomasbo|away is now known as ltomasbo | 05:10 | |
*** yedongcan has joined #openstack-kuryr | 05:17 | |
*** yamamoto has joined #openstack-kuryr | 05:51 | |
*** aojea has joined #openstack-kuryr | 05:55 | |
*** kzaitsev_pi has joined #openstack-kuryr | 05:57 | |
*** reedip has quit IRC | 06:00 | |
qwebirc89498 | janonymous: do know how to set the annotations for the Service? I want to test the kuryr-kubernetes neutron lb part | 06:07 |
qwebirc89498 | I info i got from service metadata not contains the annotations part | 06:08 |
*** zengchen has joined #openstack-kuryr | 06:09 | |
*** salv-orlando has quit IRC | 06:13 | |
*** salv-orlando has joined #openstack-kuryr | 06:13 | |
*** aojea has quit IRC | 06:15 | |
janonymous | qwebirc89498: Hi, sorry i am a bit out of context. What are the logs saying? can you copy the errors | 06:15 |
*** aojea has joined #openstack-kuryr | 06:15 | |
*** aojea has quit IRC | 06:16 | |
*** aojea has joined #openstack-kuryr | 06:16 | |
*** salv-orlando has quit IRC | 06:17 | |
janonymous | qwebirc89498: Also i want to know if enable_plugin neutron-lbaas* are enabled in devstack.conf ? | 06:19 |
qwebirc89498 | janonymous: here is the errors | 06:20 |
qwebirc89498 | ERROR kuryr_kubernetes.handlers.logging [-] Failed to handle event {u'object': {u'status': {u'loadBalancer': {}}, u'kind': u'Service', u'spec': {u'clusterIP': u'10.254.106.162', u'sessionAffinity': u'None', u'type': u'NodePort', u'ports': [{u'targetPort': 80, u'protocol': u'TCP', u'port': 8000, u'nodePort': 30447}], u'selector': {u'name': u'nginx-kuryr'}}, u'apiVersion': u'v1', u'metadata': {u'name': u'nginx-kuryr-servi | 06:20 |
qwebirc89498 | Yes the neutron-lbaas* are enabled | 06:21 |
janonymous | type=NodePort.. | 06:22 |
janonymous | Looking in it, till the time just for reference: http://superuser.openstack.org/articles/networking-kubernetes-kuryr/ | 06:22 |
janonymous | qwebirc89498: ^^ | 06:22 |
qwebirc89498 | janonymous: I debugged this issue found that we need to get annotation info from the Service metadata part here is the code | 06:24 |
qwebirc89498 | annotations = service['metadata']['annotations'] annotation = annotations[k_const.K8S_ANNOTATION_LBAAS_SPEC] | 06:24 |
qwebirc89498 | if it's not existed then will return None | 06:25 |
janonymous | qwebirc89498: i am not sure of type NodePort is supported yet... also what is out put of `kubectl get services -o yaml` and `kubectl get pods -o yaml` | 06:28 |
janonymous | ivc_:^^ | 06:28 |
qwebirc89498 | janonymous: i tried NodePort LoadBalancer ClusterIP all failed due to get the annnotations from Service | 06:29 |
janonymous | qwebirc89498: i am not sure if type NodePort is supported yet...https://bugs.launchpad.net/kuryr-kubernetes/+bug/1684118 | 06:30 |
openstack | Launchpad bug 1684118 in kuryr-kubernetes "kuryr does not support service type = Nodeport" [Undecided,Confirmed] | 06:30 |
qwebirc89498 | janonymous: yes i changed the bug status to confirmed.... | 06:31 |
*** reedip has joined #openstack-kuryr | 06:33 | |
qwebirc89498 | janonymous: here is the out put of `kubectl get services -o yaml` | 06:35 |
qwebirc89498 | -bash-4.3# kubectl get services -o yaml apiVersion: v1 items: - apiVersion: v1 kind: Service metadata: creationTimestamp: 2017-05-31T12:21:47Z labels: component: apiserver provider: kubernetes name: kubernetes namespace: default resourceVersion: "6" selfLink: /api/v1/namespaces/default/services/kubernetes uid: b7b11489-45fb-11e7-b1ce-fa163ebf2712 spec: clusterIP: 10.254. | 06:35 |
*** dimak_ has joined #openstack-kuryr | 06:36 | |
janonymous | qwebirc89498: you can use http://paste.openstack.org/ to paste logs | 06:36 |
qwebirc89498 | janonymous: ok will do that | 06:38 |
*** pcaruana has joined #openstack-kuryr | 06:39 | |
qwebirc89498 | janonymous: here is the link for the log http://paste.openstack.org/show/611456/ | 06:40 |
*** dimak_ has quit IRC | 06:43 | |
*** yamamoto has quit IRC | 06:46 | |
*** yamamoto has joined #openstack-kuryr | 06:47 | |
*** limao has quit IRC | 07:00 | |
*** limao has joined #openstack-kuryr | 07:00 | |
*** salv-orlando has joined #openstack-kuryr | 07:01 | |
*** aojea has quit IRC | 07:24 | |
*** aojea has joined #openstack-kuryr | 07:25 | |
*** salv-orl_ has joined #openstack-kuryr | 07:28 | |
*** aojea has quit IRC | 07:29 | |
*** salv-orlando has quit IRC | 07:31 | |
*** egonzalez has joined #openstack-kuryr | 07:37 | |
openstackgerrit | Luis Tomas Bolivar proposed openstack/kuryr-kubernetes master: Generic vif driver extension to enable ports reuse https://review.openstack.org/436876 | 07:42 |
*** oanson_ has joined #openstack-kuryr | 07:42 | |
*** oanson_ has quit IRC | 07:50 | |
*** dimak_ has joined #openstack-kuryr | 07:55 | |
*** roeyc has joined #openstack-kuryr | 07:56 | |
*** roeyc1 has joined #openstack-kuryr | 07:58 | |
*** qwebirc89498 has quit IRC | 07:59 | |
*** roeyc has quit IRC | 08:00 | |
*** kzaitsev_ws has joined #openstack-kuryr | 08:04 | |
janonymous | qwebirc89498: ping | 08:06 |
*** qwebirc26776 has joined #openstack-kuryr | 08:07 | |
*** qwebirc26776 has quit IRC | 08:10 | |
*** qwebirc89498 has joined #openstack-kuryr | 08:11 | |
*** dimak_ has quit IRC | 08:13 | |
*** garyloug has joined #openstack-kuryr | 08:23 | |
*** dimak_ has joined #openstack-kuryr | 08:29 | |
*** xiangxinyong has joined #openstack-kuryr | 08:30 | |
qwebirc89498 | irenab: we need to disable the kube-proxy in order to use kuryr-kurbernetes along with neutron LBAASV2? | 08:39 |
*** oanson_ has joined #openstack-kuryr | 08:51 | |
*** neil__ has joined #openstack-kuryr | 09:01 | |
*** aojea has joined #openstack-kuryr | 09:02 | |
*** limao has quit IRC | 09:15 | |
*** Guest55399 has quit IRC | 09:15 | |
*** limao has joined #openstack-kuryr | 09:17 | |
openstackgerrit | Kirill Zaitsev proposed openstack/kuryr-kubernetes master: [WIP] Add sriov capabilities to VIF handler https://review.openstack.org/462455 | 09:23 |
*** limao has quit IRC | 09:23 | |
kzaitsev_ws | qwebirc89498: yeah. it's the usual routine to disable it | 09:23 |
qwebirc89498 | ok , one more question , for now we only supplyr clusterIp service type? | 09:24 |
kzaitsev_ws | kuryr-k8s uses lbaasv2 for services. kube-proxy uses iptables rules. the 2 do not behave well together =) | 09:25 |
*** pmannidi has quit IRC | 09:25 | |
qwebirc89498 | ok got it | 09:26 |
qwebirc89498 | do we have any doc about how to use the lbaasv2 for services? | 09:26 |
kzaitsev_ws | yep. https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/controller/handlers/lbaas.py#L53 | 09:27 |
kzaitsev_ws | I don't think there's any specific doc on the topic though | 09:29 |
qwebirc89498 | ok | 09:29 |
qwebirc89498 | let me paste some info to describe my issue | 09:30 |
kzaitsev_ws | I mean the regular install docs mention service_subnet =) | 09:30 |
qwebirc89498 | here is the debug info i got from the service parameter http://paste.openstack.org/show/611475/ | 09:35 |
qwebirc89498 | we can see that there in annotations in metadata part so in kuryr-kurbernetes will return None and eventually failed to create LB | 09:36 |
qwebirc89498 | sorry there is no annotation in the metadata part | 09:36 |
kzaitsev_ws | I'm confused =) | 09:37 |
kzaitsev_ws | I mean I don't understand your question =) | 09:38 |
*** garyloug has quit IRC | 09:40 | |
qwebirc89498 | ok in another way when kuryr-kubernetes try to create LB for service , it need to get annotations info from the service object | 09:42 |
qwebirc89498 | def on_present(self, service): lbaas_spec = self._get_lbaas_spec(service) | 09:42 |
kzaitsev_ws | I don't think it get's any annotations from service object | 09:42 |
kzaitsev_ws | it watches for service object events | 09:43 |
kzaitsev_ws | and if there is an event - sets the annotation itself | 09:43 |
*** garyloug has joined #openstack-kuryr | 09:43 | |
kzaitsev_ws | well, yes in a sense it gets annotation from the service object, but it was the annotation that kuryr-k8s has set itself earlier | 09:44 |
qwebirc89498 | inside of _get_lbaas_spec(service) func there is part of code annotations = service['metadata']['annotations'] annotation = annotations[k_const.K8S_ANNOTATION_LBAAS_SPEC] | 09:44 |
qwebirc89498 | correct | 09:44 |
kzaitsev_ws | qwebirc89498: well nobody expects you to put that annotation there by hand =) | 09:45 |
qwebirc89498 | so here the question is that how to prepare the yaml file to contains the annotations info ? | 09:45 |
kzaitsev_ws | you dont =) | 09:45 |
kzaitsev_ws | kuryr-k8s sets the annotation itself when it sees a new/empty service | 09:47 |
qwebirc89498 | then who will do that ? i created the service and deployment by the yaml file | 09:47 |
qwebirc89498 | here is my content of the yaml file | 09:48 |
kzaitsev_ws | just follow a few lines deeper into the code. if the annotation is empty kuryr-k8s sets it | 09:48 |
qwebirc89498 | could you please point the code to me ? i debugged this issue if there is no annotation then will return None | 09:49 |
qwebirc89498 | you mean we can just put an empty annotation to the yaml file? | 09:50 |
kzaitsev_ws | https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/controller/handlers/lbaas.py#L112-L120 | 09:51 |
kzaitsev_ws | then | 09:51 |
kzaitsev_ws | https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/controller/handlers/lbaas.py#L86-L88 | 09:51 |
kzaitsev_ws | then | 09:51 |
kzaitsev_ws | https://github.com/openstack/kuryr-kubernetes/blob/master/kuryr_kubernetes/controller/handlers/lbaas.py#L47-L49 | 09:51 |
kzaitsev_ws | so if there is no annotation - the spec is empty. kuryr-k8s builds a new one. it has changes (differs) with the empty one and it sets/updates the annotation | 09:52 |
kzaitsev_ws | qwebirc89498: I mean that you don't set the annotation by hand | 09:53 |
* kzaitsev_ws away on a meeting | 09:53 | |
*** oanson_ has quit IRC | 09:55 | |
*** limao has joined #openstack-kuryr | 10:05 | |
*** limao_ has joined #openstack-kuryr | 10:26 | |
*** limao has quit IRC | 10:28 | |
*** limao_ has quit IRC | 10:29 | |
openstackgerrit | Luis Tomas Bolivar proposed openstack/kuryr-kubernetes master: Generic vif pool driver extension to precreate reusable ports https://review.openstack.org/436877 | 10:30 |
*** vikasc has quit IRC | 10:41 | |
*** yamamoto has quit IRC | 10:52 | |
*** vikasc has joined #openstack-kuryr | 10:54 | |
kzaitsev_ws | it's a lot nicer to have sriov in a single cni handler tbh, than a separate cni. configuration will be much simpler =) | 11:16 |
*** salv-orl_ has quit IRC | 11:16 | |
kzaitsev_ws | I've left a couple of things in my patches undecided, but nevertheless I feel they're ready for review =) | 11:17 |
*** gouthamr has joined #openstack-kuryr | 11:39 | |
*** rwallner has joined #openstack-kuryr | 11:40 | |
*** pcaruana has quit IRC | 11:53 | |
*** yamamoto has joined #openstack-kuryr | 11:56 | |
*** dimak_ has quit IRC | 12:03 | |
*** dimak_ has joined #openstack-kuryr | 12:05 | |
*** atoth has joined #openstack-kuryr | 12:07 | |
*** pcaruana has joined #openstack-kuryr | 12:09 | |
*** aojea has quit IRC | 12:14 | |
*** yedongcan has left #openstack-kuryr | 12:15 | |
*** yamamoto has quit IRC | 12:21 | |
*** janki has quit IRC | 12:21 | |
openstackgerrit | Luis Tomas Bolivar proposed openstack/kuryr-kubernetes master: Nested vif driver extension to enable ports reuse https://review.openstack.org/436893 | 12:30 |
*** yamamoto has joined #openstack-kuryr | 12:38 | |
*** gouthamr has quit IRC | 12:39 | |
*** vikasc has quit IRC | 12:48 | |
*** gouthamr has joined #openstack-kuryr | 12:51 | |
*** limao has joined #openstack-kuryr | 12:51 | |
openstackgerrit | Luis Tomas Bolivar proposed openstack/kuryr-kubernetes master: Nested vif driver extension to enable ports reuse https://review.openstack.org/436893 | 13:02 |
*** mattmceuen has quit IRC | 13:02 | |
*** vikasc has joined #openstack-kuryr | 13:05 | |
*** yamamoto has quit IRC | 13:10 | |
*** yamamoto has joined #openstack-kuryr | 13:11 | |
*** limao has quit IRC | 13:16 | |
*** limao has joined #openstack-kuryr | 13:17 | |
openstackgerrit | Luis Tomas Bolivar proposed openstack/kuryr-kubernetes master: Nested vlan vif pool driver extension to precreate reusable subports https://review.openstack.org/436894 | 13:19 |
*** yamamoto has quit IRC | 13:21 | |
*** yamamoto has joined #openstack-kuryr | 13:23 | |
*** limao has quit IRC | 13:34 | |
*** pcaruana has quit IRC | 13:34 | |
*** limao has joined #openstack-kuryr | 13:34 | |
*** aojea has joined #openstack-kuryr | 13:47 | |
*** rwallner has quit IRC | 13:48 | |
*** pcaruana has joined #openstack-kuryr | 13:51 | |
*** limao has quit IRC | 13:55 | |
*** limao has joined #openstack-kuryr | 13:56 | |
*** pcaruana has quit IRC | 13:59 | |
*** pcaruana has joined #openstack-kuryr | 14:00 | |
*** janki has joined #openstack-kuryr | 14:02 | |
*** salv-orlando has joined #openstack-kuryr | 14:04 | |
*** dimak_ has quit IRC | 14:05 | |
*** limao has quit IRC | 14:16 | |
*** limao has joined #openstack-kuryr | 14:17 | |
*** hongbin has joined #openstack-kuryr | 14:28 | |
*** rwallner has joined #openstack-kuryr | 14:30 | |
*** limao has quit IRC | 14:38 | |
*** limao has joined #openstack-kuryr | 14:39 | |
*** dougbtv_ is now known as dougbtv | 14:50 | |
*** yamamoto has quit IRC | 14:55 | |
*** salv-orlando has quit IRC | 14:59 | |
*** limao has quit IRC | 14:59 | |
*** salv-orlando has joined #openstack-kuryr | 15:00 | |
*** limao has joined #openstack-kuryr | 15:00 | |
*** rwallner has quit IRC | 15:00 | |
*** rwallner_ has joined #openstack-kuryr | 15:01 | |
*** rwallner_ has quit IRC | 15:02 | |
*** rwallner_ has joined #openstack-kuryr | 15:02 | |
*** salv-orlando has quit IRC | 15:04 | |
*** rwallner_ has quit IRC | 15:19 | |
*** limao has quit IRC | 15:21 | |
*** limao has joined #openstack-kuryr | 15:21 | |
*** rwallner has joined #openstack-kuryr | 15:38 | |
*** limao has quit IRC | 15:39 | |
*** roeyc has joined #openstack-kuryr | 15:40 | |
*** roeyc has quit IRC | 15:40 | |
*** roeyc1 has quit IRC | 15:42 | |
*** ltomasbo is now known as ltomasbo|away | 15:52 | |
*** gsagie has joined #openstack-kuryr | 15:52 | |
*** aojea has quit IRC | 15:58 | |
*** janki has quit IRC | 15:58 | |
*** egonzalez has quit IRC | 16:05 | |
*** rwallner has quit IRC | 16:07 | |
*** kzaitsev_ws has quit IRC | 16:12 | |
*** yamamoto has joined #openstack-kuryr | 16:26 | |
*** yamamoto has quit IRC | 16:31 | |
*** rwallner has joined #openstack-kuryr | 16:32 | |
*** pcaruana has quit IRC | 16:34 | |
*** garyloug has quit IRC | 16:54 | |
*** rwallner has quit IRC | 17:00 | |
*** rwallner has joined #openstack-kuryr | 17:02 | |
*** rwallner has quit IRC | 17:07 | |
*** roeyc has joined #openstack-kuryr | 17:11 | |
*** aojea has joined #openstack-kuryr | 17:16 | |
*** aojea has quit IRC | 17:20 | |
*** egonzalez has joined #openstack-kuryr | 17:24 | |
*** rwallner has joined #openstack-kuryr | 17:25 | |
*** aojea has joined #openstack-kuryr | 17:50 | |
*** rwallner has quit IRC | 18:00 | |
*** rwallner has joined #openstack-kuryr | 18:01 | |
*** tonanhngo has joined #openstack-kuryr | 18:08 | |
*** roeyc has quit IRC | 18:24 | |
*** aojea has quit IRC | 18:25 | |
*** atoth has quit IRC | 18:25 | |
*** gsagie has quit IRC | 18:26 | |
*** yamamoto has joined #openstack-kuryr | 18:29 | |
*** roeyc has joined #openstack-kuryr | 18:34 | |
*** yamamoto has quit IRC | 18:34 | |
*** atoth has joined #openstack-kuryr | 18:39 | |
*** atoth has quit IRC | 18:39 | |
*** atoth has joined #openstack-kuryr | 18:40 | |
*** roeyc has quit IRC | 18:48 | |
*** rwallner has quit IRC | 18:56 | |
*** pcaruana has joined #openstack-kuryr | 18:56 | |
*** rwallner has joined #openstack-kuryr | 18:58 | |
*** rwallner_ has joined #openstack-kuryr | 19:00 | |
*** rwallner_ has quit IRC | 19:00 | |
*** rwallner_ has joined #openstack-kuryr | 19:00 | |
*** aojea has joined #openstack-kuryr | 19:02 | |
*** rwallner has quit IRC | 19:03 | |
*** salv-orlando has joined #openstack-kuryr | 19:03 | |
*** gouthamr has quit IRC | 19:12 | |
*** yamamoto has joined #openstack-kuryr | 19:31 | |
*** rwallner_ has quit IRC | 19:33 | |
*** pcaruana has quit IRC | 19:33 | |
*** rwallner has joined #openstack-kuryr | 19:36 | |
*** yamamoto has quit IRC | 19:36 | |
*** neil__ has quit IRC | 19:56 | |
*** salv-orl_ has joined #openstack-kuryr | 20:06 | |
*** salv-orlando has quit IRC | 20:08 | |
*** rwallner has quit IRC | 20:15 | |
*** rwallner has joined #openstack-kuryr | 20:23 | |
*** rwallner has quit IRC | 20:28 | |
*** aojea has quit IRC | 20:32 | |
*** yamamoto has joined #openstack-kuryr | 20:32 | |
*** aojea has joined #openstack-kuryr | 20:35 | |
*** aojea has quit IRC | 20:36 | |
*** yamamoto has quit IRC | 20:37 | |
*** aojea has joined #openstack-kuryr | 20:37 | |
*** gouthamr has joined #openstack-kuryr | 20:40 | |
*** egonzalez has quit IRC | 20:56 | |
*** egonzalez has joined #openstack-kuryr | 20:56 | |
*** yamamoto has joined #openstack-kuryr | 21:33 | |
*** yamamoto has quit IRC | 21:37 | |
*** gouthamr has quit IRC | 21:40 | |
*** rwallner has joined #openstack-kuryr | 21:44 | |
*** rwallner has quit IRC | 21:54 | |
*** aojea has quit IRC | 22:03 | |
*** egonzalez has quit IRC | 22:11 | |
*** yamamoto_ has joined #openstack-kuryr | 22:34 | |
*** yamamoto_ has quit IRC | 22:40 | |
*** rwallner has joined #openstack-kuryr | 22:50 | |
*** rwallner has quit IRC | 22:55 | |
*** gouthamr has joined #openstack-kuryr | 22:57 | |
*** hongbin has quit IRC | 22:59 | |
*** pmannidi has joined #openstack-kuryr | 23:04 | |
*** tonanhngo has quit IRC | 23:05 | |
*** tonanhngo has joined #openstack-kuryr | 23:12 | |
*** rwallner has joined #openstack-kuryr | 23:13 | |
*** tonanhngo has quit IRC | 23:16 | |
*** rwallner has quit IRC | 23:18 | |
*** yamamoto_ has joined #openstack-kuryr | 23:36 | |
*** limao has joined #openstack-kuryr | 23:37 | |
*** gouthamr has quit IRC | 23:41 | |
*** yamamoto_ has quit IRC | 23:42 | |
*** gouthamr has joined #openstack-kuryr | 23:44 | |
*** gouthamr has quit IRC | 23:51 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!