Bug 2023343 - Hosted Engine update from 4.4.6 to 4.4.9 failed
Summary: Hosted Engine update from 4.4.6 to 4.4.9 failed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: 4.4.6
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ovirt-4.4.10
: ---
Assignee: Steve Goodman
QA Contact: rhev-docs@redhat.com
URL:
Whiteboard:
: 2022999 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-15 13:15 UTC by Ilia Molchadsky
Modified: 2021-12-21 14:15 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-12-21 14:15:35 UTC
oVirt Team: Integration
Embargoed:


Attachments (Terms of Use)
engine-setup log file (8.53 MB, text/plain)
2021-11-15 13:15 UTC, Ilia Molchadsky
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-44015 0 None None None 2021-11-15 13:17:18 UTC

Description Ilia Molchadsky 2021-11-15 13:15:23 UTC
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.

Comment 1 RHEL Program Management 2021-11-15 15:06:08 UTC
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.

Comment 2 Sandro Bonazzola 2021-11-15 15:08:00 UTC
Did you run `yum update ovirt-release44` ?
that should provide the needed repos for upgrading to 4.4.9.

Comment 3 Sandro Bonazzola 2021-11-15 15:09:38 UTC
Also, please remove centos-release-openstack-ussuri as 4.4.9 is based on victoria and related repos are provided by ovirt-release44.

Comment 4 Sandro Bonazzola 2021-11-15 15:15:16 UTC
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?

Comment 5 Sandro Bonazzola 2021-11-15 15:21:20 UTC
*** Bug 2022999 has been marked as a duplicate of this bug. ***

Comment 6 Ilia Molchadsky 2021-11-15 19:12:55 UTC
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

Comment 7 Steve Goodman 2021-11-21 15:48:35 UTC
(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.

Comment 8 Yedidyah Bar David 2021-11-22 06:25:51 UTC
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

Comment 9 Steve Goodman 2021-11-22 10:18:09 UTC
Moving to backlog for now. Once this is clarified I can fix the documentation or close as NOTABUG.

Comment 10 Gianluca Amato 2021-11-23 16:01:49 UTC
I can confirm that upgrading ovirt-release44 on a supported release of CentOS works: dependencies ceph-common and python3-cinderlib are correctly resolved.

Comment 11 Steve Goodman 2021-12-02 11:32:56 UTC
Can we close this as NOTABUG?

Comment 12 Yedidyah Bar David 2021-12-05 08:01:31 UTC
(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.

Comment 13 Steve Goodman 2021-12-09 15:43:36 UTC
Please review the PR:

https://github.com/oVirt/ovirt-site/pull/2654

Comment 14 Yedidyah Bar David 2021-12-12 13:32:44 UTC
(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/

Comment 15 Sandro Bonazzola 2021-12-13 15:03:26 UTC
Nothing to add to didi's comment #14. Make sense to me adding a note to the hosts as well.

Comment 16 Steve Goodman 2021-12-14 08:19:28 UTC
OK, I updated the two topics on updating hosts. Please take a look in the PR and let me know what you think.

Comment 17 Yedidyah Bar David 2021-12-15 13:18:03 UTC
LGTM.

Comment 18 Steve Goodman 2021-12-16 10:37:38 UTC
Richard, can you please do a peer review?

Comment 19 Richard Hoch 2021-12-16 10:42:44 UTC
LGTM!

Comment 20 Steve Goodman 2021-12-21 14:15:35 UTC
This is published, only visible on the oVirt site.


Note You need to log in before you can comment on or make changes to this bug.