Re: [ovirt-users] Max number of api calls per user?
T > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:23 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:24 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:24 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:25 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:25 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:26 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:26 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:27 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:29 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:29 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:29 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:29 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:30 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:30 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:30 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:31 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:31 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:32 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:32 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 990370 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:33 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:33 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:34 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:35 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 401 155 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:35 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:36 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:37 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:37 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:37 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:37 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:38 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:38 +0100] "GET > /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 > 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:39 +0100] "GET > /ovirt-engine/api HTTP/1.1" 200 4395 > > > > Thx Christian > > -Ursprüngliche Nachricht- > Von: Juan Hernández [mailto:jhern...@redhat.com] > Gesendet: Mittwoch, 11. Jänner 2017 15:26 > An: Grundmann, Christian <christian.grundm...@fabasoft.com>; > 'users@ov
Re: [ovirt-users] Max number of api calls per user?
200 1012092 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:30 +0100] "GET /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:31 +0100] "GET /ovirt-engine/api HTTP/1.1" 200 4395 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:31 +0100] "GET /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:32 +0100] "GET /ovirt-engine/api HTTP/1.1" 200 4395 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:32 +0100] "GET /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 990370 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:33 +0100] "GET /ovirt-engine/api HTTP/1.1" 200 4395 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:33 +0100] "GET /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:34 +0100] "GET /ovirt-engine/api HTTP/1.1" 200 4395 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:35 +0100] "GET /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 401 155 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:35 +0100] "GET /ovirt-engine/api HTTP/1.1" 200 4395 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:36 +0100] "GET /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:37 +0100] "GET /ovirt-engine/api HTTP/1.1" 200 4395 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:37 +0100] "GET /ovirt-engine/api HTTP/1.1" 200 4395 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:37 +0100] "GET /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:37 +0100] "GET /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:38 +0100] "GET /ovirt-engine/api HTTP/1.1" 200 4395 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:38 +0100] "GET /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 1012092 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:39 +0100] "GET /ovirt-engine/api HTTP/1.1" 200 4395 Thx Christian -Ursprüngliche Nachricht- Von: Juan Hernández [mailto:jhern...@redhat.com] Gesendet: Mittwoch, 11. Jänner 2017 15:26 An: Grundmann, Christian <christian.grundm...@fabasoft.com>; 'users@ovirt.org' <users@ovirt.org> Betreff: Re: [ovirt-users] Max number of api calls per user? 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 > > 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/connectionsp > ool.py", > line 79, in do_request > > persistent_auth) > > File > "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/connectionsp > ool.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@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > smime.p7s Description: S/MIME cryptographic signature ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Max number of api calls per user?
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 > > 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@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Max number of api calls per user?
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 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 smime.p7s Description: S/MIME cryptographic signature ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users