Page MenuHomePhabricator

Namespaces not found (pykube, kubernetes)
Closed, DuplicatePublic

Description

hi, i have created new tool (wdq_checker), becoming as this tool and after cmd webservice —backend=kubernetes python shell i have err: "pykube.exceptions.HTTPError: namespaces "wdq_checker" not found" - there is problem in my setup? i dont know, where is the mistake and not found some informations at phabricator or google … sorry. Thanks!

after that i create new tool "Fretties" and there is webservice --backend=kubernetes .... is clear and complete right.

--trace
Traceback (most recent call last):

File "/usr/local/bin/webservice", line 140, in <module>
  start(job, 'Starting webservice')
File "/usr/local/bin/webservice", line 31, in start
  job.request_start()
File "/usr/lib/python2.7/dist-packages/toollabs/webservice/backends/kubernetesbackend.py", line 383, in request_start
  pykube.Deployment(self.api, self._get_deployment()).create()
File "/usr/lib/python2.7/dist-packages/pykube/objects.py", line 76, in create
  self.api.raise_for_status(r)
File "/usr/lib/python2.7/dist-packages/pykube/http.py", line 104, in raise_for_status
  raise HTTPError(payload["message"])

pykube.exceptions.HTTPError: namespaces "wdq_checker" not found

Event Timeline

Frettie created this task.Sep 15 2017, 10:48 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 15 2017, 10:48 PM
chasemp triaged this task as Medium priority.Sep 18 2017, 2:27 PM
chasemp added a subscriber: chasemp.

IIUC from reading on IRC this is due to k8s not understanding namespaces with an underscore. What ended up happening here?

Dalba awarded a token.Feb 15 2019, 8:21 AM
Dalba added a subscriber: Dalba.