Thursday, 2025-02-20

mnasiadkanoonedeadpunk: https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_reuse_roles.html#role-argument-validation - if you mean this, then it might make sense for OSA or standalone roles - but in Kolla-Ansible case where we have all roles in one repository it's probably some sort of an overkill - we usuallly have everything in defaults with some default values :)06:43
noonedeadpunkmnasiadka: we have also all in defaults. and that's the reason why we do import defaults file to the doc and did just some comments in defaults around...06:46
noonedeadpunkbut if there would be a sphinx extension that can parse argument_specs and document it in a way of, say, policy files... then both documentation and validation of input is solved06:48
mnasiadkayeah, that could be something we could do06:59
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-openstack_hosts master: Apply a tag to the pki role include  https://review.opendev.org/c/openstack/openstack-ansible-openstack_hosts/+/94234308:54
noonedeadpunkandrewbonney: about regexp... I think, it should be adequate escaping to what I see in some examples.09:13
noonedeadpunkbut then indeed - maybe we wanna play with https://docs.ansible.com/ansible/latest/collections/ansible/builtin/regex_escape_filter.html09:13
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-plugins master: Auto-fix yaml rules  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/94190309:15
jrosserI did put some of the double-slash stuff into regex101 and just ended up confused09:16
noonedeadpunkjrosser: so you need to escape slash when using double quotes09:17
noonedeadpunkthen, ansible removes one slash and leaves another one09:18
noonedeadpunkand behaviour with `''` is different then with `""`09:18
noonedeadpunkthey do have some examples in https://docs.ansible.com/ansible/latest/collections/ansible/builtin/regex_search_filter.html#examples09:19
noonedeadpunkbut the overall thing, is that if you wanna leave `\.` as a result, you need to escape `\` when yousing double quites09:20
noonedeadpunk*quotes09:20
noonedeadpunk*using09:20
noonedeadpunkso you can do either `'127\.0\.0\.1'` or `"127\\.0\\.0\\.1"`09:21
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-os_neutron master: Return defenition for wsgi-required workers  https://review.opendev.org/c/openstack/openstack-ansible-os_neutron/+/94234709:27
noonedeadpunkdamn it, this uwsgi thing is just /o\09:28
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-os_neutron master: Return defenition for wsgi-required workers  https://review.opendev.org/c/openstack/openstack-ansible-os_neutron/+/94234709:30
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-os_neutron master: Auto-fix yaml rules  https://review.opendev.org/c/openstack/openstack-ansible-os_neutron/+/94137609:30
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-os_neutron master: Auto-fix usage of modules via FQCN  https://review.opendev.org/c/openstack/openstack-ansible-os_neutron/+/94137809:30
noonedeadpunkI really wonder wtf is that: https://zuul.opendev.org/t/openstack/build/7bfe965e949343638c6b06fe5bf45a9110:03
noonedeadpunklike - ansible-lint does resolve symlink to destination path?10:03
noonedeadpunkas we run `/opt/ansible-runtime/bin/ansible-lint /etc/ansible/roles/httpd/examples/playbook.yml`10:03
noonedeadpunkbut then issue happens in `/home/zuul/src/opendev.org/openstack/ansible-role-httpd/examples/playbook.yml:5:7`10:03
opendevreviewDmitriy Rabotyagov proposed openstack/ansible-role-httpd master: Split example and converge playbooks  https://review.opendev.org/c/openstack/ansible-role-httpd/+/94234910:31
opendevreviewDmitriy Rabotyagov proposed openstack/ansible-role-httpd master: Split example and converge playbooks  https://review.opendev.org/c/openstack/ansible-role-httpd/+/94234911:46
opendevreviewDmitriy Rabotyagov proposed openstack/ansible-role-httpd master: Auto-fix yaml rules  https://review.opendev.org/c/openstack/ansible-role-httpd/+/94190111:58
opendevreviewDmitriy Rabotyagov proposed openstack/ansible-role-httpd master: Split example and converge playbooks  https://review.opendev.org/c/openstack/ansible-role-httpd/+/94234912:00
opendevreviewDmitriy Rabotyagov proposed openstack/ansible-role-httpd master: Auto-fix yaml rules  https://review.opendev.org/c/openstack/ansible-role-httpd/+/94190112:00
opendevreviewDmitriy Rabotyagov proposed openstack/ansible-role-httpd master: Auto-fix yaml rules  https://review.opendev.org/c/openstack/ansible-role-httpd/+/94190112:04
opendevreviewMerged openstack/openstack-ansible-os_blazar master: Auto-fix yaml rules  https://review.opendev.org/c/openstack/openstack-ansible-os_blazar/+/94132313:08
opendevreviewMerged openstack/openstack-ansible-os_heat master: Auto-fix yaml rules  https://review.opendev.org/c/openstack/openstack-ansible-os_heat/+/94134218:09
opendevreviewMerged openstack/openstack-ansible-lxc_hosts master: Auto-fix yaml rules  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/94152818:14
sykebenGood afternoon, was wondering if anyone could help me pinpoint the source of this error18:55
sykebenfatal: [dev-cc-01]: FAILED! => {"msg": "The task includes an option with an undefined variable.. {{ haproxy_nova_spice_console_service | combine(haproxy_nova_spice_console_service_overrides | default({})) }}: 'haproxy_nova_spice_console_service' is undefined\n\nThe error appears to be in '/etc/ansible/roles/haproxy_server/tasks/haproxy_service_config.yml': line 22, column 3, but may\nbe elsewhere in the file depending on the exact syntax p18:56
sykebenI started getting this after deploying openstack-ansible (tag: 30.0.1) upgrade from 29.2.118:56
sykebenI haven't changed anything to do with Nova or the spice console in the meantime18:57
sykebenThis is the command I'm using (trying to install ceilometer, gnocchi and cloudkitty): "openstack-ansible openstack.osa.setup_openstack --limit metering-infra_hosts --limit metering-compute_hosts --limit metrics_hosts --limit cloudkitty_hosts"18:57

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