Hide Forgot
Description of problem: [root@navy-vds1 ~]# vdsClient -s 0 getVmsList 9adda0e6-62d7-4bff-8cb6-624da65fdbf2 Traceback (most recent call last): File "/usr/share/vdsm/vdsClient.py", line 2006, in <module> code, message = commands[command][0](commandArgs) File "/usr/share/vdsm/vdsClient.py", line 1295, in do_getVmsList print list['vmlist'].keys() I've added debug print: print list.keys() and it shows thw following keys: ['status', 'args']
1. Aren't you missing the sdUUID param? 2. But also if you add it, you get the exception... (tested on vdsm22-4.5-62.30.el5_5rhev2_2): vdsClient -s 0 getVmsList 4663cd2e-8ec3-4f8b-a185-6377ec334ebf 08820370-09ad-4859-b234-26abfabd03a5 Traceback (most recent call last): File "/usr/share/vdsm/vdsClient.py", line 1956, in ? code, message = commands[command][0](commandArgs) File "/usr/share/vdsm/vdsClient.py", line 1256, in do_getVmsList for entry in list['vmlist']: KeyError: 'vmlist'
getVmsList is an SPM-only command. I suspect you tried it on an HSM. Anyway, vdsClient should check the return code and print the error message.
vdsClient is not supported. getVmsList is an SPM method and will be deprecated in a future version anyway, Deferring.