Wednesday, 2021-06-02

*** ltomasbo has joined #openstack-kuryr06:10
*** opendevreview has joined #openstack-kuryr08:07
opendevreviewRoman Dobosz proposed openstack/kuryr-kubernetes master: Add golang dependency for devstack.  https://review.opendev.org/c/openstack/kuryr-kubernetes/+/79415908:07
*** digitalsimboja has joined #openstack-kuryr08:55
digitalsimbojahello!08:56
digitalsimbojagood morning  all08:56
maysamshello, good morning08:56
digitalsimboja@ltomasbo, @maysams: Please check I am not able to ssh to the VM08:56
maysamsdigitalsimboja: have you tried to access the vm today?08:56
digitalsimbojasince last night08:56
ltomasbodigitalsimboja, good morning!08:56
digitalsimbojaI have not been able to08:56
maysamsyeah, we noticed some memory leak issue08:56
digitalsimbojaso it will be fixed?08:57
ltomasbodigitalsimboja, yeah... I see the VM is stuck, some memory leak or something... I can try to reboot it... but we will need to unstack and stack again08:57
ltomasbodigitalsimboja, can I restart it?08:57
digitalsimbojasure thats not a problem08:57
digitalsimbojayeah please restart08:57
*** dulek has joined #openstack-kuryr08:58
digitalsimbojalet me know the moment its done08:59
ltomasbodigitalsimboja, done already08:59
digitalsimbojaam in09:02
digitalsimbojais the tmux session still '0'09:03
digitalsimboja?09:03
ltomasbodigitalsimboja, join the tmux, I triggered the unstack/clean, so that you can trigger the installation as soon as it finish09:03
ltomasbodigitalsimboja, you can check the tmux session number with "tmux ls"09:03
digitalsimbojaubuntu@sunday-vm:~$ tmux ls 0: 1 windows (created Wed Jun  2 08:59:38 2021) (attached)09:03
digitalsimbojatmux a -t 009:03
ltomasboyeap09:03
digitalsimbojajoined09:04
digitalsimbojadid you ./clean.sh as well?09:04
ltomasboit is running at the moment09:04
ltomasboonce it finish you will need to trigger the ./stack.sh again09:05
digitalsimbojaso yesterday I was able to deploy two pods, replicate 1 and exposed a service on one09:05
digitalsimbojaI retrieved the CRD09:05
digitalsimbojawhat command would enable me to delete a field on the CRD09:05
digitalsimboja?09:05
ltomasbocommands are the same for all k8s objects... you can do09:06
ltomasbokubectl edit OBJECT_TYPE OBJECT_NAME09:06
ltomasboso, you can do kubectl edit klb XXX09:06
digitalsimbojaGreat!09:07
ltomasbodigitalsimboja, the clean finished... feel free to start the stacking when you want09:11
digitalsimbojarunning...09:12
maysamsdigitalsimboja: Kubernetes documentation is always handy for figuring out the right commands https://kubernetes.io/docs/reference/kubectl/cheatsheet/#editing-resources09:24
digitalsimbojaThanks!09:25
digitalsimbojastack failed again09:26
digitalsimbojaPlease take a look09:27
ltomasbodigitalsimboja, what is the problem?09:31
ltomasbogryf, it looks like a problem with kubeadm09:33
gryfltomasbo, could you show me the issue?09:35
ltomasbogryf, http://paste.openstack.org/show/806261/09:37
gryf> curl: command not found09:37
gryfhow on earth that happen?09:37
ltomasbogryf, curl is definitely installed on the VM...09:38
gryfyet it states that it's not a command…09:38
gryfon which OS are you in?09:39
ltomasbogryf, http://paste.openstack.org/show/806262/09:39
ltomasbointeresting...09:39
gryfthat's strange09:40
gryfhow's you PATH looks like?09:40
ltomasbogryf, going to re-install it09:41
gryfltomasbo, ack.09:41
ltomasbogryf, now it appears there... interesting...09:42
ltomasbomaybe something messed around with the /usr/bin or something09:42
gryfnot sure, although it should just work™.09:43
ltomasboyep. lets see this time09:46
ltomasbodigitalsimboja, ^09:46
digitalsimbojaGreat!09:48
digitalsimbojahttp://paste.openstack.org/show/806263/09:49
digitalsimbojaerror with etcd/passwd09:50
digitalsimbojaetc/passwd09:50
ltomasbodigitalsimboja, probably some devstack leftovers09:51
ltomasbolets clean it up, reboot the VM, and try again09:51
*** digitalsimboja has quit IRC09:53
*** digitalsimboja has joined #openstack-kuryr09:58
*** digitalsimboja has quit IRC10:21
*** digitalsimboja has joined #openstack-kuryr10:22
*** digitalsimboja has quit IRC10:30
*** digitalsimboja has joined #openstack-kuryr10:34
ltomasbodigitalsimboja, hi10:34
digitalsimbojaHi10:34
ltomasboI created a different VM, can you join the tmux on it?10:34
ltomasbodigitalsimboja, it already has devstack installed, so it is ready to use10:35
ltomasbodigitalsimboja, only different with your previous one is that kuryr is running non-containerized, which can be handy for you for debugging purposes when you write code changes10:35
digitalsimbojasame ssh link?10:36
*** digitalsimboja has quit IRC10:38
*** digitalsimboja has joined #openstack-kuryr10:39
opendevreviewRoman Dobosz proposed openstack/kuryr-kubernetes master: Fixes for latest changes on Neutron devstack.  https://review.opendev.org/c/openstack/kuryr-kubernetes/+/79420010:45
digitalsimboja@ltomasbo:11:27
digitalsimbojaso after deleting the status on klb11:28
digitalsimbojaKuryr, recreated them?11:28
ltomasbodigitalsimboja, no11:28
digitalsimbojareadded them?11:28
ltomasbodigitalsimboja, if you just delete the status, kuryr will re-discover the previously created loadbalancer and add its information back to the status11:28
digitalsimbojagot it!11:29
ltomasbodigitalsimboja, if you delete the loadbalancer, and then delete the status, then kuryr will recreate it (and add the new loadbalancer information to the status11:29
digitalsimbojawait a minute11:29
ltomasbodigitalsimboja, try that, do "openstack loadbalancer delete --cascade default/demo"11:29
digitalsimbojaHANG ON11:29
ltomasbodigitalsimboja, check that the loadbalancer is gone with "openstack loadbalancer list"11:29
ltomasbothen remove the status on the CRD11:30
ltomasboand check that a new loadbalancer default/demo will be created11:30
ltomasboand the crd status information will be filled in with the information from the new loadbalancer11:30
ltomasbodigitalsimboja, that exact problem is the one you want to fix... you want kuryr to realize about that loadbalancer to be gone... and automatically recreate it, without you having to manually remove the status11:32
ltomasboso, basically, you need something that detect the loadbalancer is gone, and then remove the status so that kuryr recreates it11:32
ltomasbodigitalsimboja, try now the CRD status removal11:32
digitalsimbojaWait a second11:33
digitalsimbojabefore I remove the status, let me run through the steps11:34
digitalsimbojafirst11:34
digitalsimbojaI deleted the openstack side of the resource with 'openstack delete loadbalancer...'11:34
digitalsimbojathen, I checked and realsied that its no longer available on openstack11:34
digitalsimbojathen but its still avaialble on the kubernetes api server11:35
digitalsimbojaso I need to delete the status of the loadbalancer on k8s apiserver11:36
ltomasbodigitalsimboja, yep, the kuryrloadbalancer CRD object is only modified by Kuryr... so there is nothing removing the status there11:37
ltomasbodigitalsimboja, this may be handy: https://www.geeksforgeeks.org/vi-editor-unix/11:38
digitalsimboja digitalsimboja, that exact problem is the one you want to fix... you want kuryr to realize about that loadbalancer to be gone... and automatically recreate it, without you having to manually remove the status11:44
digitalsimbojaNow I UNDERSTAND11:44
digitalsimbojaSo without removing the status field of the loadbalancer manually, Kuryr won't be able to detect that its gone and recreate it?11:45
*** digitalsimboja has quit IRC12:13
*** digitalsimboja has joined #openstack-kuryr12:29
digitalsimbojaHello12:29
digitalsimboja@ltomasbo: I need the credentials to login to the stack user for the new VM12:33
digitalsimbojaOkay I joined the session and am in12:34
ltomasbodigitalsimboja, what credentials?12:35
ltomasboyou key is already added to the VM and you were connected before... I changed nothing12:35
*** digitalsimboja_ has joined #openstack-kuryr12:37
digitalsimbojaI joined the sessiion and its good12:37
*** digitalsimboja_ has quit IRC13:30
ltomasbodigitalsimboja, seems there is a problem getting the images13:43
digitalsimbojayeah13:43
ltomasbodigitalsimboja, did you have problems downloading them/creating pods before?13:43
ltomasbothis was working this morning13:43
digitalsimbojaI logged out and logged in back and decided to create fresh pods, reporting imagePull error13:44
digitalsimbojaso i deleted initial deployments to start afresh13:44
digitalsimbojabefore you joined in13:44
ltomasbodigitalsimboja, it cannot reach quay, nor docker it seems13:49
digitalsimbojahmmm13:49
ltomasbodigitalsimboja, so, if you cannot download images from docker/quay... you cannot create containers...13:54
digitalsimbojadoes this depend on my side?13:55
digitalsimbojawhat of the image busybox?13:55
ltomasbotry with different images yes... you can use whatever you want for the dummy pod13:55
ltomasboseems the dns is broken13:56
ltomasbodigitalsimboja, ok... fixed13:56
digitalsimbojaalright13:57
ltomasbofor some reason... /etc/resolv.conf is getting overwritten... and the current OpenStack dns where the VM is running seems to be flaky13:58
ltomasbodigitalsimboja, all yours13:59
digitalsimbojaThanks hugely!13:59
ltomasbodigitalsimboja, note I created the pod on a namespace named sunday13:59
digitalsimbojasure I know13:59
digitalsimbojaI need to expose a service on same nnamespace14:00
ltomasboyep14:01
digitalsimbojacheck again14:08
ltomasbodigitalsimboja, you need to replacec the resolv.conf with the trick I did14:09
digitalsimbojahow do I make that permanent14:09
ltomasboarr14:10
digitalsimbojaThe nameserver keeps changing I guess?14:10
ltomasboI stopped the systemctl service that manages that14:11
ltomasboand forced it to 8.8.8.814:11
ltomasbolet me know if it breaks again14:11
ltomasbodigitalsimboja, all yours14:12
digitalsimbojaThanks very much~14:12
digitalsimbojaNow here is the thing, I replicated a pod and exposed a service. Now I try to delete the KuryrLB but its not allowing becuase of the replica pods14:29
digitalsimbojaHow do I go about this?14:30
digitalsimbojadelete the replica pod? then try?14:30
ltomasbodigitalsimboja, what do you mean14:32
digitalsimbojaLets join the tmux session so I can show you14:32
ltomasbodigitalsimboja, you have a service, pointing to a deployment, right?14:32
digitalsimbojasure14:32
ltomasbodigitalsimboja, and you have the kuryrlb14:33
digitalsimbojayeah14:33
ltomasboand the loadbalancer14:33
ltomasboand you want to remove the status of the klb?14:33
ltomasboahh, you wanted to delete the loadbalancer on openstack side?14:34
ltomasbodigitalsimboja, ^14:34
digitalsimbojayeah14:34
ltomasbodigitalsimboja, to remove the loadbalancer you need to first remove the members, then the listeners and pools and finaly the loadbalancer14:34
ltomasbobut you can also use the "--cascade" flag14:34
ltomasboand that will remove everything for you14:35
ltomasbotry that14:35
ltomasbodigitalsimboja, note KuryrLB relates to the k8s crd object, the oneyou wanted to delete is the OpenStack loadbalancer14:35
digitalsimbojayeah now I have removed the openstack LB, I need to delete the status on KuryrLB CRD14:36
ltomasbodigitalsimboja, if you do that... you will see that a new loadbalancer will be automatically created by Kuryr and its information will be added to the KLB CRD status section14:37
digitalsimbojawait a minute, by new, the loadbalancer_id will be different?14:38
*** opendevreview has quit IRC14:38
ltomasbodigitalsimboja, of course, you deleted the previous one, so it will be a new one (same service in k8s side, new loadbalancer on openstack side, with the same configuration as the previous one)14:39
digitalsimbojaLet me warp my head around this slowly14:42
digitalsimbojaI deleted the openstack LB14:42
ltomasbodigitalsimboja, yes, and that changes nothing on the K8s side14:43
digitalsimbojabut it got recreated by kuryr with new credentials14:43
ltomasbodigitalsimboja, so, neither kubernetes, nor kuryr knows about it14:43
ltomasbodigitalsimboja, you can check that if you try to curl the svc IP now, it won't work14:43
ltomasbodigitalsimboja, not recreated, unless you remove the status on the CRD14:43
digitalsimboja digitalsimboja, so, neither kubernetes, nor kuryr knows about it: I have a question here14:44
ltomasbowhen you remove the status on the CRD, kuryrloadbalancer handler detects there has been a modification on the CRD, and process the on_present function. Then, as there is no OpenStack loadbalancer with the needed modification, it calls the lbaasv2 driver to create another one, and writes its information on the CRD status section14:44
digitalsimbojaso if I "openstack loadbalancer delete --cascade sunday/demo14:47
digitalsimbojawhat happens on the KuryrLB CRD side and K8s side?14:47
digitalsimbojanothing?14:47
ltomasbonothing14:47
ltomasbotaht is what you need to work on14:47
digitalsimbojaperfect!!!!!!!!!14:48
ltomasboensuring kuryr detects the loadbalancer is missing in openstack side14:48
ltomasboand then triggers the needed actions, which will be as simple as removing the loadbalancer information from the CRD status14:48
digitalsimbojaso until I go manually to affect the status side on the kuryrLb crd?14:48
ltomasbogo and check what happens when you modify that!14:49
digitalsimbojaso my task is for KUryr to detect that openstack resource has been deleted, then go into the CRD status side and delete the members right there which would trigger the recreation14:49
ltomasbodigitalsimboja, we can discuss the specifics to make it better on the next call14:50
ltomasbobut for now you can assume it will be enough to simply delete the complete status section14:50
ltomasbojust set it to {}14:50
digitalsimbojayeah14:50
digitalsimbojaso I need to get the CRD.status and set it to {}14:51
digitalsimbojaJust a little clarity: loadbalancer.py monitors the openstack side of things correct?14:52
maysamsdigitalsimboja: in that file it's specified which resource it's watching14:53
maysamsdigitalsimboja: the sync_lbaas_members method providers more details14:55
ltomasbodigitalsimboja, yep, check what is monitoring/watching (tip: no handlers are watching openstack side of thing, there is no OpenStack API for that)14:55
digitalsimbojaUnderstood!!14:56
maysamsdigitalsimboja: remember that if the docs do have the infos you're looking for, some improvement might be welcomed14:56
digitalsimbojadefinitely14:57
maysamsdigitalsimboja: good, let us know if you find any that needs improvement14:59
maysamsfor example more details about the CRDs15:00
maysamsmaybe you assist with those15:00
maysamsyou can*15:00
digitalsimbojayes sure, there is. I doubt if there is a doc link to the CRDs specifically in details yet?15:01
digitalsimbojahttps://docs.openstack.org/kuryr-kubernetes/latest/specs/rocky/npwg_spec_support.html15:02
maysamsthis is not related to the main crds15:03
digitalsimbojayeah thats the only information I could find yet about the main CRD15:04
maysamshave you checked the architecture of kuryr?15:05
maysamshttps://docs.openstack.org/kuryr-kubernetes/latest/devref/kuryr_kubernetes_design.html?15:06
digitalsimbojaYeah, have checked severaly before now, but I have deeper understanding right now looking at the interconnections15:09
digitalsimbojaI will take a look more intently again15:10
maysamsthis one might also be handy https://docs.openstack.org/kuryr-kubernetes/latest/devref/service_support.html15:11
digitalsimbojaGreat!15:17
*** digitalsimboja has quit IRC15:24
*** digitalsimboja has joined #openstack-kuryr15:24
*** ltomasbo has quit IRC16:05
*** digitalsimboja has quit IRC16:17
*** dulek has quit IRC17:08
*** digitalsimboja has joined #openstack-kuryr18:44
*** digitalsimboja has quit IRC19:00

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