Bug 1100243
| Summary: | Fencing flow failure | ||
|---|---|---|---|
| Product: | [Retired] oVirt | Reporter: | Piotr Kliczewski <pkliczew> |
| Component: | vdsm | Assignee: | Piotr Kliczewski <pkliczew> |
| Status: | CLOSED DUPLICATE | QA Contact: | Gil Klein <gklein> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.5 | CC: | acathrow, bazulay, bugs, gklein, iheim, mgoldboi, yeylon |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | infra | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: |
Fedora release 20 (Heisenbug)
|
|
| Last Closed: | 2014-05-23 12:22:39 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
For some reason, the jsonrpc option "port=15" is mapped to the arg "secure" in the API. probably a bug in vdsm Bridge.py. There is a bug in Bridge.py which is part of jsonrpc work. The bug do not check whether there are many optional parameters when executing vdsm API which leads to wrong value assignment. This but is fixed as part of jsonrpc work. *** This bug has been marked as a duplicate of bug 1081049 *** |
I am testing jsonrpc changes using master branch with fencing flow and noticed something strange. I am sending following message to vdsm: {"jsonrpc":"2.0","method":"Host.fenceNode","params":{"addr":"rack05-pdu01-lab4.tlv.redhat.com","port":"","agent":"apc_snmp","username":"emesika","password":"<removed>","action":"off","options":"port=15"},"id":"c212299f-42b5-485d-b9ba-bc9880628743"} and I see this error in vdsm logs: sonRpcServer::DEBUG::2014-05-21 13:23:29,405::__init__::493::jsonrpc.JsonRpcServer::(serve_requests) Waiting for request Thread-100::DEBUG::2014-05-21 13:23:29,405::API::1124::vds::(fenceNode) fenceNode(addr=rack05-pdu01-lab4.tlv.redhat.com,port=,agent=apc_snmp,user=emesika,passwd=XXXX,action=status,secure=port=15,options=) Thread-100::DEBUG::2014-05-21 13:23:29,405::utils::729::root::(execCmd) u'/usr/sbin/fence_apc_snmp' (cwd None) Thread-100::DEBUG::2014-05-21 13:23:30,412::utils::749::root::(execCmd) FAILED: <err> = "ERROR:root:Failed: You have to enter plug number or machine identification\n\nERROR:root:Please use '-h' for usage\n\n"; <rc> = 1 Thread-100::DEBUG::2014-05-21 13:23:30,412::API::1111::vds::(fence) rc 1 inp agent=fence_apc_snmp ipaddr=rack05-pdu01-lab4.tlv.redhat.com login=emesika action=status passwd=XXXX out [] err ['ERROR:root:Failed: You have to enter plug number or machine identification', '', "ERROR:root:Please use '-h' for usage", ''] Thread-100::DEBUG::2014-05-21 13:23:30,412::API::1147::vds::(fenceNode) rc 1 in agent=fence_apc_snmp ipaddr=rack05-pdu01-lab4.tlv.redhat.com login=emesika action=status passwd=XXXX out [] err ['ERROR:root:Failed: You have to enter plug number or machine identification', '', "ERROR:root:Please use '-h' for usage", ''] Thread-100::DEBUG::2014-05-21 13:23:30,413::stompReactor::112::yajsonrpc.StompServer::(send) Sending response