Bug 1168203 - Installing a host on el7 fails with yum syntax errors (vdsm installation fails)
Summary: Installing a host on el7 fails with yum syntax errors (vdsm installation fails)
Keywords:
Status: CLOSED DUPLICATE of bug 1168689
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: 3.5
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 3.5.1
Assignee: Yaniv Bronhaim
QA Contact: Gil Klein
URL:
Whiteboard: infra
: 1168143 (view as bug list)
Depends On:
Blocks: oVirt_3.5.1_tracker
TreeView+ depends on / blocked
 
Reported: 2014-11-26 12:04 UTC by Amit Aviram
Modified: 2016-02-10 19:32 UTC (History)
13 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-11-30 14:41:13 UTC
oVirt Team: Infra
Embargoed:


Attachments (Terms of Use)
ovirt-engine-3.5/var/log/ovirt-engine/host-deploy log file (308.94 KB, text/plain)
2014-11-26 12:06 UTC, Amit Aviram
no flags Details

Description Amit Aviram 2014-11-26 12:04:23 UTC
Description of problem: Installing a host on el7 fails with yum syntax errors.

While trying to install a host on el7 error occurred with yum syntax errors- the engine's error log is attached. 
after manually yum installing vdsm on the host, the reinstallation completes successfully. (also glusterfs was needed to be installed, I've opened another bug for it.)


Version-Release number of selected component (if applicable):
engine built from source with commit hash: 4d412660f9dcf2fbe057fc99058ba5d8d97520f1

otopi version:
otopi-1.3.1-0.0.master.20141027.git34aedec.fc20.noarch
otopi-java-1.3.1-0.0.master.20141027.git34aedec.fc20.noarch

yum version on the host:
# yum --version
3.4.3
  Installed: rpm-4.11.1-16.el7.x86_64 at 2014-10-06 10:59
  Built    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> at 2014-03-24 11:24
  Committed: Panu Matilainen <pmatilai> at 2014-03-24

  Installed: subscription-manager-1.10.14-8.el7_0.x86_64 at 2014-10-06 13:01
  Built    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> at 2014-05-27 14:41
  Committed: ckozak <ckozak> at 2014-05-27

  Installed: yum-3.4.3-118.el7.noarch at 2014-10-06 10:59
  Built    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> at 2014-04-15 13:54
  Committed: James Antill <james.antill> at 2014-04-15

How reproducible:
100% at my host, didn't try on other hosts..

Steps to Reproduce:
1. add an el7 host to ovirt
2. 
3.

Actual results:
fails with yum errors as described above & in the attached log

Expected results:
installation should succeed

Additional info:

Comment 1 Amit Aviram 2014-11-26 12:06:20 UTC
Created attachment 961632 [details]
ovirt-engine-3.5/var/log/ovirt-engine/host-deploy log file

Comment 2 Gil Klein 2014-11-26 12:22:24 UTC
Amit, is this the same issue as BZ #1168143 ?

Comment 3 Amit Aviram 2014-11-26 13:09:46 UTC
It is, and BZ #1168143 has been splitted to this bug and BZ #1168208 as asked.

Comment 4 Gil Klein 2014-11-26 13:13:18 UTC
*** Bug 1168143 has been marked as a duplicate of this bug. ***

Comment 5 Alon Bar-Lev 2014-11-26 16:59:03 UTC
per what stated in bug#1168143, this has nothing to do with ovirt-host-deploy, reassigning to vdsm.

Comment 6 Dan Kenigsberg 2014-11-26 22:30:03 UTC
Copying relevant information from bug#1168143

2014-11-26 10:43:56 INFO otopi.plugins.otopi.packagers.yumpackager yumpackager.info:92 Yum update: 19/35: vdsm-4.16.7-70.git3bb122c.el7.x86_64
2014-11-26 10:43:58 DEBUG otopi.plugins.otopi.packagers.yumpackager yumpackager.verbose:88 Yum Script sink: warning: /etc/vdsm/vdsm.conf created as /etc/vdsm/vdsm.conf.rpmnew
Traceback (most recent call last):
  File "/usr/bin/vdsm-tool", line 224, in <module>
    sys.exit(main())
  File "/usr/bin/vdsm-tool", line 210, in main
    except vdsm.tool.UsageError as e:
AttributeError: 'module' object has no attribute 'UsageError'

Comment 7 Yaniv Bronhaim 2014-11-27 18:28:04 UTC
is it an upgrade? can you reproduce it?
It seems like you upgraded your installed vdsm. can you specify the version you had before the upgrade? guess yum.log can tell it. this issue might be fixed already..

Comment 8 Mooli Tayer 2014-11-27 19:15:10 UTC
1.) I cannot reproduce on centos 7:
# sudo vdsm-tool configure --force

Checking configuration status...

libvirt is not configured for vdsm yet

Running configure...
rpm -qv vdsm
Reconfiguration of sebool is done.
Reconfiguration of libvirt is done.

Done configuring modules to VDSM.
# rpm -qv vdsm
vdsm-4.16.7-72.git333e4a2.el7.centos.x86_64
# cat /etc/redhat-release 
CentOS Linux release 7.0.1406 (Core) 

2.) This might be a duplicate of the recent bug 1155292 (root issue in bug 1157185) I will check tomorrow if the fix was indeed between 4.16.7-70 and 4.16.7-72

3.) afaiu this bug report indicates 2 errors:
something goes wrong during vdsm-tool configure (2.) ?)
We want to raise an exception but cannot because of an import error,
We should look at that too

Comment 9 Yaniv Bronhaim 2014-11-30 14:41:13 UTC

*** This bug has been marked as a duplicate of bug 1168689 ***


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