Monday, 2023-05-01

admin1what would give this error ? oslo_messaging.rpc.server libvirt.libvirtError: internal error: process exited while connecting to monitor: 2023-05-01T07:15:06.275384Z qemu-system-x86_64: -object tls-creds-x509,id=vnc-tls-creds0,dir=/etc/pki/qemu,endpoint=server,verify-peer=on: Our own certificate /etc/pki/qemu/server-cert.pem failed validation07:53
admin1against /etc/pki/qemu/ca-cert.pem: The certificate hasn't got a known issuer07:53
noonedeadpunkadmin1: I'd say smth went wrong with CA/PKI stuff. For example, Root CA got rotated somehow08:36
admin1i see a new tag 26.1.1 out .. so following the minor upgrade in the hope that it will fix this error also 08:50
opendevreviewDmitriy Rabotyagov proposed openstack/ansible-config_template master: Fix usage of {% raw %} tags and Jinja2 headers  https://review.opendev.org/c/openstack/ansible-config_template/+/88188709:18
admin1noonedeadpunk, the nova playbooks have run, but i still have the same error qemu-system-x86_64: -object tls-creds-x509,id=vnc-tls-creds0,dir=/etc/pki/qemu,endpoint=server,verify-peer=on: Our own certificate /etc/pki/qemu/server-cert.pem failed validation against /etc/pki/qemu/ca-cert.pem: The certificate hasn't got a known issue 10:00
admin1pasting variables .. . 10:02
noonedeadpunkadmin1: as I said, I think this is related to the changed Root CA. It's being deployed with openstack_hosts role10:02
admin1i did ran  openstack-ansible setup-hosts.yml -e package_state=latest 10:03
noonedeadpunkwhat's the output of `openssl verify -verbose -CAfile /etc/pki/qemu/ca-cert.pem /etc/pki/qemu/server-cert.pem`?10:05
admin1CN = hostname,    error 20 at 0 depth lookup: unable to get local issuer certificate  ,  error /etc/pki/qemu/server-cert.pem: verification failed10:09
noonedeadpunkand what `openssl x509 -in /etc/pki/qemu/server-cert.pem -noout -text` tells then?10:19
noonedeadpunkAs for example, in AIO or any prod compute I have `Subject: CN = aio1`10:20
noonedeadpunkOr maybe it's rather `Issuer` CN rather then certificate CN10:20
admin1        Issuer: C = GB, ST = England, CN = Example Corp Openstack Infrastructure Intermediate CA10:23
admin1 ==- this is diff from what i have set in the variables 10:23
admin1is it possible to force recreate and upgrade/update all the certs in the platform ? 10:26
admin1noonedeadpunk https://gist.githubusercontent.com/a1git/f1f31917d64722638b010e9bcf3d4055/raw/3d8b180cd0f17dd0c6dc1ab180e3e769e15bb521/gistfile1.txt 10:31
noonedeadpunkand what's in `openssl x509 -in /etc/pki/qemu/ca-cert.pem -noout -text` then?10:32
noonedeadpunkadmin1: but yes, you can regen certs quite easily10:33
noonedeadpunkfor that you can supply `-e nova_pki_regen_cert=true` to os-nova-install.yml playbook10:33
admin1noonedeadpunk - with the last output added:  https://gist.githubusercontent.com/a1git/f1f31917d64722638b010e9bcf3d4055/raw/3ed5bed19ad8c2a4a1ad9c97a5e9989ffc334a38/gistfile1.txt   10:43
admin1this one says NCloud which is correct10:43
noonedeadpunkYeah, so root/intermediate was changed10:44
noonedeadpunkThus, you indeed need to re-generate certificates10:44
noonedeadpunkThough I'd assume more services should be affected, like rabbit or galera10:44
admin1can i pass nova_pki_regen_cert=true to setup-hosts and setup-infra ? 10:45
admin1i want to run the regen and fix it globally 10:45
admin1so that in case some services are not mixed, it will fix it also 10:45
noonedeadpunkum, no10:55
noonedeadpunkbut you can use `pki_regen_cert=true` there. Likely10:56
noonedeadpunkextra-vars has highest prescedence, so it should work10:57
admin1from time to time, i see this . Lost connection to MySQL server during query  .. max connetions is set to 6000 ... total connections on active 17xx .. on the others 2-3 15:22
noonedeadpunkyeah, as haproxy makes only 1 backend as active one15:42
noonedeadpunkthough it's weird you see such error - it should not happen. 15:43
noonedeadpunkDo you see anything in mariadb logs?15:43
mgariepyor haproxy.17:03
noonedeadpunkyeah, flapping VIP could be a reason17:23
mgariepyor interface reset or something else.17:28
admin1is it possible to have logs only on error ? 17:44
admin1so instead of normal logs for services, where it logs all lines all the time, every request, maybe a possiblity to reduce it even further and have it log only on errror17:44
noonedeadpunksure, you can do that. but I think there's no variable in osa to allign log verbosity, so only overrides can be leverage for that as of today17:58
opendevreviewMerged openstack/openstack-ansible-repo_server master: Add TLS support to repo_server backends  https://review.opendev.org/c/openstack/openstack-ansible-repo_server/+/87642921:03
opendevreviewDmitriy Rabotyagov proposed openstack/ansible-config_template master: Revert "Publish openstack.config_template on galaxy"  https://review.opendev.org/c/openstack/ansible-config_template/+/88166821:39
opendevreviewDmitriy Rabotyagov proposed openstack/ansible-config_template master: Bump collection version in metafile  https://review.opendev.org/c/openstack/ansible-config_template/+/88192921:40
opendevreviewDmitriy Rabotyagov proposed openstack/ansible-config_template master: Bump collection version in metafile  https://review.opendev.org/c/openstack/ansible-config_template/+/88192921:41

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