kubespawner stopped working after kubernetes upgrade from 1.15 to 1.16
See original GitHub issue[E 2019-09-25 05:16:53.998 JupyterHub web:1788] Uncaught exception GET /hub/user/apoliakevitch/ (10.244.4.1)
HTTPServerRequest(protocol='http', host='conda.corp-apps.com', method='GET', uri='/hub/user/apoliakevitch/', version='HTTP/1.1', remote_ip='10.244.4.1')
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tornado/web.py", line 1699, in _execute
result = await result
File "/usr/local/lib/python3.6/dist-packages/jupyterhub/handlers/base.py", line 1013, in get
raise copy.copy(exc).with_traceback(exc.__traceback__)
File "/usr/local/lib/python3.6/dist-packages/tornado/gen.py", line 589, in error_callback
future.result()
File "/usr/local/lib/python3.6/dist-packages/jupyterhub/handlers/base.py", line 636, in finish_user_spawn
await spawn_future
File "/usr/local/lib/python3.6/dist-packages/jupyterhub/user.py", line 489, in spawn
raise e
File "/usr/local/lib/python3.6/dist-packages/jupyterhub/user.py", line 409, in spawn
url = await gen.with_timeout(timedelta(seconds=spawner.start_timeout), f)
File "/usr/local/lib/python3.6/dist-packages/kubespawner/spawner.py", line 1636, in _start
events = self.events
File "/usr/local/lib/python3.6/dist-packages/kubespawner/spawner.py", line 1491, in events
for event in self.event_reflector.events:
File "/usr/local/lib/python3.6/dist-packages/kubespawner/spawner.py", line 72, in events
key=lambda x: x.last_timestamp,
TypeError: '<' not supported between instances of 'datetime.datetime' and 'NoneType'
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:21 (9 by maintainers)
Top Results From Across the Web
Changes in KubeSpawner - Read the Docs
KubeSpawner now require Python 3.5 and is no longer actively tested against Kubernetes clusters versioned 1.10 as before, but is now being tested...
Read more >Preparing for Kubernetes API deprecations when going from ...
There are many such deprecated API removals in 1.16 ... deployed to your 1.15 cluster will likely continue to work after the upgrade....
Read more >Amazon EKS upgrade journey from 1.15 to 1.16 - ITNEXT
Kubernetes 1.16 breaking. The real breaking changes are actually related to deprecated APIs. Release of 1.16 has stopped serving the following:.
Read more >Upgrading kubeadm clusters - Kubernetes
This page explains how to upgrade a Kubernetes cluster created with kubeadm from version 1.25.x to version 1.26.x, and from version 1.26.x ...
Read more >Changelog - Zero to JupyterHub with Kubernetes
Update user-scheduler's kube-scheduler binary and config when in k8s clusters versioned ... build(deps): bump jupyterhub-kubespawner from 1.0.0 to 1.1.0 in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The patch can be done also by the command below.
@dmpe Change deployment
hub
’s.spec.template.spec.containers[0].command
to something like this: