[ovirt-users] Max number of api calls per user?
Juan Hernández
jhernand at redhat.com
Wed Jan 11 14:26:20 UTC 2017
On 01/11/2017 03:16 PM, Grundmann, Christian wrote:
> Hi,
>
> is there a maximum number of sessions per user?
>
There is no limit, except the available memory.
>
>
> I am doing python-api calls to remove VMs
>
> If I call my script 30 times simultaneously, one or two get an error.
>
What does 'simultaneously' mean exactly? Are you sending the requests in
parallel from different threads? Or from different processes? Or just
sending them in a loop?
The /var/log/ovirt-engine/server.log, /var/log/ovirt-engine/engine.log
and /var/log/httpd/ssl_access_log files can help determine what is
happening. Can you check and maybe share the relevant part of those files?
>
>
> 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
>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
More information about the Users
mailing list