Friday, 2024-07-05

*** thuvh1 is now known as thuvh03:47
mnasiadkammalchuk: no problem05:13
opendevreviewMichal Nasiadka proposed openstack/ansible-collection-kolla master: Fix etc hosts generation for interfaces with dashes  https://review.opendev.org/c/openstack/ansible-collection-kolla/+/92354405:24
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: Fix prechecks for interfaces with dashes  https://review.opendev.org/c/openstack/kolla-ansible/+/92247805:24
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: Fix prechecks for interfaces with dashes  https://review.opendev.org/c/openstack/kolla-ansible/+/92247805:25
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: Bump Ansible versions to 2.16 and 2.17  https://review.opendev.org/c/openstack/kolla-ansible/+/92174305:27
opendevreviewMichal Nasiadka proposed openstack/ansible-collection-kolla master: Fix etc hosts generation for interfaces with dashes  https://review.opendev.org/c/openstack/ansible-collection-kolla/+/92354407:00
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: CI: test interface names with dashes  https://review.opendev.org/c/openstack/kolla-ansible/+/79454507:01
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: Bump Ansible versions to 2.16 and 2.17  https://review.opendev.org/c/openstack/kolla-ansible/+/92174307:32
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: Fix prechecks for interfaces with dashes  https://review.opendev.org/c/openstack/kolla-ansible/+/92247807:33
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: CI: test interface names with dashes  https://review.opendev.org/c/openstack/kolla-ansible/+/79454507:33
PrzemekKGuys any fiixes in kolla-ansible for https://bugs.launchpad.net/nova/+bug/2059809 ?07:52
mnasiadkaNo, that's not kolla-ansible bug08:00
sylvrGood morning #openstack-kolla08:28
jovialHey sylvr08:28
sylvrjovial: did you get my message about the possible bug of cloud-utils-growpart missing ?08:31
opendevreviewWill Szumski proposed openstack/kayobe master: Support running without root privileges  https://review.opendev.org/c/openstack/kayobe/+/92343008:35
jovialslyvr: Sorry, I missed that one. Was it a case of missing that package?08:45
sylvrjovial: yes ! do you want me to create an issue/fill a but report on it ? I'm currently starting from scratch on an improved infrastructure and v2024.1, I can wait to encounter the bug again before submitting anything if you'd like08:57
opendevreviewSylvère Kanapa proposed openstack/kayobe master: Add missing "cloud-init" as "cloud-init-datasource" don't have dependency on it.  https://review.opendev.org/c/openstack/kayobe/+/92279508:59
jovialslyvr: Good call with the updated patch - thanks for that. Reminds me that we need to build and test the images in CI :)09:50
jovialslyvr: For the extra package, you could include it in your current patch if you liked or feel free to submit a new one09:53
opendevreviewWill Szumski proposed openstack/kayobe master: Add missing "cloud-init" as "cloud-init-datasource" don't have dependency on it.  https://review.opendev.org/c/openstack/kayobe/+/92279509:54
sylvrjovial: yeah I think I answered but never sent the answer (it stayed in draft), I think I'm starting to understand how to use git-review09:55
sylvrwell, I think I'll do another patch, as I'm not sure it wasn't cause by some of my misconfiguration ^^09:56
sylvrcaused*09:56
jovialSure - really appreciate the contributions - thanks :)09:58
opendevreviewWill Szumski proposed openstack/kayobe master: Bump up Ansible supported versions to 9.x/10.x  https://review.opendev.org/c/openstack/kayobe/+/92355610:22
opendevreviewMichal Nasiadka proposed openstack/kayobe master: arista-switch: Fix eos_config call  https://review.opendev.org/c/openstack/kayobe/+/92263111:44
opendevreviewMark Goddard proposed openstack/kolla-ansible master: Add precheck for Horizon config file renames in Caracal  https://review.opendev.org/c/openstack/kolla-ansible/+/92355811:44
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: Fix prechecks for interfaces with dashes  https://review.opendev.org/c/openstack/kolla-ansible/+/92247811:56
mnasiadkafrickler: https://review.opendev.org/c/openstack/ansible-collection-kolla/+/923544 and https://review.opendev.org/c/openstack/kolla-ansible/+/922478 - can you have a look? We ned those backported in for making the CI patch pass https://review.opendev.org/c/openstack/kolla-ansible/+/79454511:58
sylvrquick question : when configuring a seed VM (with the hypervisor being the kayobe-control-host) do I need to manually create the libvirt network or is it part of the kayobe configuration ?12:41
sylvrI added mgmt_libvirt_network_name: mgmt in networks.yml as https://docs.openstack.org/kayobe/latest/configuration/reference/network.html12:42
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: CI: test interface names with dashes  https://review.opendev.org/c/openstack/kolla-ansible/+/79454512:58
jovialsylvr: kayobe would normally create the libvirt networks for you. IIRC it is all determined by which networks you map to the seed; then you need to make sure the matching interfaces on the hypervisor use linux bridges13:16
sylvrjovial: so the bridges have to be created manually ?13:17
jovialsylvr: kayobe can do that for you. You need something like mgmt_bridge_ports and mgt_interface: brmgmt to be defined on the seed hypervisor13:18
sylvrso inventory/group_vars/seed-hypervisor/network-interfaces ?13:19
jovialmgmt_interface*13:19
jovial^ prefix needs to match13:19
jovialyes, in inventory/group_vars/seed-hypervisor/network-interfaces13:20
opendevreviewMichal Nasiadka proposed openstack/kayobe master: arista-switch: Fix eos_config call  https://review.opendev.org/c/openstack/kayobe/+/92263113:21
sylvrjovial: Thanks ! I'm going to look into that13:21
jovialslyvr: A useful command to debug what it will configure is: `kayobe configuration dump --limit seed-hypervisor --var-name seed_hypervisor_libvirt_networks`13:23
sylvrso "mgmt_bridge_ports: brmgmt" means create a bridge named 'brmgmt' on interface 'mgmt' right ?13:23
jovialso I think you want something like: `mgmt_bridge_ports: ["eth0"]`13:24
jovialbut yeah, `mgmt_interface: brmgmt` defines the name of the linux bridge that it will create13:25
sylvroooh okay13:25
sylvrI'm starting to get it13:25
jovialTook me a little while to grasp at first too, but the network configuration is quite powerful :)13:26
sylvryeah, I see that ^^13:30
sylvrI might start to contribute to the doc, I found it a bit hard to follow/understand sometimes, and I think some exemple would be great13:33
jovialThat would be very much appreciated. Sometimes you need someone who has never used it before to point out the confusing bits.13:34
sylvractually, I need to write a memoir so maybe if I write it good enough it might give an exemple of deployment?13:34
jovialsounds like a great idea - a kind of how to deploy a cloud from scratch kind of guide13:36
sylvryes13:36
sylvrI'll send you an email with more info (where to see my memoir, kayobe conf etc etc) if you'd like13:40
jovialI'd certainly welcome something like that as an addition in: https://docs.openstack.org/kayobe/latest/resources.html or as a guide in the kayobe docs itself if you don't mind making it public.13:45
sylvrjovial: yes that's one of the exemple I check from time to times, but it differs a bit too much from my deployment (I remember another exemple of deployment, but I think it was removed from the doc with 2023.2 or 2024.1)13:49
sylvrand yes I don't mind making it public as it already the case : https://forge.univ-lyon1.fr/p1919734/kayobe-config (the branch I'm currently working on is "deployment", I didn't push the diagrams yet)13:51
sylvrokay, I'm still having issue with my config as it fail at "bounce networkmanager device" : https://pastebin.com/W2gGmRRT13:53
jovialAnd is the code pushed to some branch in that repo?13:55
jovialAre you trying to use eno3 as a bridge port in brmgmt? Kind of looks like the link is down.13:56
sylvrI'm going to push right now13:59
sylvrwell, I'm not sure of what I'm doing through kayobe, but I think I know what I'm supposed to be doing in my config14:02
sylvrand yes eno3 on the seed-hypervisor is the interface of the out-of-band network14:03
sylvrjovial: the error is different now14:06
jovialFirst thing I'd check is what it has templated out to /etc/NetworkManager/system-connections. Do you see type bridge in brmgmt.nmconnection?14:07
jovialslyvr: What are you seeing now?14:07
sylvrjovial : https://pastebin.com/tbN4GxDx14:09
sylvrjovial : the error is similar, but I changed the content of networks.yml after the first error I send and before pushing14:10
sylvr"mgmt_libvirt_network_name: brmgmt" was "mgmt_libvirt_network_name: mgmt" I'm not sure it changed anything14:11
jovialsylvr: I wonder if that eno1-161b7efa-1183-4385-8955-349d81326ebb.nmconnection is conflicting with eno1.nmconnection 14:12
sylvrjovial : same14:12
jovialCould you try moving that file out of that directory?14:13
sylvryup, I rm'ed it14:13
jovialAlso could you show the contents of brmgmt.nmconnection and eno1.nmconnection14:13
sylvrjovial : here you go ! https://pastebin.com/NyiB1BpC14:16
jovialmgmt_libvirt_network_name is going to be what appears in virsh net-list by the way14:17
sylvryeah okay, I'll revert it to before then, wasn't sure it didn't cause any misconfiguration before ^^ thansk14:18
jovialOK, that all looks good. Could you try `kayobe seed hypervisor host configure -t network` again?14:18
jovialAlso, do we know where eno1-161b7efa-1183-4385-8955-349d81326ebb.nmconnection came from? Was that configured by the installer maybe?14:20
sylvrI think it was me, I had an issue where it looked for 192.168.1.1 on the external network ^^ I remember fixing it by manually configuring it...14:21
sylvrjovial : still the same error https://pastebin.com/tUHJiAFB14:23
jovialand what do you get for `ip link show eno1`?14:25
sylvr4: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 100014:27
sylvr    link/ether b8:ca:3a:5b:f6:70 brd ff:ff:ff:ff:ff:ff14:27
sylvr    altname enp1s0f014:27
jovialWeird - it doesn't have a master. I'm wondering if we need to remove eno1.nmconnection and eno3.nmconnection to get it to bounce those interfaces too14:31
sylvrwell, I'm going to try14:31
sylvrseems it worked I'm at stackhpc.timezone14:34
jovialNice :)14:35
sylvryup, now I have this new error : https://pastebin.com/izewPPsm14:35
sylvrand I'm not sure how or why, as kayobe should have created the missing libvirt network?14:35
jovialKind of looking like it was expecting a dict and we gave it a string some how14:36
sylvroh yeah that's my type of mistake14:37
jovialI think the mistake is here: https://forge.univ-lyon1.fr/p1919734/kayobe-config/-/blob/deployment/etc/kayobe/seed-hypervisor.yml?ref_type=heads#L9814:41
jovialTry just not defining that variable14:42
jovialIf you do manually define it, then it needs be a list of dicts with the keys: name, mode, bridge14:42
sylvrjovial : thanks ! 14:43
sylvryou saved me a looot of time14:44
jovialAlso, could you create a bug report (https://bugs.launchpad.net/kayobe) for the interface bouncing? Seems like it could be made to be more robust.14:45
sylvryes!14:45
jovialNo worries, happy to help :)14:45
sylvrjovial : it's working now, I'm going to stop for the week-end and leave soon, what title should I put for the bug report ? I'm not even sure I understand why it failed ^^14:50
jovialslyvr: Something like: "Kayobe fails to bounce slave interfaces when configuring a bridge"14:53
jovialand have a good weekend :)14:54
sylvrjovial: Done! I added you to the bug subscribe list. Again, thanks a lot and see you next week ! Good weekend to you too !14:56
jovialmarvelous, thanks again, and see you next week14:57
sylvrHi, I'm back sooner I wanted to get going and I'm having issue provisioning the seed vm18:15
sylvrI think I misconfigured something18:15
sylvrit fail while trying to ssh the vm, I checked with virsh and the vm is running, looking at logs in /var/log/libvirt-consoles/seed-bifrost-console.log I see what looks like a iPXE boot loop18:17
jovialsylvr: Can you try and apply this patch: https://review.opendev.org/c/openstack/kayobe/+/92166019:12
jovialsylvr, In your kayobe checkout: git fetch https://review.opendev.org/openstack/kayobe refs/changes/60/921660/23 && git cherry-pick FETCH_HEAD19:13
jovialthen with you kayobe virtualenv activated:  `pip install -e .`19:13
jovialYou then need, `kayobe control host upgrade` and to set `seed_vm_boot_firmware: efi`. Then deprovision and reprovision the seed.19:14
sylvrjovial: I'm on it19:17
sylvrI guess "seed_vm_boot_firmware: efi" was supposed to be in my seed-vm.yml file ?19:18
sylvrjovial: yep, that fixed it (at least this time I'm booting rockylinux)19:20
sylvrjovial: thanks! :D19:23

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