From 4aa7a0a9df63820c07e3e937799d6c3f49a876f8 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 3 Oct 2016 22:31:34 +0200 Subject: [PATCH] Increase creation timeout for docker container --- gns3server/controller/node.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gns3server/controller/node.py b/gns3server/controller/node.py index 15342544..ba51394a 100644 --- a/gns3server/controller/node.py +++ b/gns3server/controller/node.py @@ -272,10 +272,14 @@ class Node: """ data = self._node_data() data["node_id"] = self._id + if self._node_type == "docker": + timeout = 60 + else: + timeout = None trial = 0 while trial != 6: try: - response = yield from self._compute.post("/projects/{}/{}/nodes".format(self._project.id, self._node_type), data=data) + response = yield from self._compute.post("/projects/{}/{}/nodes".format(self._project.id, self._node_type), data=data, timeout=timeout) except ComputeConflict as e: if e.response.get("exception") == "ImageMissingError": res = yield from self._upload_missing_image(self._node_type, e.response["image"])