Bug 1441164 - [Fedora] minidnf fail to solve provided names
Summary: [Fedora] minidnf fail to solve provided names
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: otopi
Classification: oVirt
Component: Plugins.packagers
Version: master
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.4.0
: ---
Assignee: Yedidyah Bar David
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: ovirt-dnf-2.0-support oVirt_on_Fedora
TreeView+ depends on / blocked
 
Reported: 2017-04-11 11:29 UTC by Sandro Bonazzola
Modified: 2019-11-07 11:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-07 11:23:44 UTC
oVirt Team: Integration
Embargoed:
rule-engine: ovirt-4.3+
ylavi: Triaged+


Attachments (Terms of Use)

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.


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