Friday, 2023-04-28

*** gthiemon1e is now known as gthiemonge07:12
opendevreviewTom Weininger proposed openstack/octavia master: Add pytest testenv to tox.ini  https://review.opendev.org/c/openstack/octavia/+/88173908:35
opendevreviewTom Weininger proposed openstack/octavia master: DNM: Test CI with pytest running  https://review.opendev.org/c/openstack/octavia/+/88174008:35
opendevreviewTom Weininger proposed openstack/octavia master: Make tests work with pytest runner  https://review.opendev.org/c/openstack/octavia/+/88180508:35
opendevreviewTom Weininger proposed openstack/octavia master: DNM: Test CI with pytest running  https://review.opendev.org/c/openstack/octavia/+/88174008:40
opendevreviewTom Weininger proposed openstack/octavia master: Make tests work with pytest runner  https://review.opendev.org/c/openstack/octavia/+/88180508:40
opendevreviewTom Weininger proposed openstack/octavia master: Add pytest testenv to tox.ini  https://review.opendev.org/c/openstack/octavia/+/88173909:00
opendevreviewTom Weininger proposed openstack/octavia master: Make tests work with pytest runner  https://review.opendev.org/c/openstack/octavia/+/88180509:00
opendevreviewTom Weininger proposed openstack/octavia master: DNM: Test CI with pytest running  https://review.opendev.org/c/openstack/octavia/+/88174009:00
opendevreviewTom Weininger proposed openstack/octavia master: Add support for HTTP Strict Transport Security  https://review.opendev.org/c/openstack/octavia/+/88080609:01
opendevreviewTom Weininger proposed openstack/octavia-lib master: Add support for HTTP Strict Transport Security  https://review.opendev.org/c/openstack/octavia-lib/+/88082109:02
opendevreviewTom Weininger proposed openstack/python-octaviaclient master: Add support for HTTP Strict Transport Security  https://review.opendev.org/c/openstack/python-octaviaclient/+/88080809:04
opendevreviewTom Weininger proposed openstack/octavia master: Integrate mypy type checker  https://review.opendev.org/c/openstack/octavia/+/87974909:16
opendevreviewTom Weininger proposed openstack/octavia master: Make tests work with pytest runner  https://review.opendev.org/c/openstack/octavia/+/88180509:33
opendevreviewTom Weininger proposed openstack/octavia master: DNM: Test CI with pytest running  https://review.opendev.org/c/openstack/octavia/+/88174009:33
gthiemongeFYI https://review.opendev.org/c/openstack/project-config/+/88181010:53
crabhi all im having some difficulty with octavia on victoria. ive managed to create a loadbalancer which is in PENDING_CREATE and ONLINE.13:34
crabwhen i ssh into the amphora and tcpdump the interface looking for traffic on port 9443, i can see traffic from the controller.13:34
crabthe worker.log on the controller warns: octavia.amphorae.drivers.haproxy.rest_api_driver [-] Could not connect to instance. Retrying.: requests.exceptions.ReadTimeout:13:35
crabthe amphora definitely appears to want to listen on 9443 but something isnt working.13:36
gthiemongecrab: hi13:36
crabhi13:36
gthiemongethe octavia worker process should establish a connection with the amp, through an interface that is created on the controller (what is your deployment method?)13:38
gthiemongeI would check that this interface is correctly set up13:38
crabwe used our own puppet stuff to deploy, and that connection uses neutron-linuxbridge-agent for the vxlan part and we used network manager for the veth part.13:40
crabi can ssh from the controller and ping so there seems to be some connectivity.13:40
crabalso as i say, netstat and tcpdump show that there is a connection to port 9443.13:41
crabon the amphora i see worker process constantly dying and respawning13:41
johnsomIt might be TLS related.13:41
johnsomCheck this document: https://docs.openstack.org/octavia/latest/admin/guides/certificates.html13:42
crabwill do13:43
crabi keep seeing a lot of python errors which culiminate in:13:43
crab amphora-agent[772]: AssertionError: can only join a child process13:43
johnsomHmmm, haven’t seen that. Maybe give us a longer amphora agent log snippet in paste.openstack.org13:44
crabok...13:44
crablots of this: https://paste.opendev.org/show/br7dLaU5j7j7r3AENTxU/13:45
gthiemongeI saw this when amphora-agent is restarting13:47
gthiemongeAssertionError should not be a problem, the "WORKER TIMEOUT" is13:48
crabok13:49
gthiemongecrab: can you paste the logs of the worker? (the lines around "octavia.amphorae.drivers.haproxy.rest_api_driver [-] Could not connect to instance."13:51
crabfrom the controller side?13:51
gthiemongeyep, worker.log13:51
crabjust lots and lots of this: 13:54
crabhttps://paste.opendev.org/show/bIFSdMtnsskbvpEKDapB/13:54
gthiemongeok, only timeouts13:54
gthiemongeI would check the octavia interface connectivity on the controller (with tcpdump) and maybe also on the amphora port when it is created13:55
crabyeah ive done that.13:56
crabit looks good as far as i can tell.13:56
crabif i do "netstat | grep 9443" on the amphora side i can see connections to / from the controller ip13:56
craband tcpdump ens3 port 9443 on the amphora also shows the traffic13:56
crabhmmm.13:57
gthiemongeok, at least this part is working13:57
crabwe did see something slightly unusual which im now thinking may be significant.13:57
gthiemongeas johnsom mentioned, might be TLS related then13:57
crabin testing, when we'd got the interface up on the controller, we created an instance and sort of manually added an interface 13:58
crabiirc we could ping the instance from controller but not the other way around which we thought was very odd...13:58
crabbut at that point we sort of ignored it and soldiered on.13:58
johnsomWe typically do not enable ping on the amphora instances14:02
crabaah so thats nothing to be worried about per se?14:03
johnsomRight14:04
crabi can ping amphora from controller fine, but not visa versa.14:04
crabok.. looks like its ssl fun time then. 14:04
* crab grits teeth14:04
crabthanks for your help both of you.14:04
johnsomSure, the document is pretty detailed and should step you through it.14:05
johnsomI am guessing some of the certificate settings are not configured correctly14:06
crabhmmm.14:48
crabnew certs same error.14:48
crabif i hop on to the amphora and kill off the agent, and start netcat listening on 9443,14:55
crabi can see constant chatter from the controller14:55
johnsomAfter you update the certs, you need to create a new load balancer or do a load balancer failover to have it pick up your changes (after you have restarted the controllers)16:12
crabjohnsom: yeah none of that seems to have helped.16:50
crabi think our amphora images might be bad.16:50
johnsomHow did you build them? Using the script we provide?16:57
crabyeah i used the script in the git repo16:58
crabi checked out stable/victoria16:58
craband followed directions.16:58
crabhowever, we struggled to get any centos images built (or fedora)16:58
craband i ended up installing debootstrap on a rocky9 host,16:59
craband using that16:59
crabits very odd. the error looks *kind of* like this:17:01
crabhttps://storyboard.openstack.org/#!/story/200822617:01
crabbut without the socket error processing request bit17:01
johnsomYeah, centos has had many issues over the last few years. The packages have been a bit unstable. It's nothing in the Octavia code, but fundamental centos package issues.17:20
johnsomI seriously doubt this is a bug or issue inside the amphora. I think it's a configuration issue. If you want to run a test to prove that, grab the focal test image from here:https://tarballs.opendev.org/openstack/octavia/test-images/test-only-amphora-x64-haproxy-ubuntu-focal.qcow217:22
johnsomThose are not for production use, but would remove the image as a potential issue.17:22
crabthanks... i'll give that a go.17:22
crabour deployment is on rocky8 - its been pretty solid we've upgraded it from centos 7 iirc.17:29
craband then we've upgraded openstack itself a couple of times too.17:29
johnsomYeah, I think someone here was working with the DIB team to get Rocky going. I'm not sure where that is in the process.17:31
crabwell we dont really need to worry about using ubuntu for amphora / building amphora (unless im missing something)17:31
crabbut moving all of openstack to ubuntu would be more of a wrench17:32
crabjohnsom: well that image doesn't seem to behave any differently so i guess it is a config issue.17:58
crabi cant spot anything obvious to investigate though.17:58
johnsomI will have limited availability for a few hours. Can you paste.openstack.org the amphora agent config file?18:00
crabsure18:00
johnsomI will look at it later and see if I see something18:01
johnsomMark it private and DM me if you are concerned about the content18:01
crabdone18:03
crabi dont think there is anything contentious in there really. remember thats from the test image you just suggested.18:03
crabi suspect that the problem is more likely to be in my octavia.conf! ;)18:03
crabi have tried switching Debug = False to True a few times, but that doesnt seem to be very revealing.18:04
crabanyway thanks very much for your help - its appreciated. but don't stress it. im gonna have a rest and see im sure it'll sort itself at some stage. we've been going quite hard on this over the last few days and sometimes a break works wonders. :)18:05
*** JayF is now known as Guest1244418:27
*** JasonF is now known as JayF18:27

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