[ovirt-users] Max number of api calls per user?

Grundmann, Christian Christian.Grundmann at fabasoft.com
Wed Jan 11 14:16:29 UTC 2017


Hi,

is there a maximum number of sessions per user?

 

I am doing python-api calls to remove VMs

If I call my script 30 times simultaneously, one or two get an error.

 

Traceback (most recent call last):
  File "remove_vm.py", line 24, in <module>
    if VMNAME in [vm.name for vm in api.vms.list()]:
  File
"/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/brokers.py", line
35761, in list
    headers={"All-Content":all_content}
  File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py",
line 46, in get
    return self.request(method='GET', url=url, headers=headers, cls=cls)
  File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py",
line 122, in request
    persistent_auth=self.__persistent_auth
  File
"/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/connectionspool.py
", line 79, in do_request
    persistent_auth)
  File
"/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/connectionspool.py
", line 162, in __do_request
    raise errors.RequestError(response_code, response_reason, response_body)
ovirtsdk.infrastructure.errors.RequestError: 
status: 401
reason: Unauthorized
detail: User is not logged in.

 

 

Is there some setting I can tune?

 

Thx Christian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20170111/72832a2c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5542 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/users/attachments/20170111/72832a2c/attachment-0001.p7s>


More information about the Users mailing list