Created
July 27, 2018 17:05
-
-
Save 0xIslamTaha/92d3039c687d4dbc05ab2a47f3cb087e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n [6]: | |
...: print(' [*] zboot client') | |
...: data = { | |
...: 'networkId': zt_nw_id, | |
...: 'sshClient' : 'zboot1-ssh', # ssh client instance name | |
...: 'zerotierClient': 'zboot1-zt', # zerotier client instance name | |
...: } | |
...: zboot_service = robot.services.create("github.com/zero-os/0-boot-templates/zeroboot_client/0.0.1", "zboot1-zb", data=data) | |
...: print(' [*] zboot client : zboot1-zb') | |
...: | |
...: | |
[*] zboot client | |
[Fri27 16:54] - ZeroRobotManager.py:170 :j.zerorobot - ERROR - fail to create service: failed to detect a valid IP address from 'cluster01' | |
--------------------------------------------------------------------------- | |
HTTPError Traceback (most recent call last) | |
/opt/code/github/zero-os/0-robot/zerorobot/dsl/ZeroRobotManager.py in create(self, template_uid, service_name, data, public) | |
155 try: | |
--> 156 new_service, resp = self._client.api.services.createService(req) | |
157 except HTTPError as err: | |
/opt/code/github/zero-os/0-robot/JumpScale9Zrobot/clients/zerorobot/client/services_service.py in createService(self, data, headers, query_params, content_type) | |
212 uri = self.client.base_url + "/services" | |
--> 213 resp = self.client.post(uri, data, headers, query_params, content_type) | |
214 try: | |
/opt/code/github/zero-os/0-robot/JumpScale9Zrobot/clients/zerorobot/client/http_client.py in post(self, uri, data, headers, params, content_type) | |
61 def post(self, uri, data, headers, params, content_type): | |
---> 62 return self._handle_data(uri, data, headers, params, content_type, self.session.post) | |
63 | |
/opt/code/github/zero-os/0-robot/JumpScale9Zrobot/clients/zerorobot/client/http_client.py in _handle_data(self, uri, data, headers, params, content_type, method) | |
57 res = method(uri, json=data, headers=headers, params=params) | |
---> 58 res.raise_for_status() | |
59 return res | |
/usr/local/lib/python3.5/dist-packages/requests/models.py in raise_for_status(self) | |
938 if http_error_msg: | |
--> 939 raise HTTPError(http_error_msg, response=self) | |
940 | |
HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: http://localhost:6600/services | |
During handling of the above exception, another exception occurred: | |
ServiceCreateError Traceback (most recent call last) | |
/usr/local/bin/js9 in <module>() | |
6 'zerotierClient': 'zboot1-zt', # zerotier client instance name | |
7 } | |
----> 8 zboot_service = robot.services.create("github.com/zero-os/0-boot-templates/zeroboot_client/0.0.1", "zboot1-zb", data=data) | |
9 print(' [*] zboot client : zboot1-zb') | |
/opt/code/github/zero-os/0-robot/zerorobot/dsl/ZeroRobotManager.py in create(self, template_uid, service_name, data, public) | |
169 e = err.response.json() | |
170 logger.error('fail to create service: %s' % e['message']) | |
--> 171 raise ServiceCreateError(e['message'], err) | |
172 | |
173 return self._instantiate(new_service) | |
ServiceCreateError: failed to detect a valid IP address from 'cluster01': 500 Server Error: INTERNAL SERVER ERROR for url: http://localhost:6600/services |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment