Wednesday, 2024-08-14

semanticHi, guys!04:16
semanticIt seems to me bug was introduced in https://opendev.org/openstack/openstack-ansible/commit/2c06a65a75f501c30376f7369f4b7eccd3f0523a04:16
semantichorizon_webroot: "{{ (groups['skyline_all'] | default([])) | ternary('/horizon', '/') }}" renders to http-check send hdr User-Agent "osa-haproxy-healthcheck" meth HEAD uri //auth/login/ while it should be ...HEAD uri /auth/login/.04:16
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-os_horizon master: DNM - test  https://review.opendev.org/c/openstack/openstack-ansible-os_horizon/+/92625408:09
jrosser^ lets test the horizon role haproxy healthcheck08:09
jrosseroh actually horizon is deployed by default https://zuul.opendev.org/t/openstack/build/499ad0b14e3b43878446c7e91b5f71da/log/logs/etc/host/haproxy/conf.d/horizon.txt#1508:11
semanticSorry, not sure if I understand what you mean. Maybe tests should be fixed also, as while it has //auth/login/ instead of /auth/login/ horizon is not available, and horizon-dashboard.service constantly logs that "//auth/login is not found". Fixing the haproxy config turns everything back to normal.08:44
jrossersemantic: i wanted to see it in the logs of a job as i was not sure what actually the problem is08:47
jrosserbut its helpful to know that its causing log noise rather than breaking something08:48
semanticWell, you can't access horizon dashboard through haproxy, so it actually breaks stuff. :)08:49
jrosserhmm08:50
jrosserwhen i look on my haproxy host here, i see that there is the //auth/login in the config but we can access horizon just fine08:50
jrosserso i expect that there is something additional / more subtle at play as well08:50
jrosserit's always helpful to know which release of openstack-ansible we are talking about, and on what OS08:51
semanticI found it looking at 29.0.1 on Debian Bookworm. I then compared to another setup with working Horizon I have on 28.0.1 (also Bookworm), and found that difference.08:55
semanticActually the reason I look into newer version, is that I still can't resolve failover problems completely. I believe I've mentioned them some time ago. After all introduced stuff like quorum queues, etc, I finally can confirm openstack services can live after shutting down any single of infra hosts with RabbitMQ. Though there's still a problem if the shutdown is unexpected (i.e. poweroff). Most services like nova-compute, neutron-openvswitch-09:03
semanticagent, nova-conductor, etc stuck in a loop like this:09:03
semanticnova-conductor[4572]: 2024-08-14 06:48:01.102 4572 ERROR oslo.messaging._drivers.impl_rabbit [-] [23741f6a-4fc8-4e24-962e-5d918553cb7e] AMQP server on 10.33.177.212:5671  is unreachable: <RecoverableConnectionError: unknown error>. Trying again in 1 seconds.: amqp.exceptions.RecoverableConnectionError: <RecoverableConnectionError: unknown error>. Restarting all the services brings everything back to normal.09:03
semanticIt's very easily reproducible for me, just force turn off the first infra host after the fresh setup.09:03
semanticStruggling to find a reason for this within oslo.messaging...looks very similar to the bug: https://bugs.launchpad.net/oslo.messaging/+bug/2019978, but it was resolved some time ago...09:03
jrossersemantic: can you look at what version of haproxy you have installed on 29.0.1?09:12
semanticHAProxy version 2.6.12-1+deb12u1 2023/12/16 - https://haproxy.org/09:14
semanticStatus: long-term supported branch - will stop receiving fixes around Q2 2027.09:14
semanticKnown bugs: http://www.haproxy.org/bugs/bugs-2.6.12.html09:14
semanticRunning on: Linux 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_6409:14
jrosserthanks09:19
jrosserit's really interesting that it works in our tests09:19
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Remove extra slash character from horizon haproxy healthcheck url.  https://review.opendev.org/c/openstack/openstack-ansible/+/92627510:56
jrossersemantic: ^ would you be able to test this?10:57
semanticwill try, btw the difference between our setups may be that we use horizon_use_uwsgi: true11:04
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Remove extra slash character from horizon haproxy healthcheck url.  https://review.opendev.org/c/openstack/openstack-ansible/+/92627512:58
grauzikasfinally :) by guess method made it to work. now i have question in ovn scenario should i provide additional opinions and what supported in neutron_plugin_base. example: https://paste.openstack.org/show/bvg8SSkAXF8nPTaroDa0/13:02
grauzikasok found all info. TY :)13:11
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-ops master: Update magnum-cluster-api and ansible-collection-kubernetes versions  https://review.opendev.org/c/openstack/openstack-ansible-ops/+/92634717:24
plattaI’ve got two things left before I’m ready to just use my lab. 1) I want to build an Ansible playbook that will create boilerplate resources for me, default public network, upload a Debian image to Glance, etc. 2) I’d still like the Horizon dashboard run without SSL so I can deal with certificates and SSL termination on my one internet-facing19:51
plattahost that does it for all the other services I host.19:51
plattaThat said - do you have any suggestions on how I can give back to the community? I might write a blog post describing what I did or share a repo of the playbooks I created to help me bootstrap my host. If there are other things I could do that would be helpful, please let me know.19:51
jrosserplatta: there is a role already in OSA called “openstack_resources” which should able to create your images/networks etc19:53
plattaOh, I will definitely check that out then. I was planning to look at the openstack.cloud collection, but this is likely better.19:55
jrosserwell it will use that collection under the hood20:02
jrosserbut give you a structured way to write the data describing what you want20:02

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