Skip to content

Ingress Not Found #1

@SudoBrendan

Description

@SudoBrendan

While creating a lab using all the defaults of this template, and then running:

.workshop/scripts/deploy-spawner

I get an error about not being able to find Ingress objects.

deploy-spawner.sh logs:

### Parsing command line arguments.
### Reading the default configuration.
### Reading the workshop configuration.
### Setting the workshop application.
### Checking spawner configuration.
### Creating spawner application.
W1028 13:48:41.300419   13126 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "template.openshift.io/v1" for your resource
serviceaccount/lab-markdown-sample-spawner created
clusterrolebinding.authorization.openshift.io/lab-markdown-sample-spawner-basic created
clusterrole.authorization.openshift.io/lab-markdown-sample-spawner-extra created
clusterrolebinding.authorization.openshift.io/lab-markdown-sample-spawner-extra created
clusterrole.authorization.openshift.io/lab-markdown-sample-spawner-rules created
clusterrolebinding.authorization.openshift.io/lab-markdown-sample-spawner-rules created
clusterrole.authorization.openshift.io/lab-markdown-sample-session-rules created
clusterrolebinding.authorization.openshift.io/lab-markdown-sample-session-rules created
imagestream.image.openshift.io/lab-markdown-sample-spawner created
configmap/lab-markdown-sample-spawner-configs created
configmap/lab-markdown-sample-session-resources created
configmap/lab-markdown-sample-session-envvars created
deploymentconfig.apps.openshift.io/lab-markdown-sample-spawner created
service/lab-markdown-sample-spawner created
route.route.openshift.io/lab-markdown-sample-spawner created
imagestream.image.openshift.io/lab-markdown-sample-session created
### Waiting for the spawner to deploy.
Waiting for rollout to finish: 0 out of 1 new replicas have been updated...
Waiting for rollout to finish: 0 out of 1 new replicas have been updated...
Waiting for rollout to finish: 0 of 1 updated replicas are available...

Spawner Pod Logs:

+ . /opt/app-root/src/jupyterhub_config.sh
++ CONFIGURATION_TYPE=learning-portal
++ '[' -f /opt/app-root/src/configs/learning-portal.sh ']'
++ . /opt/app-root/src/configs/learning-portal.sh
++ '[' -f /opt/app-root/configs/jupyterhub_config.sh ']'
++ . /opt/app-root/configs/jupyterhub_config.sh
+ trap 'kill -TERM $PID' TERM INT
+ PID=29
+ wait 29
+ jupyterhub -f /opt/app-root/src/jupyterhub_config.py
INFO: Workshop name is 'lab-markdown-sample'.
INFO: Application name is 'lab-markdown-sample'.
INFO: Configuration type is 'learning-portal'.
INFO: Homeroom link is ''.
INFO: Homeroom name is 'homeroom'.
INFO: Service account name is 'lab-markdown-sample-spawner'.
INFO: Namespace is 'lab-helm-101'.
INFO: Full service account name is 'system:serviceaccount:lab-helm-101:lab-markdown-sample-spawner'.
/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
[E 2021-10-28 19:54:54.207 JupyterHub app:2482]
    Traceback (most recent call last):
      File "/opt/app-root/lib/python3.6/site-packages/jupyterhub/app.py", line 2479, in launch_instance_async
        await self.initialize(argv)
      File "/opt/app-root/lib/python3.6/site-packages/jupyterhub/app.py", line 2088, in initialize
        self.load_config_file(self.config_file)
      File "</opt/app-root/lib/python3.6/site-packages/decorator.py:decorator-gen-5>", line 2, in load_config_file
      File "/opt/app-root/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error
        return method(app, *args, **kwargs)
      File "/opt/app-root/lib/python3.6/site-packages/traitlets/config/application.py", line 602, in load_config_file
        raise_config_file_errors=self.raise_config_file_errors,
      File "/opt/app-root/lib/python3.6/site-packages/traitlets/config/application.py", line 563, in _load_config_files
        config = loader.load_config()
      File "/opt/app-root/lib/python3.6/site-packages/traitlets/config/loader.py", line 457, in load_config
        self._read_file_as_dict()
      File "/opt/app-root/lib/python3.6/site-packages/traitlets/config/loader.py", line 489, in _read_file_as_dict
        py3compat.execfile(conf_filename, namespace)
      File "/opt/app-root/lib/python3.6/site-packages/ipython_genutils/py3compat.py", line 198, in execfile
        exec(compiler(f.read(), fname, 'exec'), glob, loc)
      File "/opt/app-root/src/jupyterhub_config.py", line 126, in <module>
        api_version='extensions/v1beta1', kind='Ingress')                                                                                                                                                                              [0/431]
      File "/opt/app-root/lib/python3.6/site-packages/openshift/dynamic/discovery.py", line 213, in get
        raise ResourceNotFoundError('No matches found for {}'.format(kwargs))
    openshift.dynamic.exceptions.ResourceNotFoundError: No matches found for {'api_version': 'extensions/v1beta1', 'kind': 'Ingress'}

