Bug 988685
Summary: | yum leaves empty directory when upgrading rhevm-setup | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Jiri Belka <jbelka> |
Component: | ovirt-engine-setup | Assignee: | Alon Bar-Lev <alonbl> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | sefi litmanovich <slitmano> |
Severity: | high | Docs Contact: | |
Priority: | urgent | ||
Version: | 3.3.0 | CC: | acathrow, alonbl, bazulay, fharshav, iheim, lpeer, lsvaty, oschreib, pstehlik, Rhev-m-bugs, yeylon |
Target Milestone: | --- | ||
Target Release: | 3.3.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | integration | ||
Fixed In Version: | is8 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 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: |
Description
Jiri Belka
2013-07-26 06:51:05 UTC
# ls -l /usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/releasepreview/ total 0 same behaviour with clean installation: my steps: 1. engine-upgrade: Failed 2. engine-cleanup: Success 3. engine-setup: Failed workaround - one can use old engine-upgrade.py directly instead of new redesigned ovirt-engine-setup. * works for upgrade: /usr/share/ovirt-engine/scripts/engine-upgrade.py * broken (new upgrade style): # ls -l `which engine-upgrade` lrwxrwxrwx. 1 root root 52 Jul 26 11:00 /usr/bin/engine-upgrade -> /usr/share/ovirt-engine/setup/bin/ovirt-engine-setup alon, similar to http://lists.ovirt.org/pipermail/users/2013-July/015436.html ? (In reply to Itamar Heim from comment #4) > alon, similar to > http://lists.ovirt.org/pipermail/users/2013-July/015436.html ? yes. I don't understand why yum do not cleanup files properly. files were in package then are not, they should have been removed. jiri, you can just remove manually: /usr/share/ovirt-engine/setup/plugins/ovirt-engine-setup/releasepreview/ I will try to find some workaround for yum. I can confirm that this happens with rhevm-setup, I cannot reproduce this with my own specs. Attempting to understand the root cause. So we have this issue with is6, and we cannot fix it in is7 as it already out... and even so, not sure it worth to fix issues from unstable to unstable. But definitely this issue is important for future. packaging: spec: setup: do not leave empty directories on remove when installing files via wildcards, for example: %{_datadir}/*/*.py rpm does not record the directory within his archive, so upon removal this directory is left, while the files are removed. we do want to avoid the need to specify each file within the spec file, as source tree is organized properly, we can add the top level. however, in future if we have the need to split the directory structure into two packages, we will have to work a bit harder while maintaining the spec file, we may consider to generate it(?). Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=988685 Change-Id: I63fe12c6f29ff82588dfabb5df93eaca12154c12 Signed-off-by: Alon Bar-Lev <alonbl> QA NOTICE: As this is fixed in is8, verify can only be done at is9 or using custom build. Upgrede from is11 to is12 works fine. Proccess has changed and is done so: 1. Update REPO files 2. engine-upgrade-check 3. yum update rhevm-setup 4. engine-setup No empty directory is left. Closing - RHEV 3.3 Released Closing - RHEV 3.3 Released Closing - RHEV 3.3 Released |