mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-26 16:15:50 +03:00
[GH-ISSUE #300] Crashes with a specific VM configuration #235
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 @romu70 on GitHub (May 6, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/300
Don't really know where I did something wrong, but I did. I created and removed few times the same VM and now, there is no way to display the instances list of my server.
The "Infrastructure" link works and this specific VM is visible. But if I click on the server link (so to go to {server}:8000/instances/1, I get a 500 ERROR.
I restarted the supervisor service, same problem. If I remove this VM, no trouble anymore. But I really need it. Think something remains recorded on the HDD even if I delete it. All works fine with virt-manager.
Any help to debug and remove the issue? Thanks.
@romu70 commented on GitHub (May 6, 2014):
I checked the problem is really on this specific VM as the URL {server}:8000/instances/1/{vm name} works well for all VMs except this one.
@retspen commented on GitHub (May 6, 2014):
$ virsh dumpxml your_vm_name
@romu70 commented on GitHub (May 7, 2014):
Do you want me to post the xml here? Because this command doesn't fix the problem.
@retspen commented on GitHub (May 7, 2014):
Yes, I do. Post the xml there.
@romu70 commented on GitHub (May 7, 2014):
Here it is:
There is something weird aside the crash. If I run this VM through virt-manager, the img file owner is set to root. This doesn't happen with other VMs.
@retspen commented on GitHub (May 7, 2014):
Change in file settings.py:
DEBUG=False to DEBUG=True
and show your error message.
@romu70 commented on GitHub (May 7, 2014):
Here it is, could be explained by my several attemps of creating this VM?
This VM appears only one time in /etc/libvirt/qemu.
@retspen commented on GitHub (May 7, 2014):
Return settings.py
$ sqllite3 webvirtmgr.sqlite
sqlite> delete from instance_instance where name="rtc5-dev";
sqlite> select * from instance_instance;
@romu70 commented on GitHub (May 7, 2014):
"delete from instance_instance where name="rtc5-dev";"
-> Error: no such table: instance_instance
@retspen commented on GitHub (May 7, 2014):
sqlite> .tables
@romu70 commented on GitHub (May 7, 2014):
returns nothing
@retspen commented on GitHub (May 7, 2014):
$ sqllite3 /var/www/webvirtmgr/webvirtmgr.sqlite
sqilte> .databases
@romu70 commented on GitHub (May 7, 2014):
Indeed the DB file is not webvirtmgr.sqlite but webvirtmgr.sqlite3. So was the issue. Fixed, thanks a lot ! Can be closed.
@retspen commented on GitHub (May 7, 2014):
Oh, sorry!
@df-cryptostorm commented on GitHub (Jul 8, 2015):
Just an FYI, I also noticed this bug when I removed a VM instance from the web interface then tried recreating it with the same name.
Tried removing the VM image file,
virsh destroying it, etc. but the sqlite3 fix above worked.