Page MenuHomePhabricator
Paste P7093

(An Untitled Masterwork)
ActivePublic

Authored by zhuyifei1999 on May 7 2018, 9:54 PM.
toolsbeta.admin@toolsbeta-bastion-01:~$ webservice --backend kubernetes php5.6 start
Starting webservice..
toolsbeta.admin@toolsbeta-bastion-01:~$ kubectl get pods
NAME READY STATUS RESTARTS AGE
admin-1850377006-x00n5 1/1 Running 0 7s
toolsbeta.admin@toolsbeta-bastion-01:~$ kubectl log admin-1850377006-x00n5
W0507 21:52:41.743263 4014 cmd.go:345] log is DEPRECATED and will be removed in a future version. Use logs instead.
toolsbeta.admin@toolsbeta-bastion-01:~$ kubectl logs admin-1850377006-x00n5
toolsbeta.admin@toolsbeta-bastion-01:~$ webservice --backend kubernetes php5.6 shell
If you don't see a command prompt, try pressing enter.
toolsbeta.admin@interactive:~$
toolsbeta.admin@interactive:~$ webservice status
Traceback (most recent call last):
File "/usr/bin/webservice", line 182, in <module>
if job.get_state() != Backend.STATE_STOPPED:
File "/usr/lib/python2.7/dist-packages/toollabs/webservice/backends/kubernetesbackend.py", line 402, in get_state
pod = self._find_obj(pykube.Pod, self.webservice_label_selector)
File "/usr/lib/python2.7/dist-packages/toollabs/webservice/backends/kubernetesbackend.py", line 210, in _find_obj
selector=selector
File "/usr/lib/python2.7/dist-packages/pykube/query.py", line 70, in get
num = len(clone)
File "/usr/lib/python2.7/dist-packages/pykube/query.py", line 122, in __len__
return len(self.query_cache["objects"])
File "/usr/lib/python2.7/dist-packages/pykube/query.py", line 115, in query_cache
cache["response"] = self.execute().json()
File "/usr/lib/python2.7/dist-packages/pykube/query.py", line 99, in execute
r = self.api.get(**kwargs)
File "/usr/lib/python2.7/dist-packages/pykube/http.py", line 125, in get
return self.session.get(*args, **self.get_kwargs(**kwargs))
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 501, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 487, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='toolsbeta-k8s-master-01.toolsbeta.eqiad.wmflabs', port=6443): Max retries exceeded with url: /api/v1/namespaces/admin/pods?labelSelector=tools.wmflabs.org%2Fwebservice-version%3D1%2Cname%3Dadmin%2Ctools.wmflabs.org%2Fwebservice%3Dtrue (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fbe91f6ded0>: Failed to establish a new connection: [Errno -2] Name or service not known',))