*** dmellado_ has joined #openstack-kuryr | 00:07 | |
*** dmellado has quit IRC | 00:11 | |
*** dmellado_ is now known as dmellado | 00:11 | |
*** opendevreview has joined #openstack-kuryr | 01:50 | |
opendevreview | wushiming proposed openstack/kuryr master: Changed minversion in tox to 3.18.0 https://review.opendev.org/c/openstack/kuryr/+/793708 | 01:50 |
---|---|---|
opendevreview | wushiming proposed openstack/kuryr-kubernetes master: Changed minversion in tox to 3.18.0 https://review.opendev.org/c/openstack/kuryr-kubernetes/+/793709 | 01:56 |
*** ltomasbo has joined #openstack-kuryr | 06:15 | |
*** tabbie_fash has joined #openstack-kuryr | 07:09 | |
*** tabbie_fash has quit IRC | 07:22 | |
*** tabbie_fash has joined #openstack-kuryr | 07:30 | |
*** dulek has joined #openstack-kuryr | 07:33 | |
*** tabbie_afk has joined #openstack-kuryr | 07:38 | |
*** tabbie_fash has quit IRC | 07:38 | |
*** tabbie_afk has quit IRC | 08:03 | |
*** digitalsimboja has joined #openstack-kuryr | 08:26 | |
maysams | digitalsimboja: hey, just saw your ping from last Friday. We were on PTO that day | 08:37 |
digitalsimboja | Alright cool. Good morning | 08:45 |
digitalsimboja | Our call is in 15mins | 08:45 |
digitalsimboja | Trying to connect back. I lost connection | 09:06 |
ltomasbo | digitalsimboja, perhaps you can stop your camera (if connection is not allowing you to have both screen and camera) | 09:08 |
*** digitalsimboja has quit IRC | 09:17 | |
*** digitalsimboja has joined #openstack-kuryr | 09:25 | |
*** digitalsimboja has quit IRC | 10:06 | |
*** digitalsimboja has joined #openstack-kuryr | 10:21 | |
opendevreview | Maysa de Macedo Souza proposed openstack/kuryr-kubernetes master: Fix Listener timeouts update https://review.opendev.org/c/openstack/kuryr-kubernetes/+/793768 | 11:13 |
digitalsimboja | @maysam: I am not able to see the questions you added on Trello. | 12:13 |
digitalsimboja | Please could you recheck to see if its reflected yet | 12:13 |
digitalsimboja | Thanks | 12:13 |
maysams | digitalsimboja: it's on the description of each card that is in-progress | 12:16 |
digitalsimboja | Alright Thanks | 12:19 |
digitalsimboja | Seen! | 12:21 |
digitalsimboja | Those questions are actually what I have been looking for. Coupled with detailed explainantion by @ltomasbo, I should be fine by end of day | 12:22 |
digitalsimboja | Would come back with questions if I hit one | 12:22 |
maysams | great, digitalsimboja. Make sure to respond those question on the card itself | 12:23 |
*** digitalsimboja has quit IRC | 13:46 | |
*** digitalsimboja has joined #openstack-kuryr | 14:00 | |
digitalsimboja | Hi | 14:07 |
ltomasbo | digitalsimboja, hi! | 14:10 |
digitalsimboja | After service is created, the on_present function in both loadbalancer.py and lbaas.py is called right away ? correct? | 14:12 |
digitalsimboja | but that of loadbalancer.py does nothing? | 14:12 |
ltomasbo | digitalsimboja, not really | 14:13 |
digitalsimboja | because the value it needs is not ready yet? | 14:13 |
digitalsimboja | Ohh okay | 14:13 |
ltomasbo | after svc creationg, both on_present functions on lbaas.py will be called (the one on ServiceHandler and the one on EndpointHander) | 14:13 |
ltomasbo | then, those handlers (ServiceHandler and EndpointHandler) will create/update the KuryrLoadBalancer CRD (the first one getting executed create the CRD and put some information there, the second one update the information to extend it) | 14:14 |
digitalsimboja | ohhkay perfect! | 14:14 |
ltomasbo | and then, the KuryrLoadBalancer creation (and the update) are the ones making the on_present function on loadbalancer.py be executed | 14:15 |
ltomasbo | note that handler is watching on the KuryrLoadBalancer CRD object (and not on the service or endpoint k8s object)( | 14:15 |
ltomasbo | while the classes at lbaas.py are the ones watching the service and endpoint functions | 14:15 |
ltomasbo | s/functions/objects | 14:15 |
digitalsimboja | loadbalancer is watching KuryrLOadbalancer CRD you mean? | 14:16 |
ltomasbo | and what happens on the kuryrloadbalancer handler is that it requires the CRD to have the complete information, otherwise it does nothing | 14:16 |
ltomasbo | yes, exactly | 14:16 |
ltomasbo | ServiceHandler watchers k8s services | 14:16 |
ltomasbo | EndpointHandler watches k8s endpoints | 14:16 |
ltomasbo | KuryrLoadBalancerHandler watchers KuryrLoadBalancer CRD objects | 14:17 |
digitalsimboja | very clear! | 14:17 |
digitalsimboja | def on_present(self, service): for the service handler: what does the parameter 'service' hold after a kubernetes event? | 14:18 |
ltomasbo | so, creating a service --> execute watcher on ServiceHandler and EndpointHandlers --> they create/update KuryrLoadBalancer CRD object (on k8s) --> execute watcher on loadbalancer.py --> call drivers to create OpenStack resources | 14:18 |
digitalsimboja | Understood! | 14:19 |
ltomasbo | when you create an object in k8s (e.g., a svc), the watcher that is wathing that type of object (e.g., svc in this case), gets called with the obj itself as parameter (so you get there the k8s service object) | 14:19 |
digitalsimboja | In plain words, creating a k-8s service will trigger the service and endpoints handlers in lbaas.py handler. These would in turn create or update KuryrLoadbalancer CRD objects on k8s. Once a KuryrLOadbalnacer CRD object is created, its picked up by the loadbalancer.py handler and call the drivers to create openstack resources? | 14:21 |
digitalsimboja | so the job of the loadbalancer hander is to watch out for KuryrLoadbalancer CRDs on k8s. Once its available, it calls the relevant drivers to create the openstack resources matching the CRDs | 14:23 |
digitalsimboja | Sorry! I needed to repeat to be properly sure I fully understand | 14:23 |
ltomasbo | digitalsimboja, yep! that sounds right! | 14:28 |
digitalsimboja | Okay lets get this too | 14:35 |
digitalsimboja | kubectl get klb demo -o yaml | 14:35 |
digitalsimboja | This retrieves the KuryrLoadbalancer CRD? | 14:35 |
*** digitalsimboja has quit IRC | 14:40 | |
*** dulek has quit IRC | 15:18 | |
*** ltomasbo has quit IRC | 16:32 | |
*** opendevreview has quit IRC | 17:47 | |
*** opendevmeet has joined #openstack-kuryr | 19:51 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!