[GH-ISSUE #417] Lack support of disk type=volume ? #314

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

Originally created by @kot1grun on GitHub (Sep 5, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/417

Hello. I have logical pool type with underlying LVM volume group:

<pool type='logical'>
<source>
<device path='/dev/md2'/>
<name>svg</name>
<format type='lvm2'/>
</source>
<target>
<path>/dev/svg</path>
<permissions>
<mode>0755</mode>
<owner>-1</owner>
<group>-1</group>
</permissions>
</target>
</pool>

When I change configuration of block device of my VM from

<disk type='block' device='disk'>
<driver name='qemu' type='raw' cache='none' io='native'/>
<source dev='/dev/svg/testlv'/>
<target dev='vda' bus='virtio'/>
</disk>

to

<disk type='volume' device='disk'>
<driver name='qemu' type='raw' cache='none' io='native'/>
<source pool='pool0' volume='testlv'/>
<target dev='vda' bus='virtio'/>
</disk>

I get

OOPS!
Internal Server Error

Are storage pools with volume disk types supported?

Originally created by @kot1grun on GitHub (Sep 5, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/417 Hello. I have logical pool type with underlying LVM volume group: `<pool type='logical'>` `<source>` `<device path='/dev/md2'/>` `<name>svg</name>` `<format type='lvm2'/>` `</source>` `<target>` `<path>/dev/svg</path>` `<permissions>` `<mode>0755</mode>` `<owner>-1</owner>` `<group>-1</group>` `</permissions>` `</target>` `</pool>` When I change configuration of block device of my VM from `<disk type='block' device='disk'>` `<driver name='qemu' type='raw' cache='none' io='native'/>` `<source dev='/dev/svg/testlv'/>` `<target dev='vda' bus='virtio'/>` `</disk>` to `<disk type='volume' device='disk'>` `<driver name='qemu' type='raw' cache='none' io='native'/>` `<source pool='pool0' volume='testlv'/>` `<target dev='vda' bus='virtio'/>` `</disk>` I get > OOPS! > Internal Server Error Are storage pools with volume disk types supported?
kerem closed this issue 2026-02-27 16:38:50 +03:00
Author
Owner

@retspen commented on GitHub (Sep 5, 2014):

Can you show debug info?

<!-- gh-comment-id:54607520 --> @retspen commented on GitHub (Sep 5, 2014): Can you show debug info?
Author
Owner

@kot1grun commented on GitHub (Sep 5, 2014):

Sure!
Environment:

Request Method: GET
Request URL: http://192.168.57.2:80/instance/1/V-DB/

Django Version: 1.5.5
Python Version: 2.7.5
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'webvirtmgr',
'servers',
'instance',
'create',
'gunicorn']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')

Traceback:
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1.                     response = callback(request, _callback_args, *_callback_kwargs)
    
    File "/var/www/webvirtmgr/instance/views.py" in instance
  2.     clone_disks = show_clone_disk(disks)
    
    File "/var/www/webvirtmgr/instance/views.py" in show_clone_disk
  3.         if disk['image'].count(".") and len(disk['image'].rsplit(".", 1)[1]) <= 7:
    

Exception Type: AttributeError at /instance/1/V-DB/
Exception Value: 'NoneType' object has no attribute 'count'

<!-- gh-comment-id:54608926 --> @kot1grun commented on GitHub (Sep 5, 2014): Sure! Environment: Request Method: GET Request URL: http://192.168.57.2:80/instance/1/V-DB/ Django Version: 1.5.5 Python Version: 2.7.5 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'webvirtmgr', 'servers', 'instance', 'create', 'gunicorn'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 1. response = callback(request, _callback_args, *_callback_kwargs) File "/var/www/webvirtmgr/instance/views.py" in instance 2. clone_disks = show_clone_disk(disks) File "/var/www/webvirtmgr/instance/views.py" in show_clone_disk 3. if disk['image'].count(".") and len(disk['image'].rsplit(".", 1)[1]) <= 7: Exception Type: AttributeError at /instance/1/V-DB/ Exception Value: 'NoneType' object has no attribute 'count'
Author
Owner

@kot1grun commented on GitHub (Sep 10, 2014):

Thanks a lot!

<!-- gh-comment-id:55115280 --> @kot1grun commented on GitHub (Sep 10, 2014): Thanks a lot!
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#314
No description provided.