Closed 0xIslamTaha closed 6 years ago
In [2]: pool_service = robot.services.create("github.com/threefoldtech/0-templates/zeroboot_pool/0.0.1", "zboot1-pool", data=data) [Wed08 17:04] - ZeroRobotManager.py:170 :j.zerorobot - ERROR - fail to create service: Instance ipmi-storage03_ipmi_host is not in ('github.com/zero-os/0-boot-templates/zeroboot_racktivity_host/0.0.1', 'github.com/zero-os/0-boot-templates/zeroboot_ipmi_host/0.0.1') --------------------------------------------------------------------------- HTTPError Traceback (most recent call last) /opt/code/github/threefoldtech/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/threefoldtech/0-robot/JumpscaleZrobot/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/threefoldtech/0-robot/JumpscaleZrobot/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/threefoldtech/0-robot/JumpscaleZrobot/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://127.0.0.1:6600/services During handling of the above exception, another exception occurred: ServiceCreateError Traceback (most recent call last) /usr/local/bin/js_shell in <module>() ----> 1 pool_service = robot.services.create("github.com/threefoldtech/0-templates/zeroboot_pool/0.0.1", "zboot1-pool", data=data) /opt/code/github/threefoldtech/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: Instance ipmi-storage03_ipmi_host is not in ('github.com/zero-os/0-boot-templates/zeroboot_racktivity_host/0.0.1', 'github.com/zero-os/0-boot-templates/zeroboot_ipmi_host/0.0.1'): 500 Server Error: INTERNAL SERVER ERROR for url: http://127.0.0.1:6600/services
env js : development 0-robnot : development
https://github.com/threefoldtech/0-templates/commit/f2eb52cadcafa8296c0b6860752e85f92ed4018a
env js : development 0-robnot : development