Hi, I'm building ovirt-engine and ovirt-engine-appliance rpm on CentOS8.
But when I install ovirt using "hosted-engine --deploy" command using local
repository that contains the rpms,
the installation always stucks in "run engine-setup with answerfile".
So I checked engine-setup log in /var/log/ovirt-engine/setup of HostedEngineLocal VM, the
error log is as follow.
I've been trying to solve this problem for a long time, but i'm just not sure what
the problem is.
---
2021-09-08 14:44:23,841+0900 DEBUG otopi.plugins.otopi.dialog.human human.queryString:159
query OVESETUP_ENGINE_DB_PASSWORD
2021-09-08 14:44:23,842+0900 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:204
DIALOG:SEND Engine database password:
2021-09-08 14:44:23,843+0900 DEBUG otopi.ovirt_engine_setup.engine_common.database
database.getCredentials:1343 dbenv: {'OVESETUP_DB/host': 'localhost',
'OVESETUP_DB/port': 5432, 'OVESETUP_DB/secured': False,
'OVESETUP_DB/securedHostValidation': False, 'OVESETUP_DB/database':
'engine', 'OVESETUP_DB/user': 'engine',
'OVESETUP_DB/password': ''}
2021-09-08 14:44:23,845+0900 DEBUG otopi.ovirt_engine_setup.engine_common.database
database.execute:234 Database: 'None', Statement: '
select 1
', args: {}
2021-09-08 14:44:23,846+0900 DEBUG otopi.ovirt_engine_setup.engine_common.database
database.execute:239 Creating own connection
2021-09-08 14:44:23,848+0900 DEBUG otopi.ovirt_engine_setup.engine_common.database
database.tryDatabaseConnect:394 Connection failed
Traceback (most recent call last):
File
"/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine_common/database.py",
line 390, in tryDatabaseConnect
transaction=False,
File
"/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine_common/database.py",
line 248, in execute
database=database,
File
"/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine_common/database.py",
line 181, in connect
sslmode=sslmode,
File "/usr/lib64/python3.6/site-packages/psycopg2/__init__.py", line 130, in
connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
2021-09-08 14:44:23,849+0900 ERROR otopi.ovirt_engine_setup.engine_common.database
database.getCredentials:1361 Cannot connect to Engine database: Cannot connect to
database: could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
---
Regards,
parkyh0413