Hi All,

I am trying to remove the ovirt vms using ovirtsdk.api. However, there have an 
error message shown in console and I have no ideas on it? Is there anyone know 
this issues? Thanks


Coding:

from ovirtsdk.api import API
def connect_xxx(self, context, options):
 server_url = "https://example.com.hk/ovirt-engine/api";
 self.api_connection = API(url=server_url,
                           username="admin@internal",
                           password="123456",
                           ca_file=self.ca,
                           debug=False)
 return True



Console:

2018-12-19 11:55:18     bareos-dir JobId 1195: Start Backup JobId 1195, 
Job=plugin-test-1.2018-12-19_11.55.16_34
2018-12-19 11:55:18     bareos-dir JobId 1195: Using Device "FileStorage" to 
write.
2018-12-19 11:55:18     bareos-fd JobId 1195: Fatal error: python-fd: Traceback 
(most recent call last):
File "/usr/lib64/bareos/plugins/yyy.py", line 13, in 
debug=False)
File "/usr/lib/python2.7/site-packages/ovirtsdk/api.py", line 191, in __init__
url=''
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py", line 
125, in request
return self.__xml2py(response, cls)
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py", line 
137, in __xml2py
return params.parseClass(obj, cls)
File "/usr/lib/python2.7/site-packages/ovirtsdk/xml/params.py", line 50243, in 
parseClass
rootObj.build(rootNode)
File "/usr/lib/python2.7/site-packages/ovirtsdk/xml/params.py", line 47024, in 
build
self.buildChildren(child, node, nodeName_)
File "/usr/lib/python2.7/site-packages/ovirtsdk/xml/params.py", line 47043, in 
buildChildren
dval_ = self.gds_parse_datetime(sval_)
File "/usr/lib/python2.7/site-packages/ovirtsdk/xml/params.py", line 226, in 
gds_parse_datetime
input_data, '%Y-%m-%dT%H:%M:%S.%f')
TypeError: attribute of type 'NoneType' is not callable

2018-12-19 11:55:18     bareos-fd JobId 1195: Fatal error: Failed to 
authenticate Storage daemon.
2018-12-19 11:55:18     bareos-dir JobId 1195: Fatal error: Bad response to 
Storage command: wanted 2000 OK storage
, got 2902 Bad storage

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bareos-devel+unsubscr...@googlegroups.com.
To post to this group, send email to bareos-devel@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to