Bug 1270139

Summary: [F22] engine-setup doesn't configure version locking for the new dnf packager provided by OTOPI
Product: [oVirt] ovirt-engine Reporter: Sandro Bonazzola <sbonazzo>
Component: Setup.CoreAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kubica <pkubica>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.6.0CC: alonbl, bmcclain, bugs, didi, lveyde, rmartins, sbonazzo, stirabos
Target Milestone: ovirt-3.6.0-rc2Flags: rule-engine: ovirt-3.6.0+
rule-engine: blocker+
bmcclain: planning_ack+
sbonazzo: devel_ack+
pstehlik: testing_ack+
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-27 07:54:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1213594, 1271623    
Bug Blocks: 1162508    

Description Sandro Bonazzola 2015-10-09 05:36:43 UTC
Description of problem:
recent otopi 1.4.0 introduced dnf packager support.
In this condition, version lock plugin which is configured for yum is not working in dnf since dnf plugin uses different configuration files.

See http://dnf-plugins-extras.readthedocs.org/en/latest/versionlock.html
for reference.

Version-Release number of selected component (if applicable):
otopi-1.4.0-0.0.master.20151001075130.git850663a.fc22.noarch


How reproducible:
100%

Steps to Reproduce:
1. install ovirt-engine on F22 with dnf and recent otopi
2. yum update to a newer build
3. all the package are upgraded

Actual results:


Expected results:


Additional info:

Comment 1 Alon Bar-Lev 2015-10-14 11:21:24 UTC
follow spec, not sure I understand why the following remains not for rhel only (or older fedora):

Requires:       yum-plugin-versionlock

%package setup-plugin-ovirt-engine-common
Requires:       yum

also unsure why there is no dnf alternative for:

%postun
if [ "$1" -eq 0 ]; then
        rm -rf "%{engine_cache}"
        rm -rf "%{engine_pki}"

        if [ -f "%{_sysconfdir}/yum/pluginconf.d/versionlock.list" ]; then
                sed -i '/%{name}/d' "%{_sysconfdir}/yum/pluginconf.d/versionlock.list"
        fi
fi

as the dnf version is at /etc/dnf/plugins/versionlock.list

Comment 2 Petr Kubica 2015-11-26 15:41:20 UTC
Verified in ovirt-engine-3.6.1-1.fc22

Comment 3 Sandro Bonazzola 2015-11-27 07:54:37 UTC
Since oVirt 3.6.0 has been released, moving from verified to closed current release.