Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1115033

Summary: StoragePool_disconnect: disconnect() takes exactly 4 arguments (3 given)
Product: [Retired] oVirt Reporter: Nir Soffer <nsoffer>
Component: vdsmAssignee: Nir Soffer <nsoffer>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Beňas <pbenas>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.5CC: amureini, bazulay, dcaroest, gklein, iheim, mgoldboi, nsoffer, pstehlik, rbalakri, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: ovirt-3.5.0-beta1.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-17 12:36:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1073943    
Attachments:
Description Flags
engine log
none
vdsm log none

Description Nir Soffer 2014-07-01 12:59:02 UTC
Description of problem:

Disconnection pool fails when using jsonrpc, leaving host in "Unassigned" state. In this state host cannot be changed to any state.

Version-Release number of selected component (if applicable):
vdsm-4.16.0-28.git981aad7.fc19.x86_64

How reproducible:
Always

The error in vdsm log:

Thread-2807::DEBUG::2014-07-01 14:01:57,324::__init__::463::jsonrpc.JsonRpcServer::(_serveRequest) Looking for method 'StoragePool_disconnect' in bridge
JsonRpcServer::DEBUG::2014-07-01 14:01:57,324::__init__::496::jsonrpc.JsonRpcServer::(serve_requests) Waiting for request
Thread-2807::ERROR::2014-07-01 14:01:57,325::__init__::484::jsonrpc.JsonRpcServer::(_serveRequest) Internal server error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/yajsonrpc/__init__.py", line 480, in _serveRequest
    res = method(**params)
  File "/usr/share/vdsm/rpc/Bridge.py", line 239, in _dynamicMethod
    result = fn(*methodArgs)
TypeError: disconnect() takes exactly 4 arguments (3 given)
Thread-2807::DEBUG::2014-07-01 14:01:57,325::stompReactor::136::yajsonrpc.StompServer::(send) Sending response

Comment 1 Nir Soffer 2014-07-01 13:00:14 UTC
Created attachment 913754 [details]
engine log

Comment 2 Nir Soffer 2014-07-01 13:00:49 UTC
Created attachment 913755 [details]
vdsm log

Comment 3 Nir Soffer 2014-07-01 13:21:36 UTC
See also bug 1115044 - seems that engine cannot handle this failure.

Comment 4 Petr Beňas 2014-08-06 08:28:46 UTC
Pleaes provide steps to reproduce.

Comment 5 Nir Soffer 2014-09-08 13:13:06 UTC
(In reply to Petr Beňas from comment #4)
> Pleaes provide steps to reproduce.

1. Setup data center with one active host
2. Put host to maintenance

Expected:
host move to maintenance

Actual results:
host become unsigned, error in vdsm log

Comment 6 Petr Beňas 2014-09-08 15:44:36 UTC
in  oVirt Engine Version: 3.5.0-0.0.master.20140821064931.gitb794d66.el6

Comment 7 Sandro Bonazzola 2014-10-17 12:36:50 UTC
oVirt 3.5 has been released and should include the fix for this issue.