
Hi all, I am testing jsonrpc changes 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 Can someone help me to understand where is the issue? Thanks, Piotr

Well this is the error: Am 21.05.2014 13:28, schrieb Piotr Kliczewski:
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
seems vdsm calls fence_apc_snmp in a somewhat wrong way. -- Mit freundlichen Grüßen / Regards Sven Kieske Systemadministrator Mittwald CM Service GmbH & Co. KG Königsberger Straße 6 32339 Espelkamp T: +49-5772-293-100 F: +49-5772-293-333 https://www.mittwald.de Geschäftsführer: Robert Meyer St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen

On Wed, May 21, 2014 at 1:34 PM, Sven Kieske <S.Kieske@mittwald.de> wrote:
Well this is the error:
Am 21.05.2014 13:28, schrieb Piotr Kliczewski:
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
seems vdsm calls fence_apc_snmp in a somewhat wrong way.
The question is why.
-- Mit freundlichen Grüßen / Regards
Sven Kieske
Systemadministrator Mittwald CM Service GmbH & Co. KG Königsberger Straße 6 32339 Espelkamp T: +49-5772-293-100 F: +49-5772-293-333 https://www.mittwald.de Geschäftsführer: Robert Meyer St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen _______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel

----- Original Message -----
From: "Piotr Kliczewski" <piotr.kliczewski@gmail.com> To: devel@ovirt.org Sent: Wednesday, May 21, 2014 2:28:21 PM Subject: [ovirt-devel] [devel] Host fencing test
Hi all,
I am testing jsonrpc changes 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"}
Something in the parameter handling is wrong, I can see here that options= "port=15" .... but look below when VDSM prints what he got
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=)
Here the secure has a strange value (secure=port=15) and the options is empty.
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
Can someone help me to understand where is the issue?
Thanks, Piotr _______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
participants (3)
-
Eli Mesika
-
Piotr Kliczewski
-
Sven Kieske