Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1441164

Summary: [Fedora] minidnf fail to solve provided names
Product: [oVirt] otopi Reporter: Sandro Bonazzola <sbonazzo>
Component: Plugins.packagersAssignee: Yedidyah Bar David <didi>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: masterCC: bugs, didi
Target Milestone: ovirt-4.4.0Flags: rule-engine: ovirt-4.3+
ylavi: Triaged+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-07 11:23:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1455452, 1460625    

Description Sandro Bonazzola 2017-04-11 11:29:10 UTC
While installing ovirt-provider-ovn, python-openvswitch >= 2.6 is required to complete the transaction.

This works fine when you try to install manually (yum install ..), the dependencies are resolved correctly.
The problem is with automated install using python-dnf, like for example during engine-setup. It looks like this is not handled correctly there.
The error message:
[ ERROR ] Failed to execute stage 'Environment customization': package ovirt-provider-ovn-1.1-2.20170406112359.git8dedb67.fc25.noarch requires python-openvswitch >= 2.6, but none of the providers can be installed
log:
2017-04-10 11:19:54 DEBUG otopi.context context._executeMethod:142 method exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/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 360, in _customization
    ) = self._checkForProductUpdate()
  File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine-common/distro-rpm/packages.py", line 245, in _checkForProductUpdate
    if mpm.buildTransaction():
  File "/usr/lib/python2.7/site-packages/otopi/minidnf.py", line 609, in buildTransaction
    ret = self._base.resolve(allow_erasing=True)
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 541, in resolve
    raise exc
DepsolveError: package ovirt-provider-ovn-1.1-2.20170406112359.git8dedb67.fc25.noarch requires python-openvswitch >= 2.6, but none of the providers can be installed


Checked python-openvswitch:
rpm -q --provides python2-openvswitch
 python-openvswitch = 2.7.0-1.fc25
 python2-openvswitch = 2.7.0-1.fc25

So the issue is that minidnf is not able to resolve the provided python-openvswitch = 2.7.0-1.fc25 while dnf succeed.

Comment 1 Sandro Bonazzola 2019-01-21 08:28:48 UTC
re-targeting to 4.3.1 since this BZ has not been proposed as blocker for 4.3.0.
If you think this bug should block 4.3.0 please re-target and set blocker flag.

Comment 2 Sandro Bonazzola 2019-11-06 08:54:29 UTC
Didi, can you check if this can still be reproduced?

Comment 3 Yedidyah Bar David 2019-11-06 09:17:32 UTC
Rebased now https://gerrit.ovirt.org/97131 to test this. Keeping needinfo

Comment 4 Yedidyah Bar David 2019-11-07 11:23:44 UTC
Can't reproduce manually, https://gerrit.ovirt.org/97131 passed CI. Merged it, closing current bug. I guess it was fixed somewhere in the past.