oVirt Hosted-Engine Installation Error – HTTP Error 500 Internal Server Error.
I encountered a hair-raising error while installing oVirt Engine on Rocky Linux 8. When an error occurs, you have to go back from the snapshot and start over, which means an incredible waste of time.
The structure is as follows. I will write a post about the installation later.

oVirt Hosted-Engine Installation Error – HTTP Error 500 Internal Server Error.
Error codes:
[ ERROR ] fatal: [localhost -> 192.168.222.91]: FAILED! => {"attempts": 30, "changed": false, "connection": "close", "content": "<html><head><title>Error</title></head><body>500 - Internal Server Error</body></html>", "content_encoding": "identity", "content_length": "86", "content_type": "text/html; charset=UTF-8", "date": "Mon, 09 Jan 2023 19:40:22 GMT", "elapsed": 0, "msg": "Status code was 500 and not [200]: HTTP Error 500: Internal Server Error", "redirected": false, "server": "Apache/2.4.37 (centos) OpenSSL/1.1.1k mod_auth_gssapi/1.6.1 mod_wsgi/4.6.4 Python/3.6", "status": 500, "url": "http://localhost/ovirt-engine/services/health"}
[ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "There was a failure deploying the engine on the local engine VM. The system may not be provisioned according to the playbook results: please check the logs for the issue, fix accordingly or re-deploy from scratch.\n"}
[ ERROR ] Failed to execute stage 'Closing up': Failed executing ansible-playbook
[ ERROR ] Hosted Engine deployment failed: please check the logs for the issue, fix accordingly or re-deploy from scratch.
Log file is located at /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20230109214902-nv4yjx.log
But why?
The source of the problem is updating PostgreSQL during installation. Again, we will prevent this by establishing a connection to the Management VM during the installation phase. As soon as 192.168.222.XXX appears on the command line, you need to log in via SSH.
It asks you to enter the root account information during installation. Don’t forget to note it.

You need to make the SSH connection from the host you are installing from.
ssh root@192.168.222.86
echo "exclude=postgresql-jdbc" >> /etc/dnf/dnf.conf
This is how we get around the problem. An update may come in the future. Click to learn error details on oVirt.org.