From 3dc478385babbd9ec9f01982ecf8cfd9d650a15e Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 15 May 2017 15:23:29 +0200 Subject: [PATCH] When connecting to a compute node ask for qemu images list The server start to compute qemu image list in background because first time discovery could be slow due to the compute time of md5sum. Fix #996 --- gns3server/web/web_server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gns3server/web/web_server.py b/gns3server/web/web_server.py index 1e8bd1b8..0bcc71a5 100644 --- a/gns3server/web/web_server.py +++ b/gns3server/web/web_server.py @@ -33,6 +33,7 @@ from .route import Route from ..config import Config from ..compute import MODULES from ..compute.port_manager import PortManager +from ..compute.qemu import Qemu from ..controller import Controller @@ -192,6 +193,10 @@ class WebServer: Called when the HTTP server start """ yield from Controller.instance().start() + # Because with a large image collection + # without md5sum already computed we start the + # computing with server start + asyncio.async(Qemu.instance().list_images()) def run(self): """