Federico Simoncelli has submitted this change and it was merged.
Change subject: Hack vdsm >=4.16.x for vdsm-tool import issues during upgrade
......................................................................
Hack vdsm >=4.16.x for vdsm-tool import issues during upgrade
Since oVirt 3.5 (vdsm 4.16) we started to install vdsm site-packages under
/usr/lib (python_sitelib). In sys.path the import order first check
under
/usr/lib64. While upgrading vdsm 3.4 to >=3.5 we perform configure call in
%postun which calls vdsm-tool, vdsm-tool tries to import vdsm.tool which
exists both under /usr/lib and under /usr/lib64 in this specific case
before all vdsm 3.4 files were removed. In such case we get failures all
over.
This patch hacks the import part and takes care of importing vdsm.tool
from the /usr/lib on upgrade.
Change-Id: Idf3669b06b308399cb78866d72b592ac2d8b1732
Bug-Url:
https://bugzilla.redhat.com/show_bug.cgi?id=1200467
Signed-off-by: Yaniv Bronhaim <ybronhei(a)redhat.com>
Reviewed-on:
https://gerrit.ovirt.org/39410
Reviewed-by: Federico Simoncelli <fsimonce(a)redhat.com>
---
M vdsm-tool/vdsm-tool
1 file changed, 12 insertions(+), 1 deletion(-)
Approvals:
Yaniv Bronhaim: Verified
Federico Simoncelli: Looks good to me, approved
--
To view, visit
https://gerrit.ovirt.org/39410
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Idf3669b06b308399cb78866d72b592ac2d8b1732
Gerrit-PatchSet: 4
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <ybronhei(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Dima Kuznetsov <dkuznets(a)redhat.com>
Gerrit-Reviewer: Douglas Schilling Landgraf <dougsland(a)redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce(a)redhat.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: mooli tayer <mtayer(a)redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server