Bug 2022999 - Failed upgrade from self-hosted engine 4.4.6 to 4.4.9 due to missing dependencies on ceph and cirderlib
Summary: Failed upgrade from self-hosted engine 4.4.6 to 4.4.9 due to missing dependen...
Keywords:
Status: CLOSED DUPLICATE of bug 2023343
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Setup.Core
Version: 4.4.9
Hardware: x86_64
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.4.10
: ---
Assignee: Sandro Bonazzola
QA Contact: Lukas Svaty
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-13 21:17 UTC by Gianluca Amato
Modified: 2021-11-15 16:28 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-11-15 15:21:20 UTC
oVirt Team: Integration
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-43996 0 None None None 2021-11-13 21:18:54 UTC

Description Gianluca Amato 2021-11-13 21:17:14 UTC
Description of problem:
The upgrade from a self-hosted ovirt-engine 4.4.6 to 4.4.9 fails during the engine-setup phase. The output of engine-setup is:

[ INFO  ] Stage: Initializing
[ INFO  ] Stage: Environment setup
          Configuration files: /etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf, /etc/ovirt-engine-setup.conf.d/10-packaging.conf, /etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf
          Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20211113210328-cshogg.log
          Version: otopi-1.9.4 (otopi-1.9.4-1.el8)
[ INFO  ] Stage: Environment packages setup
[ INFO  ] Stage: Programs detection
[ INFO  ] Stage: Environment setup (late)
[ INFO  ] Stage: Environment customization
         
          --== PRODUCT OPTIONS ==--
         
[ INFO  ] ovirt-provider-ovn already installed, skipping.
         
          --== PACKAGES ==--
         
[ 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
[ INFO  ] Stage: Clean up
          Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20211113210328-cshogg.log
[ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20211113210337-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of setup failed

Note that:
1) The current engine is 4.4.6, but the original installation was 4.4.3.
2) I have never enabled the cinderlib support, so I wonder if it now compulsory in the latest version of the engine.

How reproducible:
No idea, I only have this system for experimenting.

Comment 1 Patrick 2021-11-14 19:54:33 UTC
What system is used on the hypervisor? The version oVirt 4.4.9 must be used on hypervisors with CentOS Stream or RedHat Enteprise Linix 8.5 Beta. Version 8.4 is missing specific libraries

Comment 2 Gianluca Amato 2021-11-15 09:07:37 UTC
Hosts run oVirt Node 4.4.6.3 (which is based on CentOS Strem), but the oVirt Engine VM runs CentOS 8.4, since previous upgrades did not automatically switch from CentOS to CentOS Stream.

I am still perplexed since CentOS Stream does not provide packages ceph-common and python3-cinderlib, but I'll try switching to CentOS Stream and report my results back.

Comment 3 RHEL Program Management 2021-11-15 11:23:46 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 4 Sandro Bonazzola 2021-11-15 15:21:20 UTC
Starting with 4.4.9 cinderlib support is provided by default on both engine and node side.
Please `yum update -y ovirt-release44` on the hosted engine vm, it will enable the needed repos.

Closing as duplicate of bug #2023343, we are going to update the documentation about this additional step.

*** This bug has been marked as a duplicate of bug 2023343 ***

Comment 5 Ilia Molchadsky 2021-11-15 16:28:18 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


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