From 01f2290dd9b3070855d5b94dbc2d81f8b61bdb39 Mon Sep 17 00:00:00 2001 From: catborise Date: Tue, 24 Dec 2019 09:23:49 +0300 Subject: [PATCH] host ifaces configuration error prevents management of instance. It is isolated. --- instances/views.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/instances/views.py b/instances/views.py index ac24121..0de54b0 100644 --- a/instances/views.py +++ b/instances/views.py @@ -343,10 +343,15 @@ def instance(request, compute_id, vname): bus_host = conn.get_disk_bus_types(arch, machine) videos_host = conn.get_video_models(arch, machine) networks_host = sorted(conn.get_networks()) - interfaces_host = sorted(conn.get_ifaces()) nwfilters_host = conn.get_nwfilters() storages_host = sorted(conn.get_storages(True)) + try: + interfaces_host = sorted(conn.get_ifaces()) + except Exception as e: + addlogmsg(request.user.username, instance.name, e) + error_messages.append(e) + if request.method == 'POST': if 'poweron' in request.POST: if instance.is_template: