On 02/28/2012 12:21 PM, Deepak C Shetty wrote:
> Hello,
> Trying vdsClient for the first time.
> I am getting the below error for any cmd I am trying to use...
>
> [root@llm65 ~]# vdsClient
llm65.in.ibm.com getVGList
> Traceback (most recent call last):
> File "/usr/share/vdsm/vdsClient.py", line 1972, in <module>
> code, message = commands[command][0](commandArgs)
> File "/usr/share/vdsm/vdsClient.py", line 524, in getVGList
> vgs = self.s.getVGList()
> File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
> return self.__send(self.__name, args)
> File "/usr/lib64/python2.7/xmlrpclib.py", line 1575, in __request
> verbose=self.__verbose
> File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request
> return self.single_request(host, handler, request_body, verbose)
> File "/usr/lib64/python2.7/xmlrpclib.py", line 1294, in single_request
> response = h.getresponse(buffering=True)
> File "/usr/lib64/python2.7/httplib.py", line 1027, in getresponse
> response.begin()
> File "/usr/lib64/python2.7/httplib.py", line 407, in begin
> version, status, reason = self._read_status()
> File "/usr/lib64/python2.7/httplib.py", line 371, in _read_status
> raise BadStatusLine(line)
> BadStatusLine: ''
>
>
> [root@llm65 ~]# vdsClient
llm65.in.ibm.com getConnectedStoragePoolsList
> Traceback (most recent call last):
> File "/usr/share/vdsm/vdsClient.py", line 1972, in <module>
> code, message = commands[command][0](commandArgs)
> File "/usr/share/vdsm/vdsClient.py", line 1056, in
> getConnectedStoragePoolsList
> pools = self.s.getConnectedStoragePoolsList()
> File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
> return self.__send(self.__name, args)
> File "/usr/lib64/python2.7/xmlrpclib.py", line 1575, in __request
> verbose=self.__verbose
> File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request
> return self.single_request(host, handler, request_body, verbose)
> File "/usr/lib64/python2.7/xmlrpclib.py", line 1294, in single_request
> response = h.getresponse(buffering=True)
> File "/usr/lib64/python2.7/httplib.py", line 1027, in getresponse
> response.begin()
> File "/usr/lib64/python2.7/httplib.py", line 407, in begin
> version, status, reason = self._read_status()
> File "/usr/lib64/python2.7/httplib.py", line 371, in _read_status
> raise BadStatusLine(line)
> BadStatusLine: ''
>
> Note : I am running the above on the host (llm65) & already have
> configured FC, storage via OE
> and via OE, I am able to create and run VMs also, but vdsClient fails
> to give the VG and SP lists.
>
If your vdsm is running with SSL, you must pass the argument -s (SSL),
like:
vdsClient -s myHost command
Otherwise, -s should be ignored.
'Guess i was running with vdsm deafults so ssl was on. Its hard to
relate the 'BadStatusLine" to ssl issue:)
`vdsClient -s
getConnectedStoragePoolsList` worked for me
instead of -s <hostname>, -s 0 also worked, as I learnt from the
vdsClient manpage.
Does 0 stand for localhost here ?