Skip to content

Instantly share code, notes, and snippets.

@Pishoy
Created December 1, 2019 14:14
Show Gist options
  • Save Pishoy/62ff9a012f9e68ace0055fa761df6199 to your computer and use it in GitHub Desktop.
Save Pishoy/62ff9a012f9e68ace0055fa761df6199 to your computer and use it in GitHub Desktop.
In [3]: ncl = j.clients.zos.get('dog', data = { 'host':'10.102.175.42', 'password_':jwt},)
In [4]: ncl.capacity.register()
--------------- ---------------------
In [4]: f = ncl.containers.get('zrobot')
In [5]: job = f.client.subscribe('zrobot')
In [6]: job.stream()
[Sun01 14:12] - base.py :210 :_node_capacity-9b1d7296-2cff-467e-8e9b-c6da9ded797d (node_capacity) - ERROR - error executing action _total:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "/usr/local/lib/python3.5/dist-packages/urllib3/util/connection.py", line 57, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.5/dist-packages/gevent/_socketcommon.py", line 212, in getaddrinfo
addrlist = get_hub().resolver.getaddrinfo(host, port, family, type, proto, flags)
File "/usr/local/lib/python3.5/dist-packages/gevent/resolver/thread.py", line 65, in getaddrinfo
return self.pool.apply(_socket.getaddrinfo, args, kwargs)
File "/usr/local/lib/python3.5/dist-packages/gevent/pool.py", line 159, in apply
return self.spawn(func, *args, **kwds).get()
File "src/gevent/event.py", line 268, in gevent._event.AsyncResult.get
File "src/gevent/event.py", line 296, in gevent._event.AsyncResult.get
File "src/gevent/event.py", line 286, in gevent._event.AsyncResult.get
File "src/gevent/event.py", line 266, in gevent._event.AsyncResult._raise_exception
File "/usr/local/lib/python3.5/dist-packages/gevent/_compat.py", line 47, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.5/dist-packages/gevent/threadpool.py", line 281, in _worker
value = func(*args, **kwargs)
BlockingIOError: [Errno 11] Resource temporarily unavailable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 603, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 344, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 843, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.5/dist-packages/urllib3/connection.py", line 316, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.5/dist-packages/urllib3/connection.py", line 169, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f0aa16fea58>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 641, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/local/lib/python3.5/dist-packages/urllib3/util/retry.py", line 399, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='capacity.threefoldtoken.com', port=443): Max retries exceeded with url: /api/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0aa16fea58>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/code/github/threefoldtech/0-robot/zerorobot/task/task.py", line 81, in execute
self._result = self._execute_greenlet.get(block=True, timeout=None)
File "src/gevent/greenlet.py", line 709, in gevent._greenlet.Greenlet.get
File "src/gevent/greenlet.py", line 317, in gevent._greenlet.Greenlet._raise_exception
File "/usr/local/lib/python3.5/dist-packages/gevent/_compat.py", line 47, in reraise
raise value.with_traceback(tb)
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "/opt/code/github/threefoldtech/0-robot/zerorobot/template/decorator.py", line 64, in f_timeout
return gl.get(block=True, timeout=seconds)
File "src/gevent/greenlet.py", line 709, in gevent._greenlet.Greenlet.get
File "src/gevent/greenlet.py", line 317, in gevent._greenlet.Greenlet._raise_exception
File "/usr/local/lib/python3.5/dist-packages/gevent/_compat.py", line 47, in reraise
raise value.with_traceback(tb)
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "/opt/code/github/threefoldtech/0-templates/templates/node_capacity/node_capacity.py", line 41, in _total
self._node_sal.capacity.register(include_hardware_dump=send_hardware)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/sal_zos/capacity/Capacity.py", line 178, in register
_, resp = client.api.RegisterCapacity(data)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/clients/threefold_directory/api_service.py", line 167, in RegisterCapacity
resp = self.client.post(uri, data, headers, query_params, content_type)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/clients/threefold_directory/http_client.py", line 62, in post
return self._handle_data(uri, data, headers, params, content_type, self.session.post)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/clients/threefold_directory/http_client.py", line 57, in _handle_data
res = method(uri, json=data, headers=headers, params=params)
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 581, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/sessse ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='capacity.threefoldtoken.com', port=443): Max retries exceeded with url: /api/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0aa16fea58>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable',))
2019-12-01T14:12:39Z <Greenlet at 0x7f0aa2b8c948: <bound method NodeCapacity._total of <node_capacity.NodeCapacity object at 0x7f0aa2783828>>> failed with ConnectionError
[Sun01 14:12] - base.py :210 :_node_capacity-9b1d7296-2cff-467e-8e9b-c6da9ded797d (node_capacity) - ERROR - error executing action _total:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "/usr/local/lib/python3.5/dist-packages/urllib3/util/connection.py", line 57, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.5/dist-packages/gevent/_socketcommon.py", line 212, in getaddrinfo
addrlist = get_hub().resolver.getaddrinfo(host, port, family, type, proto, flags)
File "/usr/local/lib/python3.5/dist-packages/gevent/resolver/thread.py", line 65, in getaddrinfo
return self.pool.apply(_socket.getaddrinfo, args, kwargs)
File "/usr/local/lib/python3.5/dist-packages/gevent/pool.py", line 159, in apply
return self.spawn(func, *args, **kwds).get()
File "src/gevent/event.py", line 268, in gevent._event.AsyncResult.get
File "src/gevent/event.py", line 296, in gevent._event.AsyncResult.get
File "src/gevent/event.py", line 286, in gevent._event.AsyncResult.get
File "src/gevent/event.py", line 266, in gevent._event.AsyncResult._raise_exception
File "/usr/local/lib/python3.5/dist-packages/gevent/_compat.py", line 47, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.5/dist-packages/gevent/threadpool.py", line 281, in _worker
value = func(*args, **kwargs)
BlockingIOError: [Errno 11] Resource temporarily unavailable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 603, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 344, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 843, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.5/dist-packages/urllib3/connection.py", line 316, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.5/dist-packages/urllib3/connection.py", line 169, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f0aa16fea58>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 641, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/local/lib/python3.5/dist-packages/urllib3/util/retry.py", line 399, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='capacity.threefoldtoken.com', port=443): Max retries exceeded with url: /api/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0aa16fea58>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/code/github/threefoldtech/0-robot/zerorobot/task/task.py", line 81, in execute
self._result = self._execute_greenlet.get(block=True, timeout=None)
File "src/gevent/greenlet.py", line 709, in gevent._greenlet.Greenlet.get
File "src/gevent/greenlet.py", line 317, in gevent._greenlet.Greenlet._raise_exception
File "/usr/local/lib/python3.5/dist-packages/gevent/_compat.py", line 47, in reraise
raise value.with_traceback(tb)
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "/opt/code/github/threefoldtech/0-robot/zerorobot/template/decorator.py", line 64, in f_timeout
return gl.get(block=True, timeout=seconds)
File "src/gevent/greenlet.py", line 709, in gevent._greenlet.Greenlet.get
File "src/gevent/greenlet.py", line 317, in gevent._greenlet.Greenlet._raise_exception
File "/usr/local/lib/python3.5/dist-packages/gevent/_compat.py", line 47, in reraise
raise value.with_traceback(tb)
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "/opt/code/github/threefoldtech/0-templates/templates/node_capacity/node_capacity.py", line 41, in _total
self._node_sal.capacity.register(include_hardware_dump=send_hardware)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/sal_zos/capacity/Capacity.py", line 178, in register
_, resp = client.api.RegisterCapacity(data)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/clients/threefold_directory/api_service.py", line 167, in RegisterCapacity
resp = self.client.post(uri, data, headers, query_params, content_type)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/clients/threefold_directory/http_client.py", line 62, in post
return self._handle_data(uri, data, headers, params, content_type, self.session.post)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/clients/threefold_directory/http_client.py", line 57, in _handle_data
res = method(uri, json=data, headers=headers, params=params)
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 581, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/sessise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='capacity.threefoldtoken.com', port=443): Max retries exceeded with url: /api/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0aa16fea58>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable',))
2019-12-01T14:12:39Z <Greenlet at 0x7f0aa2b8c948: <bound method NodeCapacity._total of <node_capacity.NodeCapacity object at 0x7f0aa2783828>>> failed with ConnectionError
[Sun01 14:12] - base.py :210 :_node_capacity-9b1d7296-2cff-467e-8e9b-c6da9ded797d (node_capacity) - ERROR - error executing action _total:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "/usr/local/lib/python3.5/dist-packages/urllib3/util/connection.py", line 57, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.5/dist-packages/gevent/_socketcommon.py", line 212, in getaddrinfo
addrlist = get_hub().resolver.getaddrinfo(host, port, family, type, proto, flags)
File "/usr/local/lib/python3.5/dist-packages/gevent/resolver/thread.py", line 65, in getaddrinfo
return self.pool.apply(_socket.getaddrinfo, args, kwargs)
File "/usr/local/lib/python3.5/dist-packages/gevent/pool.py", line 159, in apply
return self.spawn(func, *args, **kwds).get()
File "src/gevent/event.py", line 268, in gevent._event.AsyncResult.get
File "src/gevent/event.py", line 296, in gevent._event.AsyncResult.get
File "src/gevent/event.py", line 286, in gevent._event.AsyncResult.get
File "src/gevent/event.py", line 266, in gevent._event.AsyncResult._raise_exception
File "/usr/local/lib/python3.5/dist-packages/gevent/_compat.py", line 47, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.5/dist-packages/gevent/threadpool.py", line 281, in _worker
value = func(*args, **kwargs)
BlockingIOError: [Errno 11] Resource temporarily unavailable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 603, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 344, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 843, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.5/dist-packages/urllib3/connection.py", line 316, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.5/dist-packages/urllib3/connection.py", line 169, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f0aa16fea58>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 641, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/local/lib/python3.5/dist-packages/urllib3/util/retry.py", line 399, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='capacity.threefoldtoken.com', port=443): Max retries exceeded with url: /api/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0aa16fea58>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/code/github/threefoldtech/0-robot/zerorobot/task/task.py", line 81, in execute
self._result = self._execute_greenlet.get(block=True, timeout=None)
File "src/gevent/greenlet.py", line 709, in gevent._greenlet.Greenlet.get
File "src/gevent/greenlet.py", line 317, in gevent._greenlet.Greenlet._raise_exception
File "/usr/local/lib/python3.5/dist-packages/gevent/_compat.py", line 47, in reraise
raise value.with_traceback(tb)
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "/opt/code/github/threefoldtech/0-robot/zerorobot/template/decorator.py", line 64, in f_timeout
return gl.get(block=True, timeout=seconds)
File "src/gevent/greenlet.py", line 709, in gevent._greenlet.Greenlet.get
File "src/gevent/greenlet.py", line 317, in gevent._greenlet.Greenlet._raise_exception
File "/usr/local/lib/python3.5/dist-packages/gevent/_compat.py", line 47, in reraise
raise value.with_traceback(tb)
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "/opt/code/github/threefoldtech/0-templates/templates/node_capacity/node_capacity.py", line 41, in _total
self._node_sal.capacity.register(include_hardware_dump=send_hardware)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/sal_zos/capacity/Capacity.py", line 178, in register
_, resp = client.api.RegisterCapacity(data)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/clients/threefold_directory/api_service.py", line 167, in RegisterCapacity
resp = self.client.post(uri, data, headers, query_params, content_type)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/clients/threefold_directory/http_client.py", line 62, in post
return self._handle_data(uri, data, headers, params, contse ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='capacity.threefoldtoken.com', port=443): Max retries exceeded with url: /api/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0aa16fea58>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable',))
2019-12-01T14:12:39Z <Greenlet at 0x7f0aa2b8c948: <bound method NodeCapacity._total of <node_capacity.NodeCapacity object at 0x7f0aa2783828>>> failed with ConnectionError
[Sun01 14:12] - base.py :210 :_node_capacity-9b1d7296-2cff-467e-8e9b-c6da9ded797d (node_capacity) - ERROR - error executing action _total:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "/usr/local/lib/python3.5/dist-packages/urllib3/util/connection.py", line 57, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.5/dist-packages/gevent/_socketcommon.py", line 212, in getaddrinfo
addrlist = get_hub().resolver.getaddrinfo(host, port, family, type, proto, flags)
File "/usr/local/lib/python3.5/dist-packages/gevent/resolver/thread.py", line 65, in getaddrinfo
return self.pool.apply(_socket.getaddrinfo, args, kwargs)
File "/usr/local/lib/python3.5/dist-packages/gevent/pool.py", line 159, in apply
return self.spawn(func, *args, **kwds).get()
File "src/gevent/event.py", line 268, in gevent._event.AsyncResult.get
File "src/gevent/event.py", line 296, in gevent._event.AsyncResult.get
File "src/gevent/event.py", line 286, in gevent._event.AsyncResult.get
File "src/gevent/event.py", line 266, in gevent._event.AsyncResult._raise_exception
File "/usr/local/lib/python3.5/dist-packages/gevent/_compat.py", line 47, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.5/dist-packages/gevent/threadpool.py", line 281, in _worker
value = func(*args, **kwargs)
BlockingIOError: [Errno 11] Resource temporarily unavailable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 603, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 344, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 843, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.5/dist-packages/urllib3/connection.py", line 316, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.5/dist-packages/urllib3/connection.py", line 169, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f0aa16fea58>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 641, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/local/lib/python3.5/dist-packages/urllib3/util/retry.py", line 399, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='capacity.threefoldtoken.com', port=443): Max retries exceeded with url: /api/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0aa16fea58>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/code/github/threefoldtech/0-robot/zerorobot/task/task.py", line 81, in execute
self._result = self._execute_greenlet.get(block=True, timeout=None)
File "src/gevent/greenlet.py", line 709, in gevent._greenlet.Greenlet.get
File "src/gevent/greenlet.py", line 317, in gevent._greenlet.Greenlet._raise_exception
File "/usr/local/lib/python3.5/dist-packages/gevent/_compat.py", line 47, in reraise
raise value.with_traceback(tb)
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "/opt/code/github/threefoldtech/0-robot/zerorobot/template/decorator.py", line 64, in f_timeout
return gl.get(block=True, timeout=seconds)
File "src/gevent/greenlet.py", line 709, in gevent._greenlet.Greenlet.get
File "src/gevent/greenlet.py", line 317, in gevent._greenlet.Greenlet._raise_exception
File "/usr/local/lib/python3.5/dist-packages/gevent/_compat.py", line 47, in reraise
raise value.with_traceback(tb)
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "/opt/code/github/threefoldtech/0-templates/templates/node_capacity/node_capacity.py", line 41, in _total
self._node_sal.capacity.register(include_hardware_dump=send_hardware)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/sal_zos/capacity/Capacity.py", line 178, in register
_, resp = client.api.RegisterCapacity(data)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/clients/threefold_directory/api_service.py", line 167, in RegisterCapacity
resp = self.client.post(uri, data, headers, query_params, content_type)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/clients/threefold_directory/http_client.py", line 62, in post
return self._handle_data(uri, data, headers, params, content_type, self.session.post)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/clients/threefold_directory/http_client.py", line 57, in _handle_data
res = method(uri, json=data, headers=headers, params=params)
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 581, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='capacity.threefoldtoken.com', port=443): Max retries exceeded with url: /api/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0aa16fea58>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable',))
ent_type, self.session.post)
File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/clients/threefold_directory/http_client.py", line 57, in _handle_data
res = method(uri, json=data, headers=headers, params=params)
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 581, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='capacity.threefoldtoken.com', port=443): Max retries exceeded with url: /api/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0aa16fea58>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable',))
ons.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='capacity.threefoldtoken.com', port=443): Max retries exceeded with url: /api/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0aa16fea58>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable',))
ions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='capacity.threefoldtoken.com', port=443): Max retries exceeded with url: /api/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0aa16fea58>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable',))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment