On Mon, May 9, 2022 at 1:25 PM Yedidyah Bar David <d...@redhat.com> wrote: > > On Mon, May 2, 2022 at 6:17 PM Igor Davidoff > <igor.david...@cloudkleyer.de> wrote: > > > > Hello, > > > > i have an issue with 'engine-seup' step on DWH (separate server) aufter > > upgrade from 4.4.10 to 4.5. > > It looks like the ovirt-engine-setup are looking for rpm-package > > 'ovirt-engine' instead of 'ovirt-engine-dwh'. > > > > the reporting error is: > > " > > --== END OF CONFIGURATION ==-- > > > > [ INFO ] Stage: Setup validation > > [ ERROR ] Failed to execute stage 'Setup validation': Command > > '/usr/bin/rpm' failed to execute > > [ INFO ] Stage: Clean up > > Log file is located at > > /var/log/ovirt-engine/setup/ovirt-engine-setup-20220502100751-fqwb07.log > > [WARNING] Remote engine was not configured to be able to access DWH, please > > check the logs. > > [ INFO ] Generating answer file > > '/var/lib/ovirt-engine/setup/answers/20220502101130-setup.conf' > > [ INFO ] Stage: Pre-termination > > [ INFO ] Stage: Termination > > [ ERROR ] Execution of setup failed > > " > > in Setup log i found: > > > > " > > 2022-05-02 10:11:30,000+0000 DEBUG otopi.context context._executeMethod:127 > > Stage validation METHOD > > otopi.plugins.ovirt_engine_setup.ovirt_engine_common.distro-rpm.packages.Plugin._validation > > 2022-05-02 10:11:30,001+0000 DEBUG > > otopi.plugins.ovirt_engine_setup.ovirt_engine_common.distro-rpm.packages > > plugin.executeRaw:813 execute: ('/usr/bin/rpm', '-q', > > '--queryformat=%{version}-%{release}', 'ovirt-engine'), executable='None', > > cwd='None', env=None > > 2022-05-02 10:11:30,013+0000 DEBUG > > otopi.plugins.ovirt_engine_setup.ovirt_engine_common.distro-rpm.packages > > plugin.executeRaw:863 execute-result: ('/usr/bin/rpm', '-q', > > '--queryformat=%{version}-%{release}', 'ovirt-engine'), rc=1 > > 2022-05-02 10:11:30,013+0000 DEBUG > > otopi.plugins.ovirt_engine_setup.ovirt_engine_common.distro-rpm.packages > > plugin.execute:921 execute-output: ('/usr/bin/rpm', '-q', > > '--queryformat=%{version}-%{release}', 'ovirt-engine') stdout: > > package ovirt-engine is not installed > > > > 2022-05-02 10:11:30,013+0000 DEBUG > > otopi.plugins.ovirt_engine_setup.ovirt_engine_common.distro-rpm.packages > > plugin.execute:926 execute-output: ('/usr/bin/rpm', '-q', > > '--queryformat=%{version}-%{release}', 'ovirt-engine') stderr: > > > > > > 2022-05-02 10:11:30,013+0000 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-common/distro-rpm/packages.py", > > line 463, in _validation > > oenginecons.Const.ENGINE_PACKAGE_NAME, > > File "/usr/lib/python3.6/site-packages/otopi/plugin.py", line 931, in > > execute > > command=args[0], > > RuntimeError: Command '/usr/bin/rpm' failed to execute > > 2022-05-02 10:11:30,015+0000 ERROR otopi.context context._executeMethod:154 > > Failed to execute stage 'Setup validation': Command '/usr/bin/rpm' failed > > to execute > > " > > > > usually the upgrade of minor versions in 4.4 was just: > > # yum update ovirt\*setup\* > > # engine-setup > > # yum update > > > > as it did not work, i tried the fresh installation of centos8 stream and > > recovery of DWH Database and configuration: > > # engine-backup --mode=restore --file=backup.bck --provision-all-databases > > -> no luck > > > > the last idea was fresh installation centos8 stream + fresh installation of > > ovirt-engine-dwh 4.5 (without recovery) > > -> the same error. > > > > the engine side works fine. > > > > i compared the current setup logs with the installation and all the minor > > upgrades of ovirt-engine-dwh before 4.5 > > and only found the rpm-validation for the package 'ovirt-engine-dwh': > > > > " > > 2022-02-08 16:11:29,846+0000 DEBUG > > otopi.plugins.ovirt_engine_setup.ovirt_engine_common.distro-rpm.packages > > plugin.executeRaw:813 execute: ('/usr/bin/rpm', '-q', 'ovirt-engine-dwh'), > > executable='None', cwd='None', env=None > > 2022-02-08 16:11:29,877+0000 DEBUG > > otopi.plugins.ovirt_engine_setup.ovirt_engine_common.distro-rpm.packages > > plugin.executeRaw:863 execute-result: ('/usr/bin/rpm', '-q', > > 'ovirt-engine-dwh'), rc=0 > > 2022-02-08 16:11:29,878+0000 DEBUG > > otopi.plugins.ovirt_engine_setup.ovirt_engine_common.distro-rpm.packages > > plugin.execute:921 execute-output: ('/usr/bin/rpm', '-q', > > 'ovirt-engine-dwh') stdout: > > ovirt-engine-dwh-4.4.10-1.el8.noarch > > > > 2022-02-08 16:11:29,878+0000 DEBUG > > otopi.plugins.ovirt_engine_setup.ovirt_engine_common.distro-rpm.packages > > plugin.execute:926 execute-output: ('/usr/bin/rpm', '-q', > > 'ovirt-engine-dwh') stderr: > > > > > > 2022-02-08 16:11:29,878+0000 DEBUG otopi.transaction transaction.commit:152 > > committing 'DWH Engine database Transaction' > > " > > > > It looks like engine-setup knows it is the DWH-Server, but is trying to > > validate the wrong rpm package. > > > > Any Ideas, how to work around this. > > Seems like a bug, caused by me. Sorry. Can you please try this patch > and see if it helps? Thanks. > > https://github.com/oVirt/ovirt-engine/pull/342 packaging: setup: Do > not fail if engine package is missing #342
Now created a bug for it and verified the patch. Thanks for the report! https://bugzilla.redhat.com/show_bug.cgi?id=2083230 Best regards, -- Didi _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/DMUPUBRR2TNIV3TPLFNGQ7XPSI2XIW2A/