mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 23:45:56 +03:00
[GH-ISSUE #379] HTTP/500 on /console when instance uuid is changing #238
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#238
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pznamensky on GitHub (Oct 20, 2020).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/379
We've got lots of VMs which are recreating via our scripts or terraform.
That VMs preserve their names, but uuid changes each recreation.
One of the places where it breaks webvirtcloud is virtual console.
When VM is changing its uuid virtual console stops working and return 500 error.
As a workaround, we're deleting everything from table
instances_instance, but it doesn't look very good :)Is there any config parameter or something else which can help to fix the problem?
@catborise commented on GitHub (Oct 20, 2020):
Yes that is a problem i knew it, but i forgot. A few times ago app was updating whenever is changed . But now it is not update it every time. It should be fixed. Otherwise it Requires manual db manipulation.
@Real-Gecko minimizing db calls operation occurs that. How we can solve it.
@Real-Gecko commented on GitHub (Oct 20, 2020):
Can you please show exact error, with stacktrace if possible?
@pznamensky commented on GitHub (Oct 21, 2020):
Thank you all for the quick reply.
Unfortunately, I can't see the stacktrace although I have
Debug = Truein my config file (but it is possible that there are some issues in my setup though).@catborise commented on GitHub (Oct 21, 2020):
steps:
4.1 copy instance xml
4.2. undefine instance
4.3 paste copied xml
4.4 change only uuid
4.5. redefine instance and run it.
Result:
@pznamensky commented on GitHub (Dec 1, 2020):
Are there any chances it will be fixed? :)
@catborise commented on GitHub (Dec 2, 2020):
@pznamensky i am not sure how to solve that problem. going back or different way...
i think we should solve it with bulk operations. otherwise query cost increase every listing time.
we can add a menu to refresh vm info, it updates database uuid...
@catborise commented on GitHub (Dec 15, 2020):
@pznamensky i think problem is solved with adding uuid update...
please feedback.
thanks
@pznamensky commented on GitHub (Dec 18, 2020):
@catborise thank you very much for the fix!
I'll check if everything works fine the next week
@pznamensky commented on GitHub (Dec 30, 2020):
I can confirm, that we're able to connect to console now.
But I've noticed that after changing VMs uuid old records in
instances_instancetable are not updated and deleted.Thus after changing uuid, new records are added.
Nevertheless, console is working fine now.
Thank you!
@catborise commented on GitHub (Dec 31, 2020):
@pznamensky thanks. there was a problem with old record. i fixed it. i think this way is more apropriate. it deletes changed uuids and add new ones.
@pznamensky commented on GitHub (Dec 31, 2020):
Thank you!