
On 01/11/2017 03:45 PM, Grundmann, Christian wrote:
@ 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?
I call the python script multiple times for different VMs from different shells.
@ 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?
Script started @14:57:34 Error @14:57:35
/var/log/ovirt-engine/server.log Nothing around that time
/var/log/ovirt-engine/engine.log:
I think this error can be caused by the following bug: ovirt-shell: sporadic HTTP 500 errors https://bugzilla.redhat.com/1396833 It will be fixed in release 4.0.7.
2017-01-11 14:57:34,015 INFO [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default task-109) [642e44ba] User admin@internal successfully logged in with scopes: ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:public-authz-search ovirt-ext=token-info:validate 2017-01-11 14:57:34,139 ERROR [org.ovirt.engine.api.restapi.util.LinkHelper] (default task-41) [] Can't find relative path for class "org.ovirt.engine.api.resource.VmDisksResource", will return null 2017-01-11 14:57:34,139 ERROR [org.ovirt.engine.api.restapi.util.LinkHelper] (default task-41) [] Can't find relative path for class "org.ovirt.engine.api.resource.VmDisksResource", will return null 2017-01-11 14:57:34,149 INFO [org.ovirt.engine.core.bll.aaa.LogoutSessionCommand] (default task-41) [1aa17f11] Running command: LogoutSessionCommand internal: false. 2017-01-11 14:57:34,238 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-97) [601ac7b6] User admin@internal successfully logged out 2017-01-11 14:57:34,328 INFO [org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default task-46) [10ffdf24] Running command: CreateUserSessionCommand internal: false. 2017-01-11 14:57:34,339 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-87) [5f84b0d0] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:34,340 INFO [org.ovirt.engine.core.bll.aaa.SessionDataContainer] (default task-87) [5f84b0d0] Not removing session 'y71cMky/m5Du0v4Hk9yWL3ppHW+kN2GXg07SajV6RQgOxC7hn6kFzpFwCu5iwEpiYq6EkBSEOgi w4RvsYG6ljA==', session has running commands for user 'admin@internal'. 2017-01-11 14:57:34,379 INFO [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default task-113) [] User admin@internal successfully logged in with scopes: ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:public-authz-search ovirt-ext=token-info:validate 2017-01-11 14:57:34,390 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-41) [1aa17f11] Correlation ID: 1aa17f11, Call Stack: null, Custom Event ID: -1, Message: User admin@internal logged out. 2017-01-11 14:57:34,405 INFO [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default task-93) [] User admin@internal successfully logged in with scopes: ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:public-authz-search ovirt-ext=token-info:validate 2017-01-11 14:57:34,409 INFO [org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default task-86) [779c3119] Running command: CreateUserSessionCommand internal: false. 2017-01-11 14:57:34,414 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-127) [] User admin@internal successfully logged out 2017-01-11 14:57:34,423 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-5) [70e23ef9] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:34,433 INFO [org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default task-90) [1ddb1bec] Running command: CreateUserSessionCommand internal: false. 2017-01-11 14:57:34,452 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-117) [] User admin@internal successfully logged out 2017-01-11 14:57:34,462 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-80) [4634514] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:34,493 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-128) [] User admin@internal successfully logged out 2017-01-11 14:57:34,504 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-88) [3ff7029c] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:34,509 ERROR [org.ovirt.engine.api.restapi.util.LinkHelper] (default task-90) [] Can't find relative path for class "org.ovirt.engine.api.resource.VmDisksResource", will return null 2017-01-11 14:57:34,509 ERROR [org.ovirt.engine.api.restapi.util.LinkHelper] (default task-90) [] Can't find relative path for class "org.ovirt.engine.api.resource.VmDisksResource", will return null 2017-01-11 14:57:34,513 INFO [org.ovirt.engine.core.bll.aaa.LogoutSessionCommand] (default task-90) [26eb0e8c] Running command: LogoutSessionCommand internal: false. 2017-01-11 14:57:34,538 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-121) [] User admin@internal successfully logged out 2017-01-11 14:57:34,543 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-90) [26eb0e8c] Correlation ID: 26eb0e8c, Call Stack: null, Custom Event ID: -1, Message: User admin@internal logged out. 2017-01-11 14:57:34,549 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-118) [6b0d30df] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:34,579 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-104) [] User admin@internal successfully logged out 2017-01-11 14:57:34,589 ERROR [org.ovirt.engine.api.restapi.util.LinkHelper] (default task-46) [] Can't find relative path for class "org.ovirt.engine.api.resource.VmDisksResource", will return null 2017-01-11 14:57:34,589 ERROR [org.ovirt.engine.api.restapi.util.LinkHelper] (default task-46) [] Can't find relative path for class "org.ovirt.engine.api.resource.VmDisksResource", will return null 2017-01-11 14:57:34,589 ERROR [org.ovirt.engine.api.restapi.util.LinkHelper] (default task-46) [] Can't find relative path for class "org.ovirt.engine.api.resource.VmDisksResource", will return null 2017-01-11 14:57:34,589 ERROR [org.ovirt.engine.api.restapi.util.LinkHelper] (default task-46) [] Can't find relative path for class "org.ovirt.engine.api.resource.VmDisksResource", will return null 2017-01-11 14:57:34,590 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-95) [e63a4b5] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:34,608 INFO [org.ovirt.engine.core.bll.aaa.LogoutSessionCommand] (default task-46) [8ec575] Running command: LogoutSessionCommand internal: false. 2017-01-11 14:57:34,620 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-46) [8ec575] Correlation ID: 8ec575, Call Stack: null, Custom Event ID: -1, Message: User admin@internal logged out. 2017-01-11 14:57:34,621 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-66) [] User admin@internal successfully logged out 2017-01-11 14:57:34,632 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-111) [1d758723] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:34,634 INFO [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default task-98) [] User admin@internal successfully logged in with scopes: ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:public-authz-search ovirt-ext=token-info:validate 2017-01-11 14:57:34,649 ERROR [org.ovirt.engine.api.restapi.util.LinkHelper] (default task-86) [] Can't find relative path for class "org.ovirt.engine.api.resource.VmDisksResource", will return null 2017-01-11 14:57:34,649 ERROR [org.ovirt.engine.api.restapi.util.LinkHelper] (default task-86) [] Can't find relative path for class "org.ovirt.engine.api.resource.VmDisksResource", will return null 2017-01-11 14:57:34,661 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-29) [] User admin@internal successfully logged out 2017-01-11 14:57:34,662 INFO [org.ovirt.engine.core.bll.aaa.LogoutSessionCommand] (default task-86) [79018786] Running command: LogoutSessionCommand internal: false. 2017-01-11 14:57:34,663 INFO [org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default task-115) [159567e6] Running command: CreateUserSessionCommand internal: false. 2017-01-11 14:57:34,674 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-27) [437feff3] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:34,713 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-86) [79018786] Correlation ID: 79018786, Call Stack: null, Custom Event ID: -1, Message: User admin@internal logged out. 2017-01-11 14:57:34,736 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-106) [] User admin@internal successfully logged out 2017-01-11 14:57:34,747 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-2) [5d0322ea] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:34,775 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-124) [] User admin@internal successfully logged out 2017-01-11 14:57:34,786 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-123) [6801a804] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:34,813 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-122) [3f73178e] User admin@internal successfully logged out 2017-01-11 14:57:34,823 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-31) [6accfc49] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:34,838 ERROR [org.ovirt.engine.api.restapi.util.LinkHelper] (default task-115) [] Can't find relative path for class "org.ovirt.engine.api.resource.VmDisksResource", will return null 2017-01-11 14:57:34,838 ERROR [org.ovirt.engine.api.restapi.util.LinkHelper] (default task-115) [] Can't find relative path for class "org.ovirt.engine.api.resource.VmDisksResource", will return null 2017-01-11 14:57:34,848 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-72) [] User admin@internal successfully logged out 2017-01-11 14:57:34,848 INFO [org.ovirt.engine.core.bll.aaa.LogoutSessionCommand] (default task-115) [e7cc467] Running command: LogoutSessionCommand internal: false. 2017-01-11 14:57:34,850 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-115) [e7cc467] Correlation ID: e7cc467, Call Stack: null, Custom Event ID: -1, Message: User admin@internal logged out. 2017-01-11 14:57:34,857 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-19) [13a2371a] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:34,881 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-14) [] User admin@internal successfully logged out 2017-01-11 14:57:34,890 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-7) [1121b52c] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:34,914 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-52) [7b9d8c85] User admin@internal successfully logged out 2017-01-11 14:57:34,924 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-32) [779d5e1b] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:34,950 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-77) [25acd31d] User admin@internal successfully logged out 2017-01-11 14:57:34,960 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-71) [139b42cb] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:34,984 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-49) [6ad03c30] User admin@internal successfully logged out 2017-01-11 14:57:34,993 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-70) [49e9793d] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:35,001 INFO [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default task-4) [87e012e] User admin@internal successfully logged in with scopes: ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:public-authz-search ovirt-ext=token-info:validate 2017-01-11 14:57:35,017 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-54) [7b23ca46] User admin@internal successfully logged out 2017-01-11 14:57:35,025 INFO [org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default task-110) [7c624c47] Running command: CreateUserSessionCommand internal: false. 2017-01-11 14:57:35,160 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-55) [77646ec] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:35,170 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-9) [] Operation Failed: User is not logged in. 2017-01-11 14:57:35,202 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-68) [] User admin@internal successfully logged out 2017-01-11 14:57:35,727 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-107) [5737fe3] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:35,894 INFO [org.ovirt.engine.core.bll.ConcurrentChildCommandsExecutionCallback] (DefaultQuartzScheduler2) [4f83b357] Command 'AddVm' (id: '0edecf3e-b569-4740-a668-716d9cc9c7a0') waiting on child command id: 'a108698e-3700-4e10-bb84-2eb7c240946f' type:'CreateSnapshotFromTemplate' to complete 2017-01-11 14:57:36,023 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-47) [1d991080] User admin@internal successfully logged out 2017-01-11 14:57:36,042 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-76) [e2fc101] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:36,065 INFO [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default task-125) [f1add85] User admin@internal successfully logged in with scopes: ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:public-authz-search ovirt-ext=token-info:validate 2017-01-11 14:57:36,076 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-13) [] User admin@internal successfully logged out 2017-01-11 14:57:36,085 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-18) [7bdcca61] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:36,088 INFO [org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default task-6) [13a410f5] Running command: CreateUserSessionCommand internal: false. 2017-01-11 14:57:36,110 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-11) [21953244] User admin@internal successfully logged out 2017-01-11 14:57:36,118 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-73) [736278fd] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:36,144 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-57) [] User admin@internal successfully logged out 2017-01-11 14:57:36,184 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-59) [5f0ffe54] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:36,243 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-69) [] User admin@internal successfully logged out 2017-01-11 14:57:36,265 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-21) [67729ab5] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:36,289 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-75) [1ae6ee51] User admin@internal successfully logged out 2017-01-11 14:57:36,403 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-28) [4e245041] Running command: TerminateSessionsForTokenCommand internal: true. 2017-01-11 14:57:36,758 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-83) [50e9072b] User admin@internal successfully logged out
/var/log/httpd/ssl_access_log:
2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:54:47 +0100] "GET /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 988391 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:55:15 +0100] "GET /ovirt-engine/api HTTP/1.1" 200 4395 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:55:17 +0100] "GET /ovirt-engine/api/vms;case_sensitive=True HTTP/1.1" 200 980012 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:21 +0100] "GET /ovirt-engine/api HTTP/1.1" 200 4395 2001:67c:1933:c01:faba:c0de:ba5e:4522 - - [11/Jan/2017:14:57:22 +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:22 +0100] "GET /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:23 +0100] "GET /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:jhernand@redhat.com] Gesendet: Mittwoch, 11. Jänner 2017 15:26 An: Grundmann, Christian <Christian.Grundmann@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 <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/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