Friday, 2021-10-08

opendevreviewlg.yue proposed openstack/kuryr-kubernetes master: For containerized cni_ds set mountPropagation=HostToContainer to let containers aware of the host's netns changes  https://review.opendev.org/c/openstack/kuryr-kubernetes/+/81226302:20
*** pmannidi is now known as pmannidi|AFK04:25
digitalsimbojaMorning all!04:39
digitalsimbojaunfortunately I am hitting this: https://paste.opendev.org/show/809858/04:39
digitalsimbojaWhen I execute kubeadm init --v=5, : I got this output below:04:47
digitalsimbojahttps://paste.opendev.org/show/809859/04:47
gryfdigitalsimboja, morning. I think, I didn't get the answer for my question from couple of days ago, so again: do you need anything extra in your devstack env, which isn't included in the standard configuration (kuryr-kubernetes/devstack/local.conf.sample)?05:29
digitalsimbojaSorry I missed that: No, Actually, I am using exactly the default local.conf with just few settings of the HOST_IP 05:30
digitalsimbojalet me show05:30
digitalsimbojahttps://paste.opendev.org/show/809860/05:35
digitalsimbojagryf ^05:35
gryfhost_ip doesn't seem like the default vbox ip address…05:37
gryffor me it is always 10.0.2.15.05:38
*** pmannidi|AFK is now known as pmannidi05:39
gryfyou don't need FLOATING_RANGE=192.168.40.0/24 nor PUBLIC_NETWORK_GATEWAY=192.168.40.105:41
gryfalthough you need 'enable_service kubernetes-master', otherwise no kubernets packages would be installed.05:42
gryfalso. line 151 is by mistake, right?05:43
digitalsimbojasure yes, not included05:43
gryfdigitalsimboja, what method are you using for deploying devstack?05:44
digitalsimbojaNon-containerized05:44
digitalsimbojasystemd05:45
gryfno, no :) I'm just wondering, how do you deploy it - manually, using vagrant, some custom script?05:45
digitalsimbojamanually05:45
gryfso you create vm from virtualbox, install OS (which version, btw?) git clone devstack, copy local conf and stack it?05:46
digitalsimbojasure yes05:46
gryfok, so I'm not sure how you've end up with 10.196.0.57 as your vm address :)05:48
digitalsimbojaI set the HOST_IP to taht05:48
digitalsimbojaline 11: https://paste.opendev.org/show/809860/05:49
digitalsimbojaso I remove?05:51
digitalsimbojaand change to 10.0.2.15.05:51
gryfI'd check the ip first - perhaps you do have some strange settings :)05:55
gryf(strange virtualbox settings)05:55
digitalsimbojaNumber of CPUs set to 1? should be 2?06:05
gryfhttps://github.com/openstack/kuryr-kubernetes/tree/master/contrib/vagrant06:06
gryffor virtualbox requirements are similar to vagrant (since by default vagrant is using virtualbox by default)06:07
gryfwhat's your CPU?06:07
digitalsimbojahttps://paste.opendev.org/show/809861/06:23
digitalsimbojagyrf ^06:23
gryfit's under vm, right?06:27
digitalsimbojayes sure this is the VM06:30
gryfaccording to this: https://www.intel.com/content/www/us/en/products/sku/208658/intel-core-i51135g7-processor-8m-cache-up-to-4-20-ghz/specifications.html, you can easly give vm 4 cores. how many memory do you have on your physical machine?06:31
gryf*how much06:31
digitalsimboja12GB RAM, I have the VM 6GB06:53
gryfa little low, but should be fine.07:04
gryfif you experience extensive usage of swap, you might want to give vm even 8GB. unless your host isn't demanding too much for some processes (I'm looking at you, chrome).07:06
digitalsimbojaI have firefox07:09
digitalsimbojaSo let me give VM 8GB07:09
gryfyup.07:09
gryfthe only thing you need to change/add to the sample config is just HOST_IP. you could add it to .bashrc instead, btw.07:10
digitalsimbojaok07:16
digitalsimbojagryf: https://paste.opendev.org/show/809863/08:21
digitalsimbojagpg: no valid OpenPGP data found.08:21
digitalsimbojaI unstacked cleaned and removed OVN08:36
gryfeh.08:39
gryfthere is a quirk.08:39
gryfnot sure which image do you use.08:40
gryfwith the operating system.08:40
gryfdigitalsimboja, ^^08:40
digitalsimbojalet me see08:41
gryfjust ubuntu, ubuntu-server, or maybe cloud image?08:41
digitalsimbojaubuntu08:41
gryf20.04 I presume?08:42
digitalsimbojafocal 20.04 yeah08:42
gryfcool.08:42
gryf(you don't need desktop distro btw, ubuntu-server is more than enough)08:42
gryfyou need to remove two packages, which recently are pulled in by some monitoring tools (afairc)08:43
gryfjust `apt prune python3-pyasn1-modules python3-simplejson`, unstack.sh, and try again.08:43
digitalsimbojaokay cool08:43
gryfdigitalsimboja, what is your host operating system, btw?08:47
digitalsimbojaubuntu as well08:47
digitalsimbojasame08:47
gryfoh, okay.08:49
gryfso you could use a little tool, I was crafted for automation the process of spawning local virtualbox machines.08:50
gryfdigitalsimboja, https://github.com/gryf/boxpy, and with this yaml: https://paste.opendev.org/show/809864/ you can easily spawn vm.08:52
digitalsimbojataking a look...Thanks08:52
gryfwith command `python box.py -c path/to/yaml/pasted/above.yaml name_of_the_vm` it will download ubuntu-cloud image, configure vm as in boxpy_data section, remove those two problematic packages, and also snap, since it just eating resources, download kuryr sample local.conf, clone devstack and place the local.conf in it. it also takes care about host_ip by putting it in08:56
gryf.bashrc.08:56
gryfthere are few dependences, which can be installed via apt - python3-yaml, python3-requests, genisoimage, wget (you probably have it already) and qemu-utils. sha256sum should be already installed.09:01
digitalsimbojaWow great!!! Sure ^09:01
digitalsimbojagryf, I ran into this trying to run the above: https://paste.opendev.org/show/809867/09:47
digitalsimbojahttps://paste.opendev.org/show/809868/09:48
digitalsimbojagryf ^09:48
gryfyou are looking for 'create'.09:56
gryflike `python box.py create -c <conf> …`.09:56
digitalsimbojaohh!09:57
gryfand don't put '@' at the name of the box, i'm not sure if it will explode, or not ;P10:00
digitalsimbojaI tried with and without putting '@' and nothing happens10:02
gryfshow me :)10:02
gryfyou should see something like this: https://paste.opendev.org/10:04
gryf(boxpy is simply an alias for box.py)10:04
digitalsimbojahttps://paste.opendev.org/show/809869/10:05
digitalsimbojaI think you posted an empty paste above gryf ^10:05
gryftry: python3 -vvvv ~/boxpy/box.py create -c ~/box.yaml devstack10:06
gryfright: https://paste.opendev.org/show/809870/10:07
gryfdigitalsimboja, did it work?10:20
digitalsimbojanot yet10:21
digitalsimbojalet me show you what I have tried10:21
gryfok.10:21
digitalsimbojaI tried the above command and it returned this https://paste.opendev.org/show/809871/10:22
gryfwhat `./box.py list -b` says?10:32
mmacedogryf: it seems digitalsimboja is trying to run those script from inside the virtualbox, is that the idea?10:34
*** mmacedo is now known as maysams10:35
digitalsimbojaSure I am inside the Virtualbox10:35
gryfno!10:35
gryfthis script is meant to create vm from your host :/10:35
gryfso the idea is to: run boxpy create…, that will produce and configure vm, than you'll get the command to ssh to it.10:36
digitalsimbojaso I need to run the script on my host then10:36
digitalsimbojaok! cool10:36
gryfyes, but!10:36
maysamsdigitalsimboja: yes, make sure to destroy the current VM you have, to clean up space10:37
digitalsimbojadone that!10:37
gryfwatch for your resources! you might quickly run out of memory/cpu/storage.10:37
gryfif you create too many machines.10:37
digitalsimbojaThere is a culprit below:10:46
digitalsimbojahttps://paste.opendev.org/show/809873/10:46
digitalsimbojaline 27810:47
gryfpython -V10:48
gryf?10:48
digitalsimbojasunday@sunday-Inspiron-5502:~/boxpy$ python -V10:50
digitalsimbojaPython 2.7.1810:50
gryfpy2 is dead already. https://github.com/gryf/boxpy#requirements10:51
gryf3.7 is minimum. I probably need to state that explicitly.10:53
gryfdigitalsimboja, do you have python3?10:54
digitalsimbojayes11:06
gryfwhich version?11:07
gryfpython3 -V11:07
digitalsimbojasunday@sunday-Inspiron-5502:~/boxpy$ python3 -V11:07
digitalsimbojaPython 3.8.1011:07
gryfawesome.11:07
gryfdo you have needed programs and those two packages (pyyaml and requests) installed?11:08
digitalsimbojaI doubt on my host11:11
gryfyou need to install them before using boxpy.11:11
gryf(apt install python3-yaml python3-requests genisoimage …)11:13
digitalsimbojadone11:16
gryftry: python3 -vvvv ~/boxpy/box.py create -c ~/box.yaml devstack11:19
gryfgiven, that you have all the things in same places.11:19
gryfotherwise, you need to tweak the paths.11:19
digitalsimbojayeah11:21
digitalsimbojagot this11:25
digitalsimbojahttps://paste.opendev.org/show/809874/11:25
digitalsimbojasunday@sunday-Inspiron-5502:~/boxpy$ python3 -vvvv ~/boxpy/box.py create -c ~/boxpy/box.yaml devstack^C11:26
digitalsimbojasunday@sunday-Inspiron-5502:~/boxpy$ ls11:26
digitalsimbojabox.py  box.yaml  examples  LICENSE  README.rst  requirements.txt11:26
digitalsimbojasunday@sunday-Inspiron-5502:~/boxpy$ ^C11:26
gryfokay.11:28
gryfwhat does 'python3 ~/boxpy/box.py list' says?11:28
digitalsimbojaALL VMs11:32
digitalsimbojasunday@sunday-Inspiron-5502:~/boxpy$ python3 ~/boxpy/box.py list11:33
digitalsimbojaAll VMs:11:33
gryfso it was not create anything.11:34
gryfdo you have command vboxmanage?11:34
digitalsimbojalet me check11:38
digitalsimbojayes!11:38
digitalsimbojasunday@sunday-Inspiron-5502:~$ vboxmanage --version11:38
digitalsimboja6.1.26r14595711:38
gryfok. good.11:39
gryfto make things easier make an alias: alias boxpy='python3 ~/boxpy/box.py'11:40
gryfand run: boxpy create test11:41
gryfand paste me the output after it finish.11:41
gryfdigitalsimboja, ^^11:41
digitalsimbojaok11:42
digitalsimbojaHere: https://paste.opendev.org/show/809876/11:43
gryfyou forgot ' at the end of alias.11:44
gryfctrl-c11:44
digitalsimbojaohh11:45
digitalsimbojapulling...11:46
opendevreviewMerged openstack/kuryr-kubernetes master: Expose critical lbs metrics  https://review.opendev.org/c/openstack/kuryr-kubernetes/+/81224413:46
opendevreviewMerged openstack/kuryr-kubernetes master: Added metrics for failures caused by OpenStack services.  https://review.opendev.org/c/openstack/kuryr-kubernetes/+/81224513:53
opendevreviewMerged openstack/kuryr-kubernetes master: Don't change aliveness for certain exceptions.  https://review.opendev.org/c/openstack/kuryr-kubernetes/+/81224613:55
opendevreviewMaysa de Macedo Souza proposed openstack/kuryr-kubernetes master: Make completed Pods Ports reusable  https://review.opendev.org/c/openstack/kuryr-kubernetes/+/81199714:27
opendevreviewMaysa de Macedo Souza proposed openstack/kuryr-kubernetes master: Restrict handling of Namespace events  https://review.opendev.org/c/openstack/kuryr-kubernetes/+/81258814:34
digitalsimbojaHello gryf: does it take this long to complete the creation of `test`?15:25
digitalsimbojaOn my terminal its still creating15:26
digitalsimbojahttps://paste.opendev.org/show/809886/15:26
gryfdigitalsimboja, depends of your connection.15:33
gryf ~/.cache $ ls -l ubuntu-20.04-server-cloudimg-amd64.img 15:33
gryf-rw-r--r-- 1 gryf gryf 567214080 10-05 03:13 ubuntu-20.04-server-cloudimg-amd64.img15:33
gryfyou might want to check the size, and if it's growing. if it stalled, than just ctrl-c, wait for the clean up and try again.15:35
digitalsimboja-rw-rw-r-- 1 sunday sunday 330727424 Oct  8 16:35 ubuntu-20.04-server-cloudimg-amd64.img15:36
gryfdigitalsimboja, is it growing?15:36
gryf(make ls -l couple of times to see)15:36
digitalsimbojasure yes15:37
digitalsimbojathe size is increasing15:37
gryfso it's still downloading.15:37
gryfhm. you could even try stop the boxpy (by hiting ctrl-c) and download it manually by using "wget -c https://cloud-images.ubuntu.com/releases/focal/release/ubuntu-20.04-server-cloudimg-amd64.img", in the ~/.cache directory, so it will continue downloading and you'll gain the progress info.15:44
gryfor just wait. it's up to you.15:45
digitalsimbojaits still growing, I have also rebooted but not stopping nor completing16:13
gryfdigitalsimboja, what did you rebooted? your laptop or vm?16:24
digitalsimbojamy laptop16:24
gryfand it still growing?16:25
gryfthat's… at least unusual…16:25
digitalsimbojaNow its stopped, Yeah good16:25
digitalsimboja-rw-rw-r--   1 sunday sunday 567214080 Oct  5 02:13 ubuntu-20.04-server-cloudimg-amd64.img16:25
gryfok.16:26
gryfso you can try to build vm again.16:26
gryflet's hope image wasn't corrupted, otherwise you need to download it again (you can use the wget command from above in that case).16:27
digitalsimbojaok16:36

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