Created attachment 1841832 [details] engine-setup log file Description of problem: Error appears when trying to update oVirt Hosted Engine from 4.4.6 to 4.4.9 with engine-setup : [ ERROR ] DNF name '_get_key_for_package' is not defined [ ERROR ] Failed to execute stage 'Package installation': name '_get_key_for_package' is not defined [ INFO ] DNF Performing DNF transaction rollback [ INFO ] Stage: Clean up Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20211115161933-7ffxxw.log [ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20211115162047-setup.conf' [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination [ ERROR ] Execution of setup failed Version-Release number of selected component (if applicable): oVirt 4.4.6 How reproducible: Always Steps to Reproduce: 1. Install oVirt 4.4.6 2. Deploy Hosted Engine 3. Try to update Hosted Engine from 4.4.6 to 4.4.9 Actual results: Error executing engine-setup Expected results: engine-setup completed successfuly Additional info: When I tried to update Hosted Engine I got an error : [ INFO ] Checking for product updates... [ ERROR ] DNF Problem 1: cannot install the best candidate for the job - nothing provides ceph-common needed by ovirt-engine-4.4.9.5-1.el8.noarch - nothing provides python3-cinderlib needed by ovirt-engine-4.4.9.5-1.el8.noarch Problem 2: problem with installed package ovirt-engine-4.4.6.8-1.el8.noarch - cannot install the best update candidate for package ovirt-engine-4.4.6.8-1.el8.noarch - nothing provides ceph-common needed by ovirt-engine-4.4.8.4-1.el8.noarch - nothing provides python3-cinderlib needed by ovirt-engine-4.4.8.4-1.el8.noarch - nothing provides ceph-common needed by ovirt-engine-4.4.9.3-1.el8.noarch - nothing provides python3-cinderlib needed by ovirt-engine-4.4.9.3-1.el8.noarch - nothing provides ceph-common needed by ovirt-engine-4.4.9.4-1.el8.noarch - nothing provides python3-cinderlib needed by ovirt-engine-4.4.9.4-1.el8.noarch - nothing provides ceph-common needed by ovirt-engine-4.4.9.5-1.el8.noarch - nothing provides python3-cinderlib needed by ovirt-engine-4.4.9.5-1.el8.noarch [ INFO ] DNF Performing DNF transaction rollback [ ERROR ] Failed to execute stage 'Environment customization': Problem 1: cannot install the best candidate for the job - nothing provides ceph-common needed by ovirt-engine-4.4.9.5-1.el8.noarch - nothing provides python3-cinderlib needed by ovirt-engine-4.4.9.5-1.el8.noarch Problem 2: problem with installed package ovirt-engine-4.4.6.8-1.el8.noarch - cannot install the best update candidate for package ovirt-engine-4.4.6.8-1.el8.noarch - nothing provides ceph-common needed by ovirt-engine-4.4.8.4-1.el8.noarch - nothing provides python3-cinderlib needed by ovirt-engine-4.4.8.4-1.el8.noarch - nothing provides ceph-common needed by ovirt-engine-4.4.9.3-1.el8.noarch - nothing provides python3-cinderlib needed by ovirt-engine-4.4.9.3-1.el8.noarch - nothing provides ceph-common needed by ovirt-engine-4.4.9.4-1.el8.noarch - nothing provides python3-cinderlib needed by ovirt-engine-4.4.9.4-1.el8.noarch - nothing provides ceph-common needed by ovirt-engine-4.4.9.5-1.el8.noarch - nothing provides python3-cinderlib needed by ovirt-engine-4.4.9.5-1.el8.noarch Next I have installed centos-release-openstack-ussuri and enabled powertools. Next I have execute engine-setup and got this error message : [ ERROR ] DNF name '_get_key_for_package' is not defined Please assist me in solving this propblem.
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.
Did you run `yum update ovirt-release44` ? that should provide the needed repos for upgrading to 4.4.9.
Also, please remove centos-release-openstack-ussuri as 4.4.9 is based on victoria and related repos are provided by ovirt-release44.
https://ovirt.org/documentation/upgrade_guide/index.html#Minor_Release_Updates needs to be updated: ``` Prerequisites The RPM package ovirt-release44.rpm is installed. This package includes the necessary repositories. ``` should be changed to: ``` Prerequisites The RPM package ovirt-release44.rpm is installed and updated to the latest version. This package includes the necessary repositories. Procedure: dnf update -y ovirt-release44 ``` Steve, can you handle please?
*** Bug 2022999 has been marked as a duplicate of this bug. ***
I did all steps from documentation and this thread : 1. yum remove centos-release-openstack-ussuri 2. yum update ovirt-release44 3. engine-upgrade-check 4. yum update ovirt\*setup\* 5. engine-setup And got same error [ INFO ] DNF Downloaded librbd1-16.2.6-1.el8s.x86_64.rpm [ INFO ] DNF Downloaded python3-os-win-5.2.0-1.el8.noarch.rpm [ INFO ] DNF Downloaded python3-cinder-common-17.2.0-1.el8.noarch.rpm [ INFO ] DNF Downloading ovirt-engine-wildfly-23.0.2-1.el8.x86_64.rpm 181760.53/200669.30KB [ INFO ] DNF Downloaded ovirt-engine-wildfly-23.0.2-1.el8.x86_64.rpm [ ERROR ] DNF name '_get_key_for_package' is not defined [ ERROR ] Failed to execute stage 'Package installation': name '_get_key_for_package' is not defined [ INFO ] DNF Performing DNF transaction rollback [ INFO ] Stage: Clean up Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20211115201042-n5pxb2.log [ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20211115201432-setup.conf' [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination [ ERROR ] Execution of setup failed
(In reply to Ilia Molchadsky from comment #6) > I did all steps from documentation and this thread : > > 1. yum remove centos-release-openstack-ussuri > 2. yum update ovirt-release44 > 3. engine-upgrade-check > 4. yum update ovirt\*setup\* > 5. engine-setup > > And got same error > [ INFO ] Stage: Pre-termination > [ INFO ] Stage: Termination > [ ERROR ] Execution of setup failed Ilia, Thank you for your feedback. We'll investigate.
Based on the attached log, it seems like you use CentOS Linux 8.3. Is it so? That's not supported anymore. Please check the release notes page for supported OSes. Based on checking dnf git log, specifically [1] - which fixes the bug you ran into - you might want to check the version of dnf you use. I can't see how you could run into this bug with the version of dnf which was part of CentOS Linux 8.3. [1] https://github.com/rpm-software-management/dnf/commit/60f547dc1f8b4eefeb3bb90c6d53cc2a8d1c8030
Moving to backlog for now. Once this is clarified I can fix the documentation or close as NOTABUG.
I can confirm that upgrading ovirt-release44 on a supported release of CentOS works: dependencies ceph-common and python3-cinderlib are correctly resolved.
Can we close this as NOTABUG?
(In reply to Steve Goodman from comment #11) > Can we close this as NOTABUG? AFAIU only remaining item is comment 4. Please check all occurrences of 'ovirt-release44' - most of them are relevant here. Thanks.
Please review the PR: https://github.com/oVirt/ovirt-site/pull/2654
(In reply to Steve Goodman from comment #13) > Please review the PR: > > https://github.com/oVirt/ovirt-site/pull/2654 This looks correct for updating the engine, but we got similar reports also about hosts [1]. Perhaps we should update docs also for upgrading hosts? [ybardavi@ybardavi www.ovirt.org]$ grep -rw ovirt-release44 source/documentation/common/upgrade source/documentation/common/upgrade/proc-Updating_the_Red_Hat_Virtualization_Manager.adoc:* The RPM package link:https://resources.ovirt.org/pub/yum-repo/ovirt-release44.rpm[ovirt-release44.rpm] is installed. This package includes the necessary repositories. source/documentation/common/upgrade/proc-Manually_Updating_Hosts.adoc:* For {hypervisor-fullname}s, the `ovirt-release44` RPM package enabling the correct repositories is already installed. source/documentation/common/upgrade/proc-Manually_Updating_Hosts.adoc:# dnf install https://resources.ovirt.org/pub/yum-repo/ovirt-release44.rpm source/documentation/common/upgrade/proc-Updating_Individual_Hosts.adoc:* For {hypervisor-fullname}s, the `ovirt-release44` RPM package enabling the correct repositories is already installed. source/documentation/common/upgrade/proc-Updating_Individual_Hosts.adoc:# dnf install https://resources.ovirt.org/pub/yum-repo/ovirt-release44.rpm [1] https://lists.ovirt.org/archives/list/users@ovirt.org/thread/WCX6PU6JYKVGMD7WDGMGGPXB2WFKQKNY/
Nothing to add to didi's comment #14. Make sense to me adding a note to the hosts as well.
OK, I updated the two topics on updating hosts. Please take a look in the PR and let me know what you think.
LGTM.
Richard, can you please do a peer review?
LGTM!
This is published, only visible on the oVirt site.