Red Hat Bugzilla – Bug 988685
yum leaves empty directory when upgrading rhevm-setup
Last modified: 2015-09-22 09:09 EDT
Description of problem:
++ readlink -f /usr/bin/engine-upgrade
++ dirname /usr/share/ovirt-engine/setup/bin/ovirt-engine-setup
+ . /usr/share/ovirt-engine/setup/bin/ovirt-engine-setup.env
+++ '[' -d /etc/ovirt-engine-setup.env.d ']'
+++ readlink -f /usr/bin/engine-upgrade
+++ dirname /usr/share/ovirt-engine/setup/bin/ovirt-engine-setup
++ '[' -z '' ']'
++ '[' -n '' ']'
++ '[' -x /usr/share/ovirt-engine/setup/bin/otopi ']'
+++ cd /usr/share/ovirt-engine/setup/bin
++ export PYTHONPATH=/usr/share/ovirt-engine/setup/bin/..::
+ baseenv='"APPEND:BASE/pluginPath=str:/usr/share/ovirt-engine/setup/bin/../plugins" APPEND:BASE/pluginGroups=str:ovirt-engine-common:ovirt-engine-setup'
+ '[' -n '' ']'
+ exec /usr/sbin/otopi '"APPEND:BASE/pluginPath=str:/usr/share/ovirt-engine/setup/bin/../plugins" APPEND:BASE/pluginGroups=str:ovirt-engine-common:ovirt-engine-setup '
***L:ERROR Internal error: No module named releasepreview
# rpm -qf /usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/releasepreview/
file /usr/share/ovirt-engine/setup/plugins/ovirt-engine-setup/releasepreview is not owned by any package
Version-Release number of selected component (if applicable):
is6 -> is7
Steps to Reproduce:
1. try to upgrade from is6 to is7
# ls -l /usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/releasepreview/
same behaviour with clean installation:
1. engine-upgrade: Failed
2. engine-cleanup: Success
3. engine-setup: Failed
workaround - one can use old engine-upgrade.py directly instead of new
* works for upgrade:
* 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:
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:
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(?).
Signed-off-by: Alon Bar-Lev <firstname.lastname@example.org>
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
3. yum update rhevm-setup
No empty directory is left.
Closing - RHEV 3.3 Released