Friday, 2021-07-09

*** pmannidi is now known as pmannidi|brb01:51
*** pmannidi|brb is now known as pmannidi02:39
*** pmannidi is now known as pmannidi|Away05:45
*** pmannidi|Away is now known as pmannidi05:48
*** pmannidi is now known as pmannidi|Away05:48
*** pmannidi|Away is now known as pmannidi05:54
*** pmannidi is now known as pmannidi|Away05:54
*** pmannidi|Away is now known as pmannidi05:55
*** pmannidi is now known as pmannidi|Away05:55
*** pmannidi|Away is now known as pmannidi05:58
*** pmannidi is now known as pmannidi|Away05:58
*** pmannidi|Away is now known as pmannidi05:59
*** pmannidi is now known as pmannidi|Away05:59
*** pmannidi|Away is now known as pmannidi06:08
digitalsimbojaHello! 07:44
digitalsimboja@maysams: Please take a look at below07:45
digitalsimbojahttp://paste.openstack.org/show/807319/07:46
digitalsimbojaI am having a challenge getting the ID of the listeners07:46
digitalsimbojaWhat am I doing wrong please07:48
maysamsdigitalsimboja: hi, did you check if any listener was actually return from the API call?08:36
maysamsdigitalsimboja: you can try list(listeners) to verify that08:37
digitalsimbojaI got this data on checking listeners_id08:42
digitalsimbojahttp://paste.openstack.org/show/807320/08:42
maysamsokay, so looks like you have the id there08:52
maysamsdigitalsimboja: btw, this code fragment is not getting the ID "listeners_id = [lsnr for lsnr in listeners]"09:55
digitalsimbojayeah thats exactly my challenge09:55
digitalsimbojaI am tying to finding a way to get the Id09:55
digitalsimbojaWould appreciate any quick step10:00
digitalsimbojaor any easier way: maysams10:00
maysamslsnr['id']?10:05
maysamsdigitalsimboja: ^10:28
digitalsimbojaI missed your last messages after I asked10:29
digitalsimbojaPlease reshare10:29
maysamslsnr['id']?10:33
digitalsimbojaThat did not return the id10:36
*** luis5tb is now known as ltomasbo10:36
digitalsimbojasee below10:39
digitalsimbojaNow I got it with this10:41
digitalsimboja listeners_id = list(lsnr['id'] for lsnr in listeners)10:41
digitalsimbojai tried [lsnr[]'id for lsnr in listeners] initially but did not succeed10:42
digitalsimbojaThanks @maysams10:42
maysamsyw11:00
opendevreviewMichał Dulko proposed openstack/kuryr-kubernetes master: CNI: Convert bridge driver to use NDB  https://review.opendev.org/c/openstack/kuryr-kubernetes/+/80020711:20
opendevreviewMichał Dulko proposed openstack/kuryr-kubernetes master: CNI: Convert nested drivers to NDB  https://review.opendev.org/c/openstack/kuryr-kubernetes/+/80020811:20
digitalsimboja@maysams: Just a little more help14:02
digitalsimbojahttp://paste.openstack.org/show/807337/14:02
digitalsimbojaI need to access the 'id' of the listeners here14:02
digitalsimboja@ltomasbo ^14:02
maysamsokay.. you have the a list with listener IDs and the link to the CRD both inside a tuple14:04
ltomasbodigitalsimboja, yep, you have a tupple + list... not sure if that is what you want to do14:04
ltomasbodigitalsimboja, perhaps good if you check some python basics about dealing with objects, dicts, lists, tuples14:06
ltomasboit would help you to understand how to access the different data depending on the type of object you are dealing with14:07
digitalsimbojaokay14:12
digitalsimboja@maysams, @ltomasbo: I got it!15:56
digitalsimboja[('7ca0b103-810c-4ce6-8d70-de10299c233a', '/apis/openstack.org/v1/namespaces/default/kuryrloadbalancers/demo'), ('ce3c3d0c-c62c-4dd3-9759-015fc06a4a37', '/apis/openstack.org/v1/namespaces/default/kuryrloadbalancers/test')]15:56
digitalsimboja(Pdb)15:56
digitalsimbojalsnrs_id = [(l['id'], utils.get_res_link(loadbalancer_crd)) for loadbalancer_crd in loadbalancer_crds for l in loadbalancer_crd.get('status', {}).get('listeners', [])]15:56
ltomasbogreat!16:19
opendevreviewSunday Mgbogu proposed openstack/kuryr-kubernetes master: wip: Loadbalancers reconciliation  https://review.opendev.org/c/openstack/kuryr-kubernetes/+/79890420:10

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