From 0e7c5c25b7f8f1e7666278b23f7307df6428f1ac Mon Sep 17 00:00:00 2001 From: Jan Krcmar Date: Thu, 21 Apr 2016 13:08:20 +0200 Subject: [PATCH] fix instance compute node after migration --- instances/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instances/views.py b/instances/views.py index 62b390f..83c80e8 100644 --- a/instances/views.py +++ b/instances/views.py @@ -549,6 +549,8 @@ def instance(request, compute_id, vname): new_compute.type) conn_migrate.moveto(conn, vname, live, unsafe, xml_del) conn_migrate.define_move(vname) + instance.compute = new_compute + instance.save() conn_migrate.close() msg = _("Migrate") addlogmsg(request.user.username, instance.name, msg)