Monday, 2022-02-07

*** spotz is now known as Guest204001:32
*** spotz_ is now known as spotz01:32
opendevreviewNeil Hanlon proposed openstack/openstack-ansible master: WIP - Add support for running on Rocky Linux  https://review.opendev.org/c/openstack/openstack-ansible/+/82357304:29
jrossergood morning07:42
jrossernew dashboard looks tidy07:42
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-lxc_container_create stable/victoria: Remove legacy centos-8 jobs  https://review.opendev.org/c/openstack/openstack-ansible-lxc_container_create/+/82796007:45
noonedeadpunk\o/08:03
noonedeadpunkwell the only issue with backports candidates is that I dunno how to hide ones that already got cherry-picked08:03
noonedeadpunkthe nice thing is that with infra hint I was able to re-arrange all osa repos as "child" projects in gerrit, so now `parentproject:openstack/openstack-ansible` works as a charm and no need in nasty stuff08:05
jrosserthat makes it much easier08:05
jrosseri think we are only one or two patches from finishing the centos-8 remove08:06
noonedeadpunkhuh? I thought we merged everything...08:15
noonedeadpunkAh, we just missed topic on them :)08:15
jrosseryou can check on here also whats left https://zuul.openstack.org/jobs08:20
opendevreviewMerged openstack/openstack-ansible-plugins master: Convert infra-journal-remote playbook to role  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/82473109:12
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Move infra-journal-remote logic to its role  https://review.opendev.org/c/openstack/openstack-ansible/+/82473409:28
opendevreviewMerged openstack/openstack-ansible-lxc_container_create stable/victoria: Remove legacy centos-8 jobs  https://review.opendev.org/c/openstack/openstack-ansible-lxc_container_create/+/82796009:30
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-lxc_hosts stable/xena: Replace CentOS 8 with Stream jobs  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/82809509:41
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-lxc_hosts stable/wallaby: Replace CentOS 8 with Stream jobs  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/82796609:42
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-lxc_hosts stable/victoria: Drop CentOS 8 jobs  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/82809609:43
noonedeadpunkseems these are last ones ^09:43
jrosseroh dear10:04
jrosserwidespread centos-8-stream failure fatal: [aio1]: FAILED! => {"changed": false, "cmd": "ifup lxcbr0", "msg": "[Errno 2] No such file or directory: b'ifup': b'ifup'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}10:05
opendevreviewMerged openstack/openstack-ansible-os_gnocchi master: Remove apache to uwsgi migration tasks and variables  https://review.opendev.org/c/openstack/openstack-ansible-os_gnocchi/+/82743910:29
*** dviroel|out is now known as dviroel|river10:58
*** dviroel|river is now known as dviroel|rover10:58
*** dviroel|rover is now known as dviroel|ruck11:01
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-lxc_hosts master: Ensure that the legacy network-scripts package is present  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/82811311:32
jrosser^ guesswork - lets see what happens.....11:35
noonedeadpunkI wonder if it's easier just to replace that with `ip link set {{ lxc_net_bridge } up`11:38
noonedeadpunkAs ifupdown is non default for any OS as of today11:38
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-lxc_hosts master: Clean up bionic variables  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/82811411:44
noonedeadpunkbtw would be awesome to get this rebased and merged https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/73122811:46
jrosseroh right yes there really is some old stuff to clean up there12:03
*** dviroel|ruck is now known as dviroel|ruck|afk12:23
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-lxc_hosts master: Replace ifupdown with native ip-link  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/82812012:30
jonheri just deployed barbican in wallaby and got some errors loading the horizon panel, so i asked in #openstack-barbican and apparently the current upstream code for barbican-ui is just a template and not something that's funcitoning, should we remove barbican-ui from OSA to avoid confusion for others?13:16
jonherapparently there has been a review open for quite some time now: https://review.opendev.org/c/openstack/barbican-ui/+/702399 to add basic functionality, but no reviewers that know enough horizon13:17
jrosserandrewbonney: https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/82811313:27
noonedeadpunkjonher: mayabe we just set `horizon_enable_barbican_ui: False` here regardless of barbican group length? https://opendev.org/openstack/openstack-ansible-os_horizon/src/branch/master/defaults/main.yml#L29813:40
noonedeadpunkwith comment why we're doing this13:41
jonhersure, that seems reasonable13:42
noonedeadpunkwant to push a patch for that?:)13:43
jonherwill do :) 13:43
*** dviroel|ruck|afk is now known as dviroel|ruck14:03
opendevreviewJonathan Herlin proposed openstack/openstack-ansible-os_horizon master: Disable barbican-ui dashboard  https://review.opendev.org/c/openstack/openstack-ansible-os_horizon/+/82815414:05
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-lxc_hosts master: Clean up bionic variables  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/82811414:41
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-lxc_hosts master: Replace ifupdown with native ip-link  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/82812014:42
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-lxc_hosts master: Replace ifupdown with native ip-link  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/82812014:42
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-lxc_hosts master: Replace ifupdown with native ip-link  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/82812014:44
NeilHanlonhooo.. that was a weekend of fun getting an AIO running on Rocky linux lol14:44
noonedeadpunkwas it that bad?14:45
NeilHanloni don't even know why i hit so many roadblocks, somehow I feel it's something about me.. I kept running into missing repositories inside containers, but I think much of that was from the removal of the centos-8 data from openstack-ansible-lxc_hosts / lxc_container_create14:46
NeilHanlonsome of it is definitely just learning pains of me getting more comfortable with all the pieces, which is necessary, ultimately 14:49
noonedeadpunkyou could spawn metal aio only, not to care about containers14:50
noonedeadpunkwe usually get metal working before even starting LXC for new distros14:50
noonedeadpunkand it's all about jsut replacing s/lxc/metal/ in $SCENARIO14:51
NeilHanloni'll spin one up in metal mode today, see if that flies any better14:51
spatelNeilHanlon do we have LXC offical image for rocky ? 14:52
spatelnot lxc but disk image to spin up lxc container14:52
NeilHanloncannonical builds ones here: https://us.lxd.images.canonical.com/14:53
NeilHanloni'm awaiting this to be merged for DIB https://review.opendev.org/c/openstack/diskimage-builder/+/82595714:53
noonedeadpunkspatel: we don't actually need this? as we build using dnf nowadays14:54
noonedeadpunkhttps://opendev.org/openstack/openstack-ansible-lxc_hosts/src/branch/master/vars/redhat.yml#L1614:55
noonedeadpunkRocky totally needs some different command14:56
NeilHanlonso that's an interesting thing, too... that command isn't run until after it makes images 🤔14:56
spatelnoonedeadpunk really? dnf building image.. how..14:58
NeilHanlonit's been possible for a long time, basically installing into a chroot or jail14:58
NeilHanlonyou can "technically" do it on bare metal, too. but like.. probably dont :)14:59
spateli know you can install package in chroot jail using yum/dnf but i didn't know we are also doing that now. good to know. 15:00
noonedeadpunkit was always a pita to maintain and retrieve from lxc and issues with these images performance raised this and then15:03
noonedeadpunkSo it's more reliable to build chroot, considering we need the most lightweight thing possilbe15:04
*** dviroel|ruck is now known as dviroel|ruck|lunch15:13
spatel+115:24
jrosserNeilHanlon: do you want to work in parallel on this - there must be other patches to roles outside openstack-ansible repo that are needed?15:27
jrosseri can follow along in a rocky vm?15:27
NeilHanlonSure that'd be great, I appreciate it. I'm doing a run through now with metal instead of LXC to see how that goes15:33
NeilHanlonbut yes, I think it will be a couple of different projects that need coordination and I'd appreciate the assist on that15:33
jrossersure, i'm just grabbing the rocky-8 cloud image and will play-along15:37
NeilHanlonThe major things I (think) I had to do were: Add PowerTools back in lxc_hosts' lxc_install_dnf [1] ; remove futures & pypowervm from os_nova's constraints [2]; and change some LXC settings [3]. As well as compiling python3-lxc for python3.8.15:39
NeilHanlon[1] http://git.shrug.pw:3000/advancedla/infra/src/branch/main/ansible/playbooks/files/lxc_install_dnf.yml#L32-L39 ; [2] http://git.shrug.pw:3000/advancedla/infra/src/branch/main/ansible/playbooks/files/os_nova.patch ; [3] http://git.shrug.pw:3000/advancedla/infra/src/branch/main/ansible/playbooks/files/user_lxc.yml15:39
jrosserhave you got an approach yet for how to do rocky specific vars? {role}/vars/rocky-8.yml ?15:42
jrosseroh interesting on the compile lxc for python3.815:43
jrosserthere are some new interesting features in ansible which might make that not needed15:43
*** akahat|rover is now known as akahat|dinner15:43
NeilHanlonnot exactly, i was hoping most of them would be able to just end up being 'redhat' vars, since they should theoretically be the same anyways15:52
jrosserthere is probably some consolidation we can do here as well15:54
*** dviroel|ruck|lunch is now known as dviroel|ruck16:09
jrosserNeilHanlon: did you have this go wrong? https://github.com/openstack/openstack-ansible/blob/master/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml#L116-L12116:24
jrosseri had to add vars: ansible_python_interpreter='/usr/bin/python3' to that task in order to make it find the selinux python bindings16:24
jrosserwhich is a bit hacky, but also we have this in progress https://review.opendev.org/c/openstack/openstack-ansible/+/82755616:25
NeilHanloni disable selinux outright first, so I guess I'm not hitting that bit16:26
jrosseralso https://paste.opendev.org/show/812560/16:27
opendevreviewDamian DÄ…browski proposed openstack/openstack-ansible-galera_server master: Improve incremental backups rotation in mariabackup script  https://review.opendev.org/c/openstack/openstack-ansible-galera_server/+/82817016:31
opendevreviewDamian DÄ…browski proposed openstack/openstack-ansible-galera_server master: Improve incremental backups rotation in mariabackup script  https://review.opendev.org/c/openstack/openstack-ansible-galera_server/+/82817016:33
jrosserNeilHanlon: did you have to fix anything about ansible not knowing the default python interpreter for rocky?16:54
NeilHanlonah, probably need https://review.opendev.org/c/openstack/openstack-ansible/+/82357316:55
jrosseryes i have that16:56
jrosserbut i'm getting     "msg": "The PyMySQL (Python 2.7 and Python 3.X) or MySQL-python (Python 2.X) module is required.", during installing the database16:57
NeilHanlonyeah, that's what i'm getting on a metal install now, too16:57
jrosserans thats bevause "ansible_python_interpreter": "/opt/ansible-runtime/bin/python3.8"16:57
jrosseroh hmm hold on16:58
jrosseryeah if you run any of the playbooks with -vvvv then it looks like it's using /usr/bin/python3.8 as the interpreter17:01
jrosseri think i showed this before, where we had ansible not knowing about Debian Buster17:02
jrosserhttps://github.com/openstack/openstack-ansible/blob/stable/victoria/scripts/bootstrap-ansible.sh#L78-L8017:02
NeilHanlonokay, yeah.. i think I had experimented with that a bit, setting it to 3.6, originally. But i'm not sure if I did it as explicitly to 3.817:04
* jrosser tests17:05
* NeilHanlon 217:05
jrosserok i think we need this https://paste.opendev.org/show/812562/17:06
jrosseransible itself needs to run with python3.8 (becasue new ansible requires is), so we use PYTHON_EXEC_PATH="$(which python3.8)"17:07
jrosserbut ansible ssh to the host and runs a python command, which should use OSA_ANSIBLE_PYTHON_INTERPRETER="/usr/bin/python3" because of things like the bindings for selinux and lxc17:07
jrosserand also the mysql bindings17:08
*** akahat|dinner is now known as akaha|rover17:08
NeilHanlonok, I see17:10
jrosserthis is a bit subtle, that the python environment that ansible-playbook runs in is quite seperate from the one that the tasks run on the targets in17:11
jrosserand the requirements for those are somewhat different17:11
NeilHanlonyeah, I am beginning to recognize it can make quite a difference 17:12
jrosserthere is code now in ansible for it to be able to try a number of different interpreters squentially on the target without failing17:13
jrosserspecifically to cater for "import foobar" only being valid for a specific interpreter17:13
jrosserthe apt and dnf modules already do this17:13
jrosserbut that has to be implemented on a module by module basis, and isn't fixed globally in the core of ansible itself17:14
NeilHanlondidn't know that about ansible now looking for multiple interpreters, very cool17:18
jrosserok next thing looks like this https://opendev.org/openstack/openstack-ansible-os_cinder/src/branch/master/vars/redhat.yml#L3417:22
NeilHanlonthat comes from PowerTools 17:23
jrosserok sure, we need to put that back17:23
NeilHanloni went looking for where it was removed but wasn't sure.. for LXC i was doing http://git.shrug.pw:3000/advancedla/infra/src/branch/main/ansible/playbooks/files/lxc_install_dnf.yml#L32-L3917:23
jrosserbut lxc_hosts would be the wrong place as this is failing in a metal deploy17:23
NeilHanlonright17:23
jrosseri expect that the conditional on here fails https://github.com/openstack/openstack-ansible-openstack_hosts/blob/master/tasks/openstack_hosts_configure_dnf.yml#L114-L11917:26
NeilHanlonif i'm reading https://opendev.org/openstack/openstack-ansible-openstack_hosts/src/branch/master/defaults/main.yml#L163 right, I think that probably that can be loosened to just enable powertools, or maybe enable only if EPEL is also enabled17:50
NeilHanlonfwiw, my test AIO/LXC just finished and appears to have worked 🤔17:52
noonedeadpunko_O17:53
noonedeadpunkthat sounds to good to be true :)17:53
NeilHanloni know!  https://drop1.neilhanlon.me/irc/uploads/1465254a508de23e/image.png 17:56
jrossernoonedeadpunk: how do you think this gets installed? https://zuul.opendev.org/t/openstack/build/996c9111c1154e389f03e74b9f2c53b8/log/logs/redhat-rpm-list-installed-host-09-52-10.txt#24018:42
jrosserwhen we've got this https://opendev.org/openstack/openstack-ansible-openstack_hosts/src/branch/master/defaults/main.yml#L16318:43
jrosseri'm confused :)18:43
noonedeadpunkmaybe powetools doesn't need enablement nowadays...18:45
noonedeadpunkwhy we actually ask for it? https://opendev.org/openstack/openstack-ansible-os_cinder/src/branch/master/vars/redhat.yml#L3418:45
jrossercinder seems to need it for this https://github.com/openstack/openstack-ansible-os_cinder/blob/master/vars/redhat.yml#L3418:45
jrossersnap :)18:46
jrosserseems like kind of minimal use generally https://codesearch.opendev.org/?q=kmod-devel18:46
noonedeadpunkbut we don't enable it anywhere?18:46
noonedeadpunkI mean - I dunno how cinder role gets it, or how supposed to, but powertools needed to be explicitly enabled one day... So likely nowadays with stream it's not the case anymore18:47
jrosser`The kmod-devel package provides header files used for development of applications that wish to load or unload Linux kernel modules`18:47
jrosseroh well this is my rocky vm18:48
jrosserand it fails to install it18:48
jrosser^ and it skips installing powertools repo, as the enabled flag is false18:48
jrosserthen cinder fails18:48
noonedeadpunkhuh... and we dunno if regular centos-8 was failing with it lately or not...18:48
jrosserand i wonder how/why this happens in CI18:48
noonedeadpunkI'd say not18:49
noonedeadpunkno idea tbh....18:49
noonedeadpunkhm... also - it should be installed only inside repo container I guess?18:50
jrosseroh interesting i think that zuul sets it up18:51
jrosserhttps://zuul.opendev.org/t/openstack/build/996c9111c1154e389f03e74b9f2c53b8/log/job-output.txt#356118:52
noonedeadpunkdamn it18:52
noonedeadpunkwe need to clean this all up....18:52
noonedeadpunkI bet I can recall HighAvailability passing as OK...18:53
jrosserwe could easily merge wrong stuff like this18:53
noonedeadpunkI bet we even dropped HighAvailability enablement...18:54
noonedeadpunkah, well, it's only pacemaker-corosync go from there18:55
noonedeadpunkwhich is the case for masakari only18:55
jrosserhttps://opendev.org/zuul/zuul-jobs/src/branch/master/roles/configure-mirrors/tasks/mirror/CentOS-8.yaml18:57
noonedeadpunkwow, epel18:58
noonedeadpunkdamn it18:58
noonedeadpunkI'm not really sure how we should keep track of such things...19:01
NeilHanloni have an idea but it involves like 30 interns19:06
opendevreviewMerged openstack/openstack-ansible-lxc_hosts master: Ensure that the legacy network-scripts package is present  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/82811319:14
noonedeadpunk:D hehe19:14
jrossernoonedeadpunk: maybe we add a var to that zuul role and set it in our base job19:18
jrosserinstall_extra_repos: False19:18
noonedeadpunkI like this idea the way more then 30 interns :D19:19
noonedeadpunkhttps://opendev.org/zuul/zuul-jobs/src/branch/master/roles/configure-mirrors/tasks/mirror/Debian.yaml#L12 that's not good as well I believe19:20
jrosseridk if that’s possible to pass settings to those base roles from our job definitions19:20
noonedeadpunkI bet it is https://zuul-ci.org/docs/zuul/latest/config/job.html#attr-job.vars19:23
*** noonedeadpunk_ is now known as noonedeadpunk19:34
*** dviroel|ruck is now known as dviroel|out22:41

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