mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-27 08:35:53 +03:00
[GH-ISSUE #281] Instance Statistics Graphs Broken? #225
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 @EmbeddedAndroid on GitHub (Apr 14, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/281
Just installed a new instance from HEAD of master. I noticed that the "Instance Statistics" view never displays a graph for any resource, i.e.CPU usage, Bandwidth - Eth0, and Disk I/O - vdz. However in the "Overview" page the graphs function properly.
Tried this on both Chrome and Safari same result. Anyone else having this issue?
@retspen commented on GitHub (Apr 15, 2014):
Do you have anyone errors in Chrome Console?
@EmbeddedAndroid commented on GitHub (Apr 21, 2014):
It 500's when accessing a link such as:
http://domain.com/info/instusage/1/vm_name/
Here is a snippet from the nginx log:
2014/04/21 08:26:41 [error] 1000#0: *35526 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.106, server: domain.test, request: "GET /info/instusage/1/storage/ HTTP/1.1", upstream: "http://127.0.0.1:8000/info/instusage/1/storage/", host: "virtio.us", referrer: "http://virtio.us/instance/1/storage/"
Here are the errors I'm seeing in the browser:
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 502 (Bad Gateway) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (storage, line 0)
@retspen commented on GitHub (Apr 22, 2014):
Can you enable Debug mode and show trace?
@EmbeddedAndroid commented on GitHub (Apr 22, 2014):
I found the issue after debugging for a bit.
ERROR:django.request:Internal Server Error: /info/instusage/1/storage/
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/var/www/webvirtmgr/instance/views.py", line 56, in instusage
blk_usage = conn.disk_usage()
File "/var/www/webvirtmgr/vrtManager/instance.py", line 307, in disk_usage
devices.append([dev_file, dev_bus])
UnboundLocalError: local variable 'dev_file' referenced before assignment
A fix for anyone using rbd devices can be found here: https://github.com/retspen/webvirtmgr/pull/288