opendevreview | lg.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/+/812263 | 02:20 |
---|---|---|
*** pmannidi is now known as pmannidi|AFK | 04:25 | |
digitalsimboja | Morning all! | 04:39 |
digitalsimboja | unfortunately I am hitting this: https://paste.opendev.org/show/809858/ | 04:39 |
digitalsimboja | When I execute kubeadm init --v=5, : I got this output below: | 04:47 |
digitalsimboja | https://paste.opendev.org/show/809859/ | 04:47 |
gryf | digitalsimboja, 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 |
digitalsimboja | Sorry I missed that: No, Actually, I am using exactly the default local.conf with just few settings of the HOST_IP | 05:30 |
digitalsimboja | let me show | 05:30 |
digitalsimboja | https://paste.opendev.org/show/809860/ | 05:35 |
digitalsimboja | gryf ^ | 05:35 |
gryf | host_ip doesn't seem like the default vbox ip address… | 05:37 |
gryf | for me it is always 10.0.2.15. | 05:38 |
*** pmannidi|AFK is now known as pmannidi | 05:39 | |
gryf | you don't need FLOATING_RANGE=192.168.40.0/24 nor PUBLIC_NETWORK_GATEWAY=192.168.40.1 | 05:41 |
gryf | although you need 'enable_service kubernetes-master', otherwise no kubernets packages would be installed. | 05:42 |
gryf | also. line 151 is by mistake, right? | 05:43 |
digitalsimboja | sure yes, not included | 05:43 |
gryf | digitalsimboja, what method are you using for deploying devstack? | 05:44 |
digitalsimboja | Non-containerized | 05:44 |
digitalsimboja | systemd | 05:45 |
gryf | no, no :) I'm just wondering, how do you deploy it - manually, using vagrant, some custom script? | 05:45 |
digitalsimboja | manually | 05:45 |
gryf | so you create vm from virtualbox, install OS (which version, btw?) git clone devstack, copy local conf and stack it? | 05:46 |
digitalsimboja | sure yes | 05:46 |
gryf | ok, so I'm not sure how you've end up with 10.196.0.57 as your vm address :) | 05:48 |
digitalsimboja | I set the HOST_IP to taht | 05:48 |
digitalsimboja | line 11: https://paste.opendev.org/show/809860/ | 05:49 |
digitalsimboja | so I remove? | 05:51 |
digitalsimboja | and change to 10.0.2.15. | 05:51 |
gryf | I'd check the ip first - perhaps you do have some strange settings :) | 05:55 |
gryf | (strange virtualbox settings) | 05:55 |
digitalsimboja | Number of CPUs set to 1? should be 2? | 06:05 |
gryf | https://github.com/openstack/kuryr-kubernetes/tree/master/contrib/vagrant | 06:06 |
gryf | for virtualbox requirements are similar to vagrant (since by default vagrant is using virtualbox by default) | 06:07 |
gryf | what's your CPU? | 06:07 |
digitalsimboja | https://paste.opendev.org/show/809861/ | 06:23 |
digitalsimboja | gyrf ^ | 06:23 |
gryf | it's under vm, right? | 06:27 |
digitalsimboja | yes sure this is the VM | 06:30 |
gryf | according 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 much | 06:31 |
digitalsimboja | 12GB RAM, I have the VM 6GB | 06:53 |
gryf | a little low, but should be fine. | 07:04 |
gryf | if 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 |
digitalsimboja | I have firefox | 07:09 |
digitalsimboja | So let me give VM 8GB | 07:09 |
gryf | yup. | 07:09 |
gryf | the 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 |
digitalsimboja | ok | 07:16 |
digitalsimboja | gryf: https://paste.opendev.org/show/809863/ | 08:21 |
digitalsimboja | gpg: no valid OpenPGP data found. | 08:21 |
digitalsimboja | I unstacked cleaned and removed OVN | 08:36 |
gryf | eh. | 08:39 |
gryf | there is a quirk. | 08:39 |
gryf | not sure which image do you use. | 08:40 |
gryf | with the operating system. | 08:40 |
gryf | digitalsimboja, ^^ | 08:40 |
digitalsimboja | let me see | 08:41 |
gryf | just ubuntu, ubuntu-server, or maybe cloud image? | 08:41 |
digitalsimboja | ubuntu | 08:41 |
gryf | 20.04 I presume? | 08:42 |
digitalsimboja | focal 20.04 yeah | 08:42 |
gryf | cool. | 08:42 |
gryf | (you don't need desktop distro btw, ubuntu-server is more than enough) | 08:42 |
gryf | you need to remove two packages, which recently are pulled in by some monitoring tools (afairc) | 08:43 |
gryf | just `apt prune python3-pyasn1-modules python3-simplejson`, unstack.sh, and try again. | 08:43 |
digitalsimboja | okay cool | 08:43 |
gryf | digitalsimboja, what is your host operating system, btw? | 08:47 |
digitalsimboja | ubuntu as well | 08:47 |
digitalsimboja | same | 08:47 |
gryf | oh, okay. | 08:49 |
gryf | so you could use a little tool, I was crafted for automation the process of spawning local virtualbox machines. | 08:50 |
gryf | digitalsimboja, https://github.com/gryf/boxpy, and with this yaml: https://paste.opendev.org/show/809864/ you can easily spawn vm. | 08:52 |
digitalsimboja | taking a look...Thanks | 08:52 |
gryf | with 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 in | 08:56 |
gryf | .bashrc. | 08:56 |
gryf | there 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 |
digitalsimboja | Wow great!!! Sure ^ | 09:01 |
digitalsimboja | gryf, I ran into this trying to run the above: https://paste.opendev.org/show/809867/ | 09:47 |
digitalsimboja | https://paste.opendev.org/show/809868/ | 09:48 |
digitalsimboja | gryf ^ | 09:48 |
gryf | you are looking for 'create'. | 09:56 |
gryf | like `python box.py create -c <conf> …`. | 09:56 |
digitalsimboja | ohh! | 09:57 |
gryf | and don't put '@' at the name of the box, i'm not sure if it will explode, or not ;P | 10:00 |
digitalsimboja | I tried with and without putting '@' and nothing happens | 10:02 |
gryf | show me :) | 10:02 |
gryf | you should see something like this: https://paste.opendev.org/ | 10:04 |
gryf | (boxpy is simply an alias for box.py) | 10:04 |
digitalsimboja | https://paste.opendev.org/show/809869/ | 10:05 |
digitalsimboja | I think you posted an empty paste above gryf ^ | 10:05 |
gryf | try: python3 -vvvv ~/boxpy/box.py create -c ~/box.yaml devstack | 10:06 |
gryf | right: https://paste.opendev.org/show/809870/ | 10:07 |
gryf | digitalsimboja, did it work? | 10:20 |
digitalsimboja | not yet | 10:21 |
digitalsimboja | let me show you what I have tried | 10:21 |
gryf | ok. | 10:21 |
digitalsimboja | I tried the above command and it returned this https://paste.opendev.org/show/809871/ | 10:22 |
gryf | what `./box.py list -b` says? | 10:32 |
mmacedo | gryf: it seems digitalsimboja is trying to run those script from inside the virtualbox, is that the idea? | 10:34 |
*** mmacedo is now known as maysams | 10:35 | |
digitalsimboja | Sure I am inside the Virtualbox | 10:35 |
gryf | no! | 10:35 |
gryf | this script is meant to create vm from your host :/ | 10:35 |
gryf | so 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 |
digitalsimboja | so I need to run the script on my host then | 10:36 |
digitalsimboja | ok! cool | 10:36 |
gryf | yes, but! | 10:36 |
maysams | digitalsimboja: yes, make sure to destroy the current VM you have, to clean up space | 10:37 |
digitalsimboja | done that! | 10:37 |
gryf | watch for your resources! you might quickly run out of memory/cpu/storage. | 10:37 |
gryf | if you create too many machines. | 10:37 |
digitalsimboja | There is a culprit below: | 10:46 |
digitalsimboja | https://paste.opendev.org/show/809873/ | 10:46 |
digitalsimboja | line 278 | 10:47 |
gryf | python -V | 10:48 |
gryf | ? | 10:48 |
digitalsimboja | sunday@sunday-Inspiron-5502:~/boxpy$ python -V | 10:50 |
digitalsimboja | Python 2.7.18 | 10:50 |
gryf | py2 is dead already. https://github.com/gryf/boxpy#requirements | 10:51 |
gryf | 3.7 is minimum. I probably need to state that explicitly. | 10:53 |
gryf | digitalsimboja, do you have python3? | 10:54 |
digitalsimboja | yes | 11:06 |
gryf | which version? | 11:07 |
gryf | python3 -V | 11:07 |
digitalsimboja | sunday@sunday-Inspiron-5502:~/boxpy$ python3 -V | 11:07 |
digitalsimboja | Python 3.8.10 | 11:07 |
gryf | awesome. | 11:07 |
gryf | do you have needed programs and those two packages (pyyaml and requests) installed? | 11:08 |
digitalsimboja | I doubt on my host | 11:11 |
gryf | you need to install them before using boxpy. | 11:11 |
gryf | (apt install python3-yaml python3-requests genisoimage …) | 11:13 |
digitalsimboja | done | 11:16 |
gryf | try: python3 -vvvv ~/boxpy/box.py create -c ~/box.yaml devstack | 11:19 |
gryf | given, that you have all the things in same places. | 11:19 |
gryf | otherwise, you need to tweak the paths. | 11:19 |
digitalsimboja | yeah | 11:21 |
digitalsimboja | got this | 11:25 |
digitalsimboja | https://paste.opendev.org/show/809874/ | 11:25 |
digitalsimboja | sunday@sunday-Inspiron-5502:~/boxpy$ python3 -vvvv ~/boxpy/box.py create -c ~/boxpy/box.yaml devstack^C | 11:26 |
digitalsimboja | sunday@sunday-Inspiron-5502:~/boxpy$ ls | 11:26 |
digitalsimboja | box.py box.yaml examples LICENSE README.rst requirements.txt | 11:26 |
digitalsimboja | sunday@sunday-Inspiron-5502:~/boxpy$ ^C | 11:26 |
gryf | okay. | 11:28 |
gryf | what does 'python3 ~/boxpy/box.py list' says? | 11:28 |
digitalsimboja | ALL VMs | 11:32 |
digitalsimboja | sunday@sunday-Inspiron-5502:~/boxpy$ python3 ~/boxpy/box.py list | 11:33 |
digitalsimboja | All VMs: | 11:33 |
gryf | so it was not create anything. | 11:34 |
gryf | do you have command vboxmanage? | 11:34 |
digitalsimboja | let me check | 11:38 |
digitalsimboja | yes! | 11:38 |
digitalsimboja | sunday@sunday-Inspiron-5502:~$ vboxmanage --version | 11:38 |
digitalsimboja | 6.1.26r145957 | 11:38 |
gryf | ok. good. | 11:39 |
gryf | to make things easier make an alias: alias boxpy='python3 ~/boxpy/box.py' | 11:40 |
gryf | and run: boxpy create test | 11:41 |
gryf | and paste me the output after it finish. | 11:41 |
gryf | digitalsimboja, ^^ | 11:41 |
digitalsimboja | ok | 11:42 |
digitalsimboja | Here: https://paste.opendev.org/show/809876/ | 11:43 |
gryf | you forgot ' at the end of alias. | 11:44 |
gryf | ctrl-c | 11:44 |
digitalsimboja | ohh | 11:45 |
digitalsimboja | pulling... | 11:46 |
opendevreview | Merged openstack/kuryr-kubernetes master: Expose critical lbs metrics https://review.opendev.org/c/openstack/kuryr-kubernetes/+/812244 | 13:46 |
opendevreview | Merged openstack/kuryr-kubernetes master: Added metrics for failures caused by OpenStack services. https://review.opendev.org/c/openstack/kuryr-kubernetes/+/812245 | 13:53 |
opendevreview | Merged openstack/kuryr-kubernetes master: Don't change aliveness for certain exceptions. https://review.opendev.org/c/openstack/kuryr-kubernetes/+/812246 | 13:55 |
opendevreview | Maysa de Macedo Souza proposed openstack/kuryr-kubernetes master: Make completed Pods Ports reusable https://review.opendev.org/c/openstack/kuryr-kubernetes/+/811997 | 14:27 |
opendevreview | Maysa de Macedo Souza proposed openstack/kuryr-kubernetes master: Restrict handling of Namespace events https://review.opendev.org/c/openstack/kuryr-kubernetes/+/812588 | 14:34 |
digitalsimboja | Hello gryf: does it take this long to complete the creation of `test`? | 15:25 |
digitalsimboja | On my terminal its still creating | 15:26 |
digitalsimboja | https://paste.opendev.org/show/809886/ | 15:26 |
gryf | digitalsimboja, 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.img | 15:33 |
gryf | you 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.img | 15:36 |
gryf | digitalsimboja, is it growing? | 15:36 |
gryf | (make ls -l couple of times to see) | 15:36 |
digitalsimboja | sure yes | 15:37 |
digitalsimboja | the size is increasing | 15:37 |
gryf | so it's still downloading. | 15:37 |
gryf | hm. 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 |
gryf | or just wait. it's up to you. | 15:45 |
digitalsimboja | its still growing, I have also rebooted but not stopping nor completing | 16:13 |
gryf | digitalsimboja, what did you rebooted? your laptop or vm? | 16:24 |
digitalsimboja | my laptop | 16:24 |
gryf | and it still growing? | 16:25 |
gryf | that's… at least unusual… | 16:25 |
digitalsimboja | Now its stopped, Yeah good | 16:25 |
digitalsimboja | -rw-rw-r-- 1 sunday sunday 567214080 Oct 5 02:13 ubuntu-20.04-server-cloudimg-amd64.img | 16:25 |
gryf | ok. | 16:26 |
gryf | so you can try to build vm again. | 16:26 |
gryf | let'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 |
digitalsimboja | ok | 16:36 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!