mirror of
https://github.com/retspen/webvirtcloud
synced 2025-01-12 08:25:18 +00:00
fix instance compute node after migration
This commit is contained in:
parent
f8e681dbf4
commit
0e7c5c25b7
1 changed files with 2 additions and 0 deletions
|
@ -549,6 +549,8 @@ def instance(request, compute_id, vname):
|
||||||
new_compute.type)
|
new_compute.type)
|
||||||
conn_migrate.moveto(conn, vname, live, unsafe, xml_del)
|
conn_migrate.moveto(conn, vname, live, unsafe, xml_del)
|
||||||
conn_migrate.define_move(vname)
|
conn_migrate.define_move(vname)
|
||||||
|
instance.compute = new_compute
|
||||||
|
instance.save()
|
||||||
conn_migrate.close()
|
conn_migrate.close()
|
||||||
msg = _("Migrate")
|
msg = _("Migrate")
|
||||||
addlogmsg(request.user.username, instance.name, msg)
|
addlogmsg(request.user.username, instance.name, msg)
|
||||||
|
|
Loading…
Reference in a new issue