mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 13:23:48 +02:00
Increase creation timeout for docker container
This commit is contained in:
parent
48a73f9ab5
commit
4aa7a0a9df
@ -272,10 +272,14 @@ class Node:
|
|||||||
"""
|
"""
|
||||||
data = self._node_data()
|
data = self._node_data()
|
||||||
data["node_id"] = self._id
|
data["node_id"] = self._id
|
||||||
|
if self._node_type == "docker":
|
||||||
|
timeout = 60
|
||||||
|
else:
|
||||||
|
timeout = None
|
||||||
trial = 0
|
trial = 0
|
||||||
while trial != 6:
|
while trial != 6:
|
||||||
try:
|
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:
|
except ComputeConflict as e:
|
||||||
if e.response.get("exception") == "ImageMissingError":
|
if e.response.get("exception") == "ImageMissingError":
|
||||||
res = yield from self._upload_missing_image(self._node_type, e.response["image"])
|
res = yield from self._upload_missing_image(self._node_type, e.response["image"])
|
||||||
|
Loading…
Reference in New Issue
Block a user