On Fri, Jun 4, 2021 at 12:15 AM Nir Soffer <nsoffer(a)redhat.com> wrote:
I tried to install engine from rpms on my development host.
This host was running engine development setup (using make install-dev)
for a couple of months.
Building the rpms was successful, but engine-setup failed:
2021-06-03 23:37:41,370+0300 DEBUG otopi.context
context._executeMethod:145 method exception
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/otopi/context.py", line 132,
in _executeMethod
method['method']()
File
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/provisioning/postgres.py",
line 192, in _
misc
self._provisioning.provision()
File
"/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine_common/postgres.py",
line 541, in provision
transaction=localtransaction,
File
"/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine_common/postgres.py",
line 276, in _updatePostgresConf
needUpdate, content = dbovirtutils.getUpdatedPGConf(content)
File
"/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine_common/database.py",
line 1163, in getUpdatedPGConf
expected=item['expected']
File
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/db/configuration.py",
line 136, in <lambd
a>
int(current) >= int(expected)
ValueError: invalid literal for int() with base 10: '8MB'
2021-06-03 23:37:41,372+0300 ERROR otopi.context
context._executeMethod:154 Failed to execute stage 'Misc
configuration': invalid literal for int() with base 10: '8MB'
8MB sounds familiar - this value was recommended in README.adoc:
work_mem = 8MB
So I configured postgresql.conf like this.
I edited /var/lib/pgsql/data/postgresql.conf and change the value to:
work_mem = 8388608
After that engine-setup succeeded.
Looks like a bug, our verification does not support the valid configuration that
we recommend.
Filed
https://bugzilla.redhat.com/show_bug.cgi?id=1968146 . Thanks for
the report.
Best regards,
--
Didi