[GH-ISSUE #205] 500 error in /info/vds/disk/1/test.host/ #158

Closed
opened 2026-02-27 16:38:12 +03:00 by kerem · 2 comments
Owner

Originally created by @bsavelev on GitHub (Jan 27, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/205

I have VM with disk on LVM. Instance info page create requests for disk info and fails

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 30, in diskusage
    blk_usage = conn.vds_disk_usage(vname)

  File "/var/www/webvirtmgr/webvirtmgr/server.py", line 809, in vds_disk_usage
    if source.get("file").endswith('.img'):

AttributeError: 'NoneType' object has no attribute 'endswith'
Originally created by @bsavelev on GitHub (Jan 27, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/205 I have VM with disk on LVM. Instance info page create requests for disk info and fails ``` 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 30, in diskusage blk_usage = conn.vds_disk_usage(vname) File "/var/www/webvirtmgr/webvirtmgr/server.py", line 809, in vds_disk_usage if source.get("file").endswith('.img'): AttributeError: 'NoneType' object has no attribute 'endswith' ```
kerem closed this issue 2026-02-27 16:38:12 +03:00
Author
Owner

@retspen commented on GitHub (Jan 27, 2014):

Old version need update

<!-- gh-comment-id:33398810 --> @retspen commented on GitHub (Jan 27, 2014): Old version need update
Author
Owner

@bsavelev commented on GitHub (Jan 27, 2014):

yes, fixed. sorry(

<!-- gh-comment-id:33403338 --> @bsavelev commented on GitHub (Jan 27, 2014): yes, fixed. sorry(
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#158
No description provided.