Bug 785708 - vds_bootstrap - dependencies of vdsm are missing during adding host
Summary: vds_bootstrap - dependencies of vdsm are missing during adding host
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: 3.2
Assignee: Dan Kenigsberg
QA Contact:
URL:
Whiteboard: infra
: 782387 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-30 12:23 UTC by Pavel Stehlik
Modified: 2013-03-12 10:57 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-12 10:46:33 UTC
oVirt Team: ---


Attachments (Terms of Use)
bootstrap log (2.23 KB, application/x-gzip)
2012-01-30 12:23 UTC, Pavel Stehlik
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 1889 0 None None None Never

Description Pavel Stehlik 2012-01-30 12:23:24 UTC
Created attachment 558311 [details]
bootstrap log

Description of problem:
 When older vdsm & vdsm-cli are installed on the host & there is in repo newer vdsm - when adding host host to the setup fails.
Att bootstrap.log

Version-Release number of selected component (if applicable):
vdsm-bootstrap-4.9.3.2-0.fc16.noarch

How reproducible:
100%

Steps to Reproduce:
1. have an older setup (host has older vdsm installed), engine-cleanup, yum update, engine-setup
2. new vdsm & vdsm-cli has to be available in yum on host
3. login to webadmin & try to add host
  
Actual results:


Expected results:


Additional info:
...
Transaction Check Error:
  file /usr/share/vdsm/SecureXMLRPCServer.pyc from install of vdsm-4.9.3.2-0.fc16.x86_64 conflicts with file from package vdsm-cli-4.9.3.1-0.fc16.noarch
  file /usr/share/vdsm/SecureXMLRPCServer.pyo from install of vdsm-4.9.3.2-0.fc16.x86_64 conflicts with file from package vdsm-cli-4.9.3.1-0.fc16.noarch
  file /usr/share/vdsm/vdscli.pyc from install of vdsm-4.9.3.2-0.fc16.x86_64 conflicts with file from package vdsm-cli-4.9.3.1-0.fc16.noarch
  file /usr/share/vdsm/vdscli.pyo from install of vdsm-4.9.3.2-0.fc16.x86_64 conflicts with file from package vdsm-cli-4.9.3.1-0.fc16.noarch

Error Summary
-------------


Mon, 30 Jan 2012 09:50:46 DEBUG    <BSTRAP component='VDS PACKAGES' status='FAIL' result='vdsm' message='Loaded plugins: langpacks, presto, refresh-packagekit Setting up Update Process Resolving Dependencies --&gt; Running transaction check ---&gt; Package vdsm.x86_64 0:4.9.3.1-0.fc16 will be updated ---&gt; Package vdsm.x86_64 0:4.9.3.2-0.fc16 will be an update --&gt; Finished Dependency Resolution  Dependencies Resolved  ================================================================================  Package      Arch           Version                 Repository            Size ================================================================================ Updating:  vdsm         x86_64         4.9.3.2-0.fc16          ovirt-engine         552 k  Transaction Summary ================================================================================ Upgrade       1 Package  Total download size: 552 k Downloading Packages: Setting up and reading Presto delta metadata Running Transaction Check Running Transaction Test   Transaction Check Error:   file /usr/share/vdsm/SecureXMLRPCServer.pyc from install of vdsm-4.9.3.2-0.fc16.x86_64 conflicts with file from package vdsm-cli-4.9.3.1-0.fc16.noarch   file /usr/share/vdsm/SecureXMLRPCServer.pyo from install of vdsm-4.9.3.2-0.fc16.x86_64 conflicts with file from package vdsm-cli-4.9.3.1-0.fc16.noarch   file /usr/share/vdsm/vdscli.pyc from install of vdsm-4.9.3.2-0.fc16.x86_64 conflicts with file from package vdsm-cli-4.9.3.1-0.fc16.noarch   file /usr/share/vdsm/vdscli.pyo from install of vdsm-4.9.3.2-0.fc16.x86_64 conflicts with file from package vdsm-cli-4.9.3.1-0.fc16.noarch  Error Summary -------------  '/>
Mon, 30 Jan 2012 09:50:46 ERROR    packagesExplorer test failed
...

Comment 1 David Jaša 2012-01-30 13:42:31 UTC
I hit it today too. It seems as more of yum/rpm design bug but vdsm should be able to work around it nonetheless as it probably won't be fixed anytime soon.

Running 'yum -y update "vdsm*"' (with asterisks that gets other vdsm-something packages updated, too) should do the trick.

Comment 2 Alon Bar-Lev 2013-03-12 10:46:33 UTC
commit 21b6561bb24db9c1043adac545f7d18989b7b3a2
Author: Alon Bar-Lev <alonbl>
Date:   Thu Oct 25 18:11:19 2012 +0200

    packaging: add vdsm-cli dependency to vdsm
    
    dumpStorageTable.py was moved[1][2] from vdsm-cli to vdsm package.
    
    As result when updating vdsm without vdsm-cli there is a conflict
    between the old vdsm-cli and the new vdsm packages.
    
    Our old bootstrap code which is shipped with rhevm-3.0 installs
    packages one by one, failing any bootstrap if such conflict exists.
    
    The temporary simplest solution is to pull vdsm-cli into dependency try
    of vdsm package, this dependency will be removed in future when
    newer vdsm-bootstrap be distributed to all rhevm machines.
    
    [1] Ic9dfdc2
    [2] http://gerrit.ovirt.org/1889
    
    Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=870079
    Change-Id: Ie62e19d5e1abf9c0e33b11313018a6d59640ae9c
    Signed-off-by: Alon Bar-Lev <alonbl>

Comment 3 Alon Bar-Lev 2013-03-12 10:57:16 UTC
*** Bug 782387 has been marked as a duplicate of this bug. ***


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