Friday, 2021-07-30

*** pmannidi is now known as pmannidi|brb01:29
*** pmannidi|brb is now known as pmannidi01:59
*** pmannidi is now known as pmannidi|AFK03:14
*** pmannidi|AFK is now known as pmannidi04:48
opendevreviewRoman Dobosz proposed openstack/kuryr-kubernetes master: Fix multinode gate.  https://review.opendev.org/c/openstack/kuryr-kubernetes/+/80161806:00
opendevreviewSunday Mgbogu proposed openstack/kuryr-kubernetes master: Add the Service Creation Flow Diagram  https://review.opendev.org/c/openstack/kuryr-kubernetes/+/79806408:04
opendevreviewSunday Mgbogu proposed openstack/kuryr-kubernetes master: Add the Service Creation Flow Diagram  https://review.opendev.org/c/openstack/kuryr-kubernetes/+/79806408:44
opendevreviewRoman Dobosz proposed openstack/kuryr-kubernetes master: [WIP] Switch to OVN by default, let's see how that explode.  https://review.opendev.org/c/openstack/kuryr-kubernetes/+/80299909:27
*** pmannidi is now known as pmannidi|AFK09:29
digitalsimbojamaysams, gryf, ltomasbo: Just a little clarification. Please take a look at what I am trying to mirror. It involves several module imports 11:38
digitalsimbojahttps://github.com/openstack/octavia-tempest-plugin/blob/master/octavia_tempest_plugin/services/load_balancer/v2/loadbalancer_client.py11:38
digitalsimbojaHope I am on the right track?11:39
gryfdigitalsimboja, you want to interact with octavia api directly, instead of using os_admin?11:59
digitalsimbojaI want to use os_admin but not finding a way to interact with octavia12:00
digitalsimbojaso I am trying to mirror what Octavia has up there to Kuryr12:00
digitalsimbojaI need to use the loadbalancer_client to list the loadbalancers specifically12:01
gryfmhm. I don't have working env right now, but I'd expect, that os_admin have some attribute like os_admin.load_balancer or similar.12:23
digitalsimbojahttps://paste.opendev.org/show/807818/12:49
digitalsimbojamanager is from tempest repo12:49
gryfyou probably needs octavia-tempest-plugin for that.13:00
digitalsimbojaI guess 13:07
digitalsimbojaso I have to clone that then, that is add it to my local.conf, unstack and stack again?13:08
gryfi guess, it might be cloned, installed and perhaps reinitialize tempest, although unstack-stack will do all of this for you.13:38
ltomasboone comment... digitalsimboja you are adding the job to kuryr-tempest-plugin, not sure if adding dependency on octavia-tempest-plugin is a good approach13:43
ltomasbogryf, ^13:43
ltomasboperhaps we need to extend os_admin so that it has a client for octavia too instead13:43
digitalsimbojaextending os_admin would require adding octavia component to the existing ones?13:44
ltomasbowould be adding octavia client here in the same way as others where added https://github.com/openstack/tempest/blob/master/tempest/clients.py13:45
digitalsimbojasure13:46
ltomasboand here they are added https://github.com/openstack/tempest/tree/master/tempest/lib/services13:47
ltomasbokind of surprise loadbalancer is not yet there... :/13:47
maysams+113:47
ltomasbomaybe there is a reason for this https://github.com/openstack/octavia-tempest-plugin/tree/master/octavia_tempest_plugin/services/load_balancer/v2 not to be on base tempest13:48
ltomasbodigitalsimboja, perhaps worth to ask on the octavia IRC channel13:48
ltomasbodigitalsimboja, it is named openstack-lbaas13:49
digitalsimbojaLet me correspond with the guys there then13:49
ltomasbodigitalsimboja, you can probably ping there cgoncalves, gthiemonge or johnson13:50
digitalsimbojacool!13:50
gryfltomasbo, right, I saw that implementation. also, they used to have it as extension to os_admin object: https://opendev.org/openstack/octavia-tempest-plugin/src/commit/986e3f543c6b3c588b88b1748641680759ed2856/octavia_tempest_plugin/tests/api/v2/test_load_balancer.py#L49513:51
ltomasbogryf, and not anymore?13:53
gryfnope.13:53
gryflet me find the commit13:53
ltomasbook... then, probably there is a reason for it xD13:53
gryfhttps://opendev.org/openstack/octavia-tempest-plugin/commit/6006de75a749556a071d23e12ca3a1e7e0ec58c013:55
gryfalthough, here: https://opendev.org/openstack/octavia-tempest-plugin/src/branch/master/octavia_tempest_plugin/tests/act_stdby_scenario/v2/test_active_standby.py#L186 they are using load_balancer_v2 member.14:00
gryfpretty confusing.14:00
ltomasboperhaps they are extending os_admin object with that somehow on the octavia_tempest_plugin14:01
gryfthere was something… but what is more confusing, is the fact, there is no buildin available to tempest ootb.14:02
gryfbuildin for octavia api.14:02
digitalsimbojaFirst, does the loadbalancers on octavia get created when a service is created on tempest?14:04
ltomasbohttps://github.com/openstack/tempest/commit/7f5dd855c6099a73eb5752ab246303c5aac29ce914:04
gryfltomasbo, https://opendev.org/openstack/octavia-tempest-plugin/src/branch/master/octavia_tempest_plugin/plugin.py here's how they plug it in.14:05
ltomasbook14:06
gryfthe last method expose the implementation to tempest.14:07
gryflb_v2_services.__all__ is pointing to the code you mentioned on 15:48:41.14:07
ltomasbogryf, this is the commit removing os_admin: https://opendev.org/openstack/octavia-tempest-plugin/commit/29d8e61ca27859b70a4350e87022442a78f8fa8c14:09
ltomasbothey are suing it through amphora_client = self.os_admin.load_balancer_v2.AmphoraClient()14:09
gryfltomasbo, how about this one: https://opendev.org/openstack/octavia-tempest-plugin/src/branch/master/octavia_tempest_plugin/tests/test_base.py#L163-L211 ?14:13
gryfeither way, seems like we need to write a proxy to the lb client ourselves.14:16
ltomasbogryf, Friday + multitasking (in a call at the moment) is not helping me to follow that! xD14:16
gryfyeah, definitely.14:16
ltomasboyep, we would need to 14:16
gryfas an option we could think of using openstacksdk or call the api using requests, although the latter one would be pretty bad in many ways.14:17
ltomasbodepending on what we need, probably just loadbalancer client to remove the lbs, it won't be much (hopefully14:17
ltomasbodigitalsimboja, you only need to remove the loadbalancer, right? we don't need to create/update lbs, pools, listeners, members... so... lets try to keep it simple14:18
gryfoh my. Octavia folks HAS used requests and json to parse the output: https://opendev.org/openstack/octavia-tempest-plugin/src/branch/master/octavia_tempest_plugin/services/load_balancer/v2/base_client.py14:21
gryfso probably an lite version we'd need to implement for lbs.14:21
ltomasboom14:24
gryfotoh. We don't need to examine api for octavia, right? maybe we can utilize openstacksdk for that purpose.14:26
ltomasboI think we just need to trigger the cascade loadbalancer deletion and thats it14:26
gryfyou mean through api?14:27
ltomasbothe rest can be done by checking dataplane (pinging the service IP)14:27
gryfwell, we also need to parse the result of the req, if we talking about hitting the api.14:28
gryfbut probably that would be the best approach.14:29
ltomasbosimboja, rejoin the openstack-lbaas14:36
simbojaOhh14:36
ltomasbosimboja, the guy is surprised you ask and are not connected14:36
ltomasboI told him it is due to the networking issues14:36
simbojasure, never knew i got disconnected14:38
simbojaHi ltomasbo14:47
ltomasbogryf, so, it seems the process is to move out of tempest...and we would need to load the octavia-tempest-plugin and add it as a dependency14:47
simbojaSo we shall have to implement the service_client in the kuryr_tempest_plugin14:47
digitalsimbojagryf: based on the messages above, I guess we are to load the octavia-tempest-plugin as a dependency?17:58
gryfright.17:59
gryfit might look like a fat dependency, but actually it's reasonable one. we depend on octavia, so that there is no point to write our own api client - let's re-use the octavia one.18:02
*** pmannidi|AFK is now known as pmannidi22:05
*** pmannidi is now known as pmannidi|AFK23:49

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!