Bug 1082391 - Installing new host fails at getting vds capabilities
Summary: Installing new host fails at getting vds capabilities
Keywords:
Status: CLOSED DUPLICATE of bug 1078312
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: 3.5
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Dan Kenigsberg
QA Contact: Gil Klein
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-30 23:41 UTC by John Ford
Modified: 2014-03-31 08:51 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-31 08:51:17 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)
vdsm.log (14.73 MB, text/plain)
2014-03-30 23:41 UTC, John Ford
no flags Details

Description John Ford 2014-03-30 23:41:00 UTC
Created attachment 880550 [details]
vdsm.log

Description of problem:
Adding host fails to get capabilities

Version-Release number of selected component (if applicable):
latest nightly 3/30/2014 ovirt
vdsm-4.14.6-0.fc20.x86_64

How reproducible:
doesntwork4me

Steps to Reproduce:
1. Install ovirt and run engine-setup
2. Login to webui, do inital setup and add localhost as a host
3. Watch host installation fail

Actual results:
Host installation succeeds

Expected results:
It fails

Additional info:

# vdsClient -s 0 getVdsCaps
Unexpected exception

/var/log/ovirt-engine/engine.log is full of stuff like:
2014-03-29 07:42:00,321 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand] (DefaultQuartzScheduler_Worker-27) Failed in GetCapabilitiesVDS method
2014-03-29 07:42:00,321 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand] (DefaultQuartzScheduler_Worker-27) Command org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand return value
 org.ovirt.engine.core.vdsbroker.vdsbroker.VDSInfoReturnForXmlRpc@7b6c55cf
2014-03-29 07:42:00,322 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand] (DefaultQuartzScheduler_Worker-27) HostName = localhost
2014-03-29 07:42:00,322 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand] (DefaultQuartzScheduler_Worker-27) Command GetCapabilitiesVDSCommand(HostName = localhost, HostId = 0748b3ef-30de-45e8-8af3-994d8047e148, vds=Host[localhost]) execution failed. Exception: VDSErrorException: VDSGenericException: VDSErrorException: Failed to GetCapabilitiesVDS, error = Unexpected exception, code = 16
2014-03-29 07:42:00,323 ERROR [org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] (DefaultQuartzScheduler_Worker-27) Failure to refresh Vds runtime info: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException: VDSGenericException: VDSErrorException: Failed to GetCapabilitiesVDS, error = Unexpected exception, code = 16
        at org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand.createDefaultConcreteException(VdsBrokerCommand.java:61) [vdsbroker.jar:]
        at org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase.createException(BrokerCommandBase.java:199) [vdsbroker.jar:]
        at org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase.proceedProxyReturnValue(BrokerCommandBase.java:186) [vdsbroker.jar:]
        at org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.executeVdsBrokerCommand(GetCapabilitiesVDSCommand.java:16) [vdsbroker.jar:]
        at org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand.executeVDSCommand(VdsBrokerCommand.java:96) [vdsbroker.jar:]
        at org.ovirt.engine.core.vdsbroker.VDSCommandBase.executeCommand(VDSCommandBase.java:56) [vdsbroker.jar:]
        at org.ovirt.engine.core.dal.VdcCommandBase.execute(VdcCommandBase.java:31) [dal.jar:]
        at org.ovirt.engine.core.vdsbroker.VdsManager.refreshCapabilities(VdsManager.java:537) [vdsbroker.jar:]
        at org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.beforeFirstRefreshTreatment(VdsUpdateRunTimeInfo.java:909) [vdsbroker.jar:]
        at org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.refreshVdsRunTimeInfo(VdsUpdateRunTimeInfo.java:515) [vdsbroker.jar:]
        at org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.refresh(VdsUpdateRunTimeInfo.java:354) [vdsbroker.jar:]
        at org.ovirt.engine.core.vdsbroker.VdsManager.onTimer(VdsManager.java:237) [vdsbroker.jar:]
        at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) [:1.7.0_51]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
        at org.ovirt.engine.core.utils.timer.JobWrapper.execute(JobWrapper.java:60) [scheduler.jar:]
        at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz.jar:]
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) [quartz.jar:]

and if you look at /var/log/vdsm/vdsm.log :
Thread-29::DEBUG::2014-03-30 19:20:00,030::BindingXMLRPC::1067::vds::(wrapper) client [127.0.0.1]::call getCapabilities with () {} flowID [47494de5]
Thread-29::DEBUG::2014-03-30 19:20:00,031::utils::642::root::(execCmd) '/sbin/ip route show to 0.0.0.0/0 table all' (cwd None)
Thread-29::DEBUG::2014-03-30 19:20:00,038::utils::662::root::(execCmd) SUCCESS: <err> = ''; <rc> = 0
Thread-29::ERROR::2014-03-30 19:20:00,041::BindingXMLRPC::1086::vds::(wrapper) unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/BindingXMLRPC.py", line 1070, in wrapper
    res = f(*args, **kwargs)
  File "/usr/share/vdsm/BindingXMLRPC.py", line 393, in getCapabilities
    ret = api.getCapabilities()
  File "/usr/share/vdsm/API.py", line 1185, in getCapabilities

I've tried multiple ways to install ovirt and get the local host up including allinone, manually and the new hosted engine. They all fail at the getVdsCaps.

Comment 1 John Ford 2014-03-31 01:37:46 UTC
From another angle, this time doing hosted-engine

/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20140330210155-f77q0z.log

2014-03-30 21:21:39 DEBUG otopi.context context._executeMethod:138 Stage misc METHOD otopi.plugins.ovirt_hosted_engine_setup.network.bridge.Plugin._misc
2014-03-30 21:21:39 INFO otopi.plugins.ovirt_hosted_engine_setup.network.bridge bridge._misc:196 Configuring the management bridge
2014-03-30 21:21:40 DEBUG otopi.context context._executeMethod:152 method exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/otopi/context.py", line 142, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/network/bridge.py", line 201, in _misc
    ].s.getVdsCapabilities()['info']['nics'][nics]
KeyError: 'info'
2014-03-30 21:21:40 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Misc configuration': 'info'

Comment 2 Dan Kenigsberg 2014-03-31 08:51:17 UTC
Thread-26::ERROR::2014-03-30 10:01:03,887::BindingXMLRPC::1075::vds::(wrapper) unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/BindingXMLRPC.py", line 1059, in wrapper
    res = f(*args, **kwargs)
  File "/usr/share/vdsm/BindingXMLRPC.py", line 395, in getCapabilities
    self.cif.threadLocal.server)
  File "/usr/lib64/python2.7/site-packages/vdsm/netinfo.py", line 746, in getDeviceByIP
    for ipv4addr in info.get_ipv4_addresses():
SystemError: error return without exception set

It's a known bug in python-ethtool, I'm afraid.

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


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