ERROR:asyncio:Task exception was never retrieved
future: <Task finished coro=<JupyterHub.launch_instance_async() done, defined at /opt/app-root/lib/python3.6/site-packages/jupyterhub/app.py:2477> exception=SystemExit(1,)>
Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/jupyterhub/app.py", line 2479, in launch_instance_async
    await self.initialize(argv)
  File "/opt/app-root/lib/python3.6/site-packages/jupyterhub/app.py", line 2088, in initialize
    self.load_config_file(self.config_file)
  File "</opt/app-root/lib/python3.6/site-packages/decorator.py:decorator-gen-5>", line 2, in load_config_file
  File "/opt/app-root/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/traitlets/config/application.py", line 602, in load_config_file
    raise_config_file_errors=self.raise_config_file_errors,
  File "/opt/app-root/lib/python3.6/site-packages/traitlets/config/application.py", line 563, in _load_config_files
    config = loader.load_config()
  File "/opt/app-root/lib/python3.6/site-packages/traitlets/config/loader.py", line 457, in load_config
    self._read_file_as_dict()
  File "/opt/app-root/lib/python3.6/site-packages/traitlets/config/loader.py", line 489, in _read_file_as_dict
    py3compat.execfile(conf_filename, namespace)
  File "/opt/app-root/lib/python3.6/site-packages/ipython_genutils/py3compat.py", line 198, in execfile
    exec(compiler(f.read(), fname, 'exec'), glob, loc)
  File "/opt/app-root/src/jupyterhub_config.py", line 126, in <module>
    api_version='extensions/v1beta1', kind='Ingress')
  File "/opt/app-root/lib/python3.6/site-packages/openshift/dynamic/discovery.py", line 213, in get
    raise ResourceNotFoundError('No matches found for {}'.format(kwargs))
openshift.dynamic.exceptions.ResourceNotFoundError: No matches found for {'api_version': 'extensions/v1beta1', 'kind': 'Ingress'}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/jupyterhub/app.py", line 2492, in launch_instance
    loop.start()
  File "/opt/app-root/lib/python3.6/site-packages/tornado/platform/asyncio.py", line 148, in start
    self.asyncio_loop.run_forever()
  File "/opt/rh/rh-python36/root/usr/lib64/python3.6/asyncio/base_events.py", line 421, in run_forever
    self._run_once()
  File "/opt/rh/rh-python36/root/usr/lib64/python3.6/asyncio/base_events.py", line 1426, in _run_once
    handle._run()
  File "/opt/rh/rh-python36/root/usr/lib64/python3.6/asyncio/events.py", line 127, in _run
    self._callback(*self._args)
  File "/opt/app-root/lib/python3.6/site-packages/jupyterhub/app.py", line 2483, in launch_instance_async
    self.exit(1)
  File "/opt/app-root/lib/python3.6/site-packages/traitlets/config/application.py", line 654, in exit
    sys.exit(exit_status)
SystemExit: 1
+ trap - TERM INT
+ wait 29
+ STATUS=1
+ exit 1

My repo: https://github.com/SudoBrendan/lab-test

There's a lot of projects being consolidated in this template, so I'm not sure if I should post this here, or in spawner, or somewhere else. Any guidance is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions