Tuesday, 2025-02-04

opendevreviewHector Vido proposed openstack/ansible-role-systemd_networkd master: Save current network conf on /etc/systemd/network.  https://review.opendev.org/c/openstack/ansible-role-systemd_networkd/+/94067202:39
opendevreviewHector Vido proposed openstack/ansible-role-systemd_networkd master: Save current network on /etc/systemd/network.  https://review.opendev.org/c/openstack/ansible-role-systemd_networkd/+/94067202:46
gokhan_hello folks, how can we update /etc/hosts file with new inventory. it seems we can use openstack_hosts playbook 09:07
jrossergokhan_: perhaps something like `openstack-ansible playbooks/openstack-hosts-setup.yml --tags openstack_hosts-file`09:18
jrosseryou can see that tag on that part here https://github.com/openstack/openstack-ansible-openstack_hosts/blob/master/tasks/main.yml#L9009:18
opendevreviewAndrew Bonney proposed openstack/openstack-ansible master: docs: adjust rabbitmq quorum queue guidance for 2024.2 onwards  https://review.opendev.org/c/openstack/openstack-ansible/+/94069312:38
opendevreviewDmitriy Rabotyagov proposed openstack/ansible-role-systemd_networkd master: Allow to apply only overrides to the network interface  https://review.opendev.org/c/openstack/ansible-role-systemd_networkd/+/94032412:40
noonedeadpunkwe rerally need to improve our upgrade and monitoring guide around rabbitmq as well12:41
noonedeadpunkwrt https://www.rabbitmq.com/docs/man/rabbitmq-queues.812:42
noonedeadpunkas OS upgrade will nuke quorum queues setup without re-adding node which was re-setup12:43
noonedeadpunkand also check_if_node_is_quorum_critical is a good healthcheck for upgrade as well12:43
noonedeadpunkand OVN is a next thing which will struggle during OS upgrade atm...12:45
opendevreviewHector Vido proposed openstack/ansible-role-systemd_networkd master: Save current network on /etc/systemd/network.  https://review.opendev.org/c/openstack/ansible-role-systemd_networkd/+/94067212:59
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-ops unmaintained/2023.1: Update .gitreview for unmaintained/2023.1  https://review.opendev.org/c/openstack/openstack-ansible-ops/+/93984913:32
noonedeadpunk#startmeeting openstack_ansible_meeting15:04
opendevmeetMeeting started Tue Feb  4 15:04:24 2025 UTC and is due to finish in 60 minutes.  The chair is noonedeadpunk. Information about MeetBot at http://wiki.debian.org/MeetBot.15:04
opendevmeetUseful Commands: #action #agreed #help #info #idea #link #topic #startvote.15:04
opendevmeetThe meeting name has been set to 'openstack_ansible_meeting'15:04
noonedeadpunk#topic rollcall15:04
noonedeadpunkhalf-here as on the event right now15:04
jrossero/ hello15:05
noonedeadpunk#topic office hours15:10
noonedeadpunkso. this weak I realized we're having soooo much things to grow in :D15:11
noonedeadpunk*week15:11
jrosseri hope you make some notes :)15:11
noonedeadpunkYeah, some. Btw, I was wondering, do you happen to use VSCode or some other IDE?15:12
jrossermostly just vim15:12
jrosserbut for serious search/replace across all the repos, then yes vscode15:12
noonedeadpunkas one thing I learned about - ansible development environment. Basically a way to spwan a docker container with pre-installed ansible-core/molecule/etc15:13
jrosseralso the ssh remote thing to make a vm appear like local development is excellent15:13
noonedeadpunkand then there's a way to spawn workloads from it15:13
noonedeadpunkand you can quite easily describe and ship config for vscode to spawn such environment15:13
noonedeadpunkpretty much through https://github.com/Microsoft/vscode-remote-release15:14
noonedeadpunksorry, * https://code.visualstudio.com/docs/devcontainers/containers15:15
noonedeadpunkbut there're quite some ways of doing same without vscode as well15:15
jrosserah yes i am already familiar with https://code.visualstudio.com/docs/remote/ssh15:16
noonedeadpunkyeah, I firstly set link to the bundle instead of specific plugin15:16
noonedeadpunkso basically if we have  devcontainer.json file in tree of roles with molecule - it might make experience sooooo much better15:17
noonedeadpunkanother thing I learned - is argument spec files for roles15:18
noonedeadpunkhttps://docs.ansible.com/ansible/latest/collections/ansible/builtin/validate_argument_spec_module.html15:18
noonedeadpunkwhere one can describe expected input to the role and then verify it's validity15:19
noonedeadpunkso that you can resolve/fail faster 15:20
noonedeadpunkand then it makes generating documentation for module way more trivial15:20
jrosserthough if you have the whole external interface in defaults/main.yml......15:20
jrosserit might be more appropriate when we iterate over include_tasks or whatever in openstack service setup, and the input data it complex15:21
noonedeadpunkso the thing is, that we know defaults work, but let's say neutron. it's quite frequent one can mis-use mappings... I'm not sure though if it arg spec can prevent this prom happening or not...15:22
jrosseryes and the rules for what you have to have in those mappings is super unclear15:23
noonedeadpunkjust I think in general it might be nice to fail early in some tricky places we aware about... but yeah, probably it's not very important indeed for now15:23
jrosseri expect some of the "utility" roles would benefit most, rather than the openstack services to start with15:24
noonedeadpunkbut then kind if we can define a rule for smth - probably it's worth re-factoring a bit and making more obvious?15:24
noonedeadpunkoh, yes, sure15:24
jrosseras the inputs tend to be "list of things", defaults to []15:25
noonedeadpunkwell, yes, on that level it's not gonna be helpful at all15:26
noonedeadpunkbut it can be handy at some cases... at least describe allowed or mutually exclusive options we do not support15:29
noonedeadpunkbut agree - it mostly happens inside of complex data structures in our case15:29
noonedeadpunkalso - I learned about Conjur today - kinda "vault" alternative: https://github.com/cyberark/conjur15:29
noonedeadpunkI think interesting part was, that you kinda register ansible controller once and allow there access to group hosts registered in service15:30
noonedeadpunkbut also it pushed me to the idea of replacing ssh keys with such secrets15:31
noonedeadpunkand probably writing some doc on how to do that15:31
noonedeadpunk(even with vault)15:31
noonedeadpunkbut worse part - is that again it's all just lookups :(15:32
noonedeadpunkthough you don;'t need to have a token supplied each time you run ansible15:32
noonedeadpunkas once host is registered - it can operate and fetch things.15:32
noonedeadpunkso kinda sounded neat15:33
jrosserso for vault+jenkins we give jenkins a token15:33
jrosserand you can do things like make that token only valid for the IP you want15:34
noonedeadpunkand you don't run anything manually from the deploy host?15:34
jrossera mixture15:34
opendevreviewMerged openstack/openstack-ansible master: docs: adjust rabbitmq quorum queue guidance for 2024.2 onwards  https://review.opendev.org/c/openstack/openstack-ansible/+/94069315:34
jrosserperiodic stuff in jenkins "is everything broken?" kind of jobs15:34
noonedeadpunkI think what I don't like most right now - is usage of passwordless SSH key15:34
noonedeadpunkfor the root user, kinda15:34
noonedeadpunkat least that's what we "promote" most15:35
jrossersigned keys make that ephemeral at least15:35
jrosserthough we pretty much just leave this to the operator to decide i guess15:35
noonedeadpunktrue15:36
noonedeadpunkbut would be nice to have some options documented one day15:36
jrossernow we have fixed the connection plugin it would be good to have a "non root" job15:36
noonedeadpunk++15:37
jrosseri expect it is mostly ok, but there will be some errors for sure15:37
noonedeadpunkSo there were multiple things I've faced when tried last time...15:38
noonedeadpunklike owner of the user_secrets15:38
noonedeadpunkbut for metal it was doable, yes15:38
noonedeadpunkstill - you kind of assumed to have the user added to sudoers with * more or less15:39
noonedeadpunkand passwordless escalation15:39
jrosseryou do15:39
jrosserso this is kind of security theatre imho15:39
noonedeadpunkyeah, totally15:40
opendevreviewJonathan Rosser proposed openstack/openstack-ansible stable/2024.2: docs: adjust rabbitmq quorum queue guidance for 2024.2 onwards  https://review.opendev.org/c/openstack/openstack-ansible/+/94071515:41
noonedeadpunkah, also I was shown a mise - alike to pyenv, except supports more languages https://mise.jdx.dev/environments/15:41
jrosserso i still need to work some more on why molecule is unreliable on the plugins repo15:44
jrosserthere is something difficult to reproduce happening there15:44
noonedeadpunkand again - was highly encouraged to try starting usage of UV instead of PIP for our python_venv_build role. Though I do recall there was smth impossible to do regarding building wheels... But can't recall what, so hard to say if it was fixed or not15:44
noonedeadpunkIt kind of reliable15:45
noonedeadpunkIt fails very reliably15:45
noonedeadpunkjust not reproducible outside of CI15:45
noonedeadpunkI think I won't do much this week to be frank, as will be back hopefully Thursday, but likely even Friday15:46
jrosserit is strange as the docker connection method has already run things OK15:46
jrosserlike starting sshd was not successful15:46
noonedeadpunkyeah... or it drops connection right after15:47
jrosserwell actually thats interesting - maybe i should put in a `wait_for` on port 2215:47
jrossernothing really to lose with doing that15:48
noonedeadpunkso if tcp runs - it will pass15:48
noonedeadpunkyeah, good idea15:48
noonedeadpunkit's really confusing why these non-reproducible issues happen only on CentOS15:49
noonedeadpunkwhat so specific could be about CI image influencing that15:50
noonedeadpunkwhich has effect inside docker..,,15:50
jrosserand more confusingly its centos container on ubuntu host15:52
jrosserso for each of the different OS we test, the parent OS is the same15:52
noonedeadpunkwell, I tried to run in ubuntu VM15:52
noonedeadpunkand, what is even more interesting - it doesn't happen for Rocky15:53
noonedeadpunkso it's not some generic ubuntu/el thing15:53
noonedeadpunk(at least so far)15:53
noonedeadpunkbut wait_for is really a good check15:54
noonedeadpunkI was also thinking if doing a collection out of all systemd roles would make sense... and make it's releasing independent...15:56
jrosserthat would be a nice thing15:57
noonedeadpunkas eventually one thing I don't know how to solve in a good way -- is release management of collections which are on stable branch policy15:58
noonedeadpunkas ideally one need to align tags with versions in galaxy.yml15:59
noonedeadpunkbut then we can potentially replace chunk of systemd roles with modules 0 like you suggested one day16:00
noonedeadpunkalso what was tolded - that while roles are not going anyway so far - RH is not gonna invest in future development of tooling to support roles outside of collections16:01
noonedeadpunk* told16:01
noonedeadpunk#endmeeting16:02
opendevmeetMeeting ended Tue Feb  4 16:02:22 2025 UTC.  Information about MeetBot at http://wiki.debian.org/MeetBot . (v 0.1.4)16:02
opendevmeetMinutes:        https://meetings.opendev.org/meetings/openstack_ansible_meeting/2025/openstack_ansible_meeting.2025-02-04-15.04.html16:02
opendevmeetMinutes (text): https://meetings.opendev.org/meetings/openstack_ansible_meeting/2025/openstack_ansible_meeting.2025-02-04-15.04.txt16:02
opendevmeetLog:            https://meetings.opendev.org/meetings/openstack_ansible_meeting/2025/openstack_ansible_meeting.2025-02-04-15.04.log.html16:02
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Add most basic molecule test for ssh connection plugin  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/93989817:25
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Update ssh connection plugin paramters to match upstream  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/93989917:25
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Automatically import ssh connection plugin options from the base class  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/93995717:25
jrosserhuh is ansible-compat *still* broken?17:38
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Add most basic molecule test for ssh connection plugin  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/93989817:39
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Update ssh connection plugin paramters to match upstream  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/93989917:39
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Automatically import ssh connection plugin options from the base class  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/93995717:39
opendevreviewMerged openstack/openstack-ansible master: Pin ansible-compat up to 25.0.0  https://review.opendev.org/c/openstack/openstack-ansible/+/93927417:48
opendevreviewMerged openstack/openstack-ansible stable/2024.2: docs: adjust rabbitmq quorum queue guidance for 2024.2 onwards  https://review.opendev.org/c/openstack/openstack-ansible/+/94071517:48
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Add most basic molecule test for ssh connection plugin  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/93989817:50
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Update ssh connection plugin paramters to match upstream  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/93989917:50
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Automatically import ssh connection plugin options from the base class  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/93995717:50
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Add most basic molecule test for ssh connection plugin  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/93989818:13
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Update ssh connection plugin paramters to match upstream  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/93989918:13
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Automatically import ssh connection plugin options from the base class  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/93995718:13
opendevreviewMerged openstack/openstack-ansible-os_ironic stable/2024.1: Fix quorum queue support for ironic-inspector  https://review.opendev.org/c/openstack/openstack-ansible-os_ironic/+/94052118:17
opendevreviewMerged openstack/openstack-ansible-ops unmaintained/2023.1: Update .gitreview for unmaintained/2023.1  https://review.opendev.org/c/openstack/openstack-ansible-ops/+/93984918:28
spateljrosser I have a ansible question 22:05
spatelIn my play I am setting hostname using shell: hostname foobar22:05
spateland in next play checking if ansible_hostname == foobar do this.. but somehow it not doing.. 22:06
spatellook like after setting hostname ansible facts not getting updates or fathers22:06
spatelAny way to tell after X task update ansible_hostname ?22:07
jrosserspatel: do you use the setup module to gather facts again after setting the hostname?22:13
jrosserrather than shell there is also a native ansible module to set the hostname https://docs.ansible.com/ansible/latest/collections/ansible/builtin/hostname_module.html22:14
opendevreviewMerged openstack/openstack-ansible-galera_server master: Use module_hotfixes for yum_repository  https://review.opendev.org/c/openstack/openstack-ansible-galera_server/+/93979822:43
spateljrosser I found the way to gather facts before task :)22:44
spatelSorry! As soon as I ping you and realized I can just add condition 22:45
spatelDo you think native variable do good stuff compare to shell ?22:45
opendevreviewMerged openstack/openstack-ansible-galera_server master: Add molecule testing for the role  https://review.opendev.org/c/openstack/openstack-ansible-galera_server/+/93975123:14

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