yuvipanda / hubtraf

Traffic simulator for JupyterHub
BSD 3-Clause "New" or "Revised" License
40 stars 24 forks source link

Issue in the login part #21

Open limbuu opened 4 years ago

limbuu commented 4 years ago

I recently tried to use hubtraf for load testing my jupyterhub application. The simulated user is unable to login or the response after login appears to give 'None' output.

await self.login_handler(log=self.log, hub_url=self.hub_url, session=self.session, username=self.username) 

As a result, the server goes in forever loop inside ensure_server method as :

2020-05-04T09:48:29.308201Z Server: Attempting to Starting action=server-start attempt=7 phase=attempt-start username=manshi-0
2020-05-04T09:48:29.308256Z Server: Hub URL value          url=URL('http://192.168.99.101:30109') username=manshi-0
2020-05-04T09:48:29.315279Z Server: Spawn Response value   response=<ClientResponse(http://192.168.99.101:30109/hub/login?next=/hub/spawn) [200 OK]>
<CIMultiDictProxy('Server': 'TornadoServer/6.0.4', 'Content-Type': 'text/html', 'Date': 'Mon, 04 May 2020 09:48:29 GMT', 'x-jupyterhub-version': '1.2.0dev', 'Access-Control-Allow-Headers': 'accept, content-type, authorization', 'content-security-policy': "frame-ancestors 'self'; report-uri /hub/security/csp-report", 'Etag': '"1a59b8f2a2b69e3f723236bf977c2af0c95dc91b"', 'Content-Length': '4869', 'Connection': 'close')>
 username=manshi-0
2020-05-04T09:48:29.315416Z Server: Target URL tree value  url=URL('http://192.168.99.101:30109/user/manshi-0/tree') username=manshi-0
2020-05-04T09:48:29.315742Z Server: Retrying after response <ClientResponse(http://192.168.99.101:30109/hub/login?next=/hub/spawn) [200 OK]>
<CIMultiDictProxy('Server': 'TornadoServer/6.0.4', 'Content-Type': 'text/html', 'Date': 'Mon, 04 May 2020 09:48:29 GMT', 'x-jupyterhub-version': '1.2.0dev', 'Access-Control-Allow-Headers': 'accept, content-type, authorization', 'content-security-policy': "frame-ancestors 'self'; report-uri /hub/security/csp-report", 'Etag': '"1a59b8f2a2b69e3f723236bf977c2af0c95dc91b"', 'Content-Length': '4869', 'Connection': 'close')>

Is there anything I am missing out? FYI I have used dummy Authenticator and Kubespawner for this test and running hubtraf through python script(not helm chart